From patchwork Mon Sep 27 21:02:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12520787 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 2B6B0C433F5 for ; Mon, 27 Sep 2021 21:06:18 +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 EE8CA61052 for ; Mon, 27 Sep 2021 21:06:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org EE8CA61052 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=mAzm8DoFMrnMpDWAFf+ueMWiQyXe0j0RqU7MKhmB7Ao=; b=ox5pf2ucyb+64D LWBylGUb9AoXeQqD0fs4p5WSGMCknPFlxuBX+B9TkL4P6ibqqenFjPpuM2JOKRQvtNrXhZoPLudbK vRLt1/BV/Rn11QMTiFBX22UsZ67cc8qmspGCEzLwkAlxcmNN+4imI+gGY3HKuUXoeKmuVVmIMrqDC NgaxkhJu7EoVCwLycnvgLnPwaw/OwL8oqY6q2VqsCVKXQH2Q1yv3ffNAnSKPIM5ojdWKgWli86GnO e3Q4ScFRGrwax8V2ee2JUvZ4vpAeusot3o51JFyHvbMvAWprIPIVYQd93YH4q5rH1qkyo0o1VU1nQ INV6hK9yGbQ/TiMLt6mA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mUxnl-004IoG-PD; Mon, 27 Sep 2021 21:04:42 +0000 Received: from mail-pf1-x432.google.com ([2607:f8b0:4864:20::432]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mUxmI-004IH0-Ph for linux-arm-kernel@lists.infradead.org; Mon, 27 Sep 2021 21:03:12 +0000 Received: by mail-pf1-x432.google.com with SMTP id m26so17064753pff.3 for ; Mon, 27 Sep 2021 14:03:10 -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=j5SSjAo98K45E+20/l2vJfSBS8YAkbvusCfPbeN4tts=; b=U3/6i5CfJ6Ae/A18rmADou2ZEaQrQq+hWlermqbIUhTxbWqex+ymSXYVipMtZ82DzX azbIo/rccEQE8LtYKzsxGh6lARUEsL6i0xNTxzFzw9iB6IH2CrWbVnV+//KQ3MTZRWgE 9azoXzhh6oNUm6SkrnIK8eHqqUUiPQTHk1ykA4pbL5ZZ8OMX4NAD16IxiCqEoGcFREDf FQujt5QhAXoRHgGz5qQqRstXvNZZWj3vdUoSiXiLwvJWvtE9p79Gb/l3HS4Hv7R3scey WNPqJD8+0pkTQkUTw1eidaqKOPyr/jrXPW9v8afbHqtvDvxMsza+LuVivDOXlzt6R9Bu vJjw== 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=j5SSjAo98K45E+20/l2vJfSBS8YAkbvusCfPbeN4tts=; b=NWlKUofFl5nf7Ak2BXs1sZ5kYERtZjFEYoywnOIC/opq9OQzX9hQXUaf5BMKSrupiV /Zdi/jg8dcFlGMnNgUxr7/KaWZv39A0HQr1bBwJa+ggsQxExVvnJORZOgkd+dOEdMLUm T2tYg3HFvrcTW/LqlsDvIOFPOPRNJdSSaiixcHu069c0CjOGpggPdoSMvnWsCzk6aJHh ThcRvADW1Q8oWZXcjxUqh3c/abHYM1PVizYWcp0JTf3GQCMoQ3VyV/B/H6LOGZRojeW+ +4HUYuDZUcl9/VXj2V98guiTs+VWiPExOFJLRDkrARH50sue7m8A8jbmZOktQK23ofa/ 6Jww== X-Gm-Message-State: AOAM532yrS6h4FMqP0jvFQmq7J90jSfX6/hb1N20hKaidPnEnY5TnxSZ 4T8MZcdxvfTNhHbkFF3KMZk= X-Google-Smtp-Source: ABdhPJzq9Z4Y4jt4xPDxWSMNUH3ahGQUbTWn35uDE+XK/IfCQ/TRJW8uKGEwhSRNrAoQN0PkcEdlVw== X-Received: by 2002:a63:514e:: with SMTP id r14mr1406671pgl.282.1632776589693; Mon, 27 Sep 2021 14:03:09 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id o16sm19227652pgv.29.2021.09.27.14.03.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Sep 2021 14:03:09 -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.14 v3 0/4] ARM: ftrace MODULE_PLTS warning Date: Mon, 27 Sep 2021 14:02:55 -0700 Message-Id: <20210927210259.3216965-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_140310_847241_576C954B 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 | 50 ++++++++++++++++++++++++++++------- arch/arm/kernel/insn.c | 19 ++++++------- arch/arm/kernel/module-plts.c | 49 ++++++++++++++++++++++++++-------- 6 files changed, 105 insertions(+), 34 deletions(-)