From patchwork Mon Sep 27 21:03:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12520809 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1B5DDC433F5 for ; Mon, 27 Sep 2021 21:10:32 +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 D664260EE7 for ; Mon, 27 Sep 2021 21:10:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org D664260EE7 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=t6pnnTLL7U2x1U738Ob7X3gLE9oHZ3GKGUIklidsyCc=; b=FbtVb4hFfkXhGz JY+YDIoFdJ5KH3G51yWBigwdcSzBqStXssx0QCb2XLPEpSrduA7yL8zN8jTW9fSgF7X7t1Wd6QExQ ySGZ+ZqCk2nC7vlgMm4VDwdmo0bxLhhMiCeO2lo1dbM8+EsjOP4pE9OohmUfcESltGH14xI+q2hEF 0/6JyZCVnP3bcIKilT6N8iN5i5tlDWv4ulraAwFqyI/jdG3/9/UiuV6AdZ9A4yp+GAO1p9XeX3yia w7P4XNU+BcfhxMVY9gsnWMUMEruxbNRDrUFYvfLPwsnAoIPzcbjOxofusZACW6yg6y6r4p/Zm9SmQ OmNdgX6TCuWDK1mr93Qg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mUxr7-004KXo-K6; Mon, 27 Sep 2021 21:08:10 +0000 Received: from mail-pg1-x536.google.com ([2607:f8b0:4864:20::536]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mUxmT-004IKd-11 for linux-arm-kernel@lists.infradead.org; Mon, 27 Sep 2021 21:03:22 +0000 Received: by mail-pg1-x536.google.com with SMTP id r2so18955510pgl.10 for ; Mon, 27 Sep 2021 14:03:20 -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=DcVUI6lIUxOIn8XKZi8OklHh9gOl/KKLH3w5m4uaodk=; b=W4NKBIRqotI8bHmEEWsmSTHnhs4Mzq40Q6srIzErCCP+UP415SwoMdOXw89xhflPz5 HCBhv37DHjRtvpEVaSJPJg+4S4ELX/m+MoNDzEKw8Gx8TZ5BgAtyICyaCWgoe8N14zjO P2BSm20qnfOONRrEZ111PkeC0fEi+vj52bDLjn0px6cz+D8pz6kyuR/u1tKH2cXA8Fhw nBs723XaHGRoIoYQp8XJTbuJBaEZYinyfLsJiiHyLvQbtlcU3JfKct1EFpnHtzdoSWIe uH0YLQsY/lgPu8URzee45pFhgooIp73XMzVX8rwwpVZ2NklqZNJyNxeztJhJ5H5QWeLN dgOA== 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=DcVUI6lIUxOIn8XKZi8OklHh9gOl/KKLH3w5m4uaodk=; b=HZzZcuKfw+Z3Mvgz7rtIrSR/0l8BQboeauilEirXaLwEhA+eG6nRexaqQuspWp6ell QbCCBU4fmWsduiRXg752U8NDBmVOOMvCkZLlaMjDb93ZmY0xOXBDAAjEuW8OzTOXJVUh uI0dk9H/62qK0nrEsw85TwiMw/N/JMJzHWkQM6K5zgqrLWDfDlaEFTh/tTsyKovUGxA2 o1OCWZKdTgroAJMIZLNbjwRVGKyYk1IIc6SnZPFjOIeAvKs740OojQFJrJ8PivO1uNj8 qIU23MfX+TwW0wkLi/mrrOFdnugnaP4+rPf15Bp8zCTX/8TmM8TUvwC8X5uwplPD8uuS N6eQ== X-Gm-Message-State: AOAM530KG3cExfdtSURFBJ2bOfnHBuyDw+KOSNJ2k7tkVrTNSpXPGVhQ hsjb/RGhzSr1hhIIhut5R/M= X-Google-Smtp-Source: ABdhPJz0DqGQT2R2gSNSmmJ3H8yzyy64nrtl32kM0SfT1HycEcSp1m4hKHK1VLZ63xty8AHIo3C5nw== X-Received: by 2002:a62:924c:0:b0:447:aae0:b6d6 with SMTP id o73-20020a62924c000000b00447aae0b6d6mr1939798pfd.52.1632776599900; Mon, 27 Sep 2021 14:03:19 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id e12sm16444086pgv.82.2021.09.27.14.03.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Sep 2021 14:03:19 -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 v3 0/4] ARM: ftrace MODULE_PLTS warning Date: Mon, 27 Sep 2021 14:03:12 -0700 Message-Id: <20210927210316.3217044-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-20210927_140321_107840_CA99291A X-CRM114-Status: UNSURE ( 9.51 ) 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 v3: - resolved build error with allmodconfig enabling CONFIG_OLD_MCOUNT 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(-)