From patchwork Wed Sep 22 17:02:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12511083 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.7 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 18DFBC433FE for ; Wed, 22 Sep 2021 17:19:17 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DF89260FE6 for ; Wed, 22 Sep 2021 17:19:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org DF89260FE6 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=sV+2q0UQu0gEukF7dS+fPf40bmI6pghx7PtnI9bOnM0=; b=mmYWyuHWYBZmXF 8kds6NC/dPmTl/kPmJMQkiEMCgsj4Vwy2ofz6HxMmeSGA5ZEd1Y9DeJ9ZAnwduecOwrdHorHgl7Ns uzNjkwnUwPhoFCXG68fLrdK8EDqCFs4y0lBZ4cO0kzu2pvrm8T28GwUxPSddzX3cBKwBJUs5RaKSr JlAgzAmDK0Un9pxICvgl0ZZgWFdNf7fVY1zR2tod1qWWWkepHYFMPNSW/BsmlZuqX7Ny/neloBUB4 Wlk/vKRnFYSAOhew8YiMF8BINTZjlt/oy4ko9R2NFObnwxRpgjTv93iFUU4A3CqUcgM44ETtBCNJ3 RZP8/d8pzxDAPS4tKBCg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mT5r2-009Hra-2S; Wed, 22 Sep 2021 17:16:22 +0000 Received: from mail-pj1-x102a.google.com ([2607:f8b0:4864:20::102a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mT5e0-009Cn3-4X for linux-arm-kernel@lists.infradead.org; Wed, 22 Sep 2021 17:02:55 +0000 Received: by mail-pj1-x102a.google.com with SMTP id on12-20020a17090b1d0c00b001997c60aa29so4189329pjb.1 for ; Wed, 22 Sep 2021 10:02:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Rvl8tmfvf2C7R5Ue8yrks7dkuzK6wpg/W2fngVsGu6A=; b=p/OTnKhZXnU9w6ExB7IXQytxV0x7S7LWzuZk0CMovUx8RcfhVCN4VV0HT1og9MTTTl SA1Z22EZAzo9eqFb2XxLxjFKPzEL9zjGcll1EQebbxaVoFsJ8NqKvlU/kgL+9O5qwaA2 eQC5RQ7esOXCW1tziyGWDKXc9Y+CzQ0sSYVS4Tmag6RSMYD4gTtv6CkVYN01k4EYRmQo QnjFGOoTeKJl5F3XeF0Xm7dcoZ5rAKGEH61NrbNODJDgbkqk9XPCJQ6EauYhAC0kfl/Y iA9dYNL8YypHv8q2VgOesWzki1c5jVPVdss+b+NWWuCdSmmuMldnKIWkWFByEZfc1Nic 6TRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Rvl8tmfvf2C7R5Ue8yrks7dkuzK6wpg/W2fngVsGu6A=; b=sqSWbD4J92FALtQWBlmYHneyJbtudl5YdE6nrwkLH1oVWSQNtcIWm6dX4a3iEO2AiL bzzUKaszm84WgLITvwjsb1554alIL2rAnI6Z5OKcspj9J7CftUq0eZMzMjrYAFxqWQ+d a+V9c7FV7dV7rO3dXH2/myPpfIpZVuxHHAcy1iPGDir+hXrmaor3rMUbT9WYnrZFzmxb jD2BBZHtVQhxY4p5DfhUsiy5+lFlbojXGLoFDCVyQBV7UrTARvSsT+ED+K2C1Xi+nWis n3vFrhLsOMTWc0P6tG6cNIoWXgEv9HSlP638rrempyYhpsoerPpxMAzj8SmIl+DvgoNz 4BXw== X-Gm-Message-State: AOAM532DAW2bTzRZnCPnGe7mXha7FcvodhvZRszcUURlsLe8KOrO1Ks5 gl4YO4oe1Ntc+hA3aLatOcE= X-Google-Smtp-Source: ABdhPJyLuBmoKI65hA710VcifTWmqWSOfB37toRSLw5mdPrpZqTnTEBL6kxY2mZ9Dj551bdg63bGXw== X-Received: by 2002:a17:902:c205:b0:13c:a76c:4904 with SMTP id 5-20020a170902c20500b0013ca76c4904mr469264pll.85.1632330170725; Wed, 22 Sep 2021 10:02:50 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id x128sm3061885pfd.203.2021.09.22.10.02.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Sep 2021 10:02:50 -0700 (PDT) From: Florian Fainelli To: linux-kernel@vger.kernel.org Cc: stable@vger.kernel.org, Greg Kroah-Hartman , Sasha Levin , Florian Fainelli , Steven Rostedt , Ingo Molnar , Russell King , Alex Sverdlin , linux-arm-kernel@lists.infradead.org (moderated list:ARM PORT) Subject: [PATCH stable 4.9 v2 0/4] ARM: ftrace MODULE_PLTS warning Date: Wed, 22 Sep 2021 10:02:42 -0700 Message-Id: <20210922170246.190499-1-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210922_100252_254796_74A1F76C X-CRM114-Status: UNSURE ( 9.88 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This patch series is present in v5.14 and fixes warnings seen at insmod with FTRACE and MODULE_PLTS enabled on ARM/Linux. Changes in v2: - included build fix without DYNAMIC_FTRACE - preserved Author's original name in 4.9 submission Alex Sverdlin (4): ARM: 9077/1: PLT: Move struct plt_entries definition to header ARM: 9078/1: Add warn suppress parameter to arm_gen_branch_link() ARM: 9079/1: ftrace: Add MODULE_PLTS support ARM: 9098/1: ftrace: MODULE_PLT: Fix build problem without DYNAMIC_FTRACE arch/arm/include/asm/ftrace.h | 3 +++ arch/arm/include/asm/insn.h | 8 +++--- arch/arm/include/asm/module.h | 10 +++++++ arch/arm/kernel/ftrace.c | 45 +++++++++++++++++++++++++++----- arch/arm/kernel/insn.c | 19 +++++++------- arch/arm/kernel/module-plts.c | 49 +++++++++++++++++++++++++++-------- 6 files changed, 103 insertions(+), 31 deletions(-)