From patchwork Mon Sep 27 21: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: 12520781 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 9428BC433EF for ; Mon, 27 Sep 2021 21:05:45 +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 5B01B60240 for ; Mon, 27 Sep 2021 21:05:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 5B01B60240 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=AC7mRzRIowiV0r klC1DB2GWaZraY6tGQI/vYvgr0m16r3Lop/X3fbiG3UBSdKZ89I6CzQvWwNh2pZwFk6ds1DDASwwH TkKKTj6ffkHhi0fdaK5tbaWbHjBPG94jSsTrF927ssQojVYldS3YuZ8ma2JaovjaJv/qWVTAX37cD MOXlx4YEBNofgMD2unsYD1QWsUGkIpBp8oCRoDe6buZaSiwzjhMNLZBnFd8q8bBuTKXDjhhg9TdGY QUPpXgt3e/3TATGwPtxmcfvhe7WZjbx0QAxIpLQLhruX8axY/Uld5q1K6D9IIz7agoxKgxG0bDsMa Tl8X8d3NDnbg3kw9pUzg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mUxmO-004IJE-VL; Mon, 27 Sep 2021 21:03:17 +0000 Received: from mail-pf1-x436.google.com ([2607:f8b0:4864:20::436]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mUxm4-004IAc-MR for linux-arm-kernel@lists.infradead.org; Mon, 27 Sep 2021 21:02:59 +0000 Received: by mail-pf1-x436.google.com with SMTP id g14so17079640pfm.1 for ; Mon, 27 Sep 2021 14:02:54 -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=WXkjvvFw6KRq8AOFaCTJtjkf+CJpT1EnqLUrcF1s3qpv9+a4Ev1zzDz7IP1MmyRfyQ NtwICFjE6F4vJB9ktAtAbmAGvvJI/wDdoxCF65+iG3UafkrLF87SFvAfZgyttae6i50n cJyqLV6NATw37qG4aSIPCWwBIebS+7TzMkvcZyKqg7f6dLcx41QXqZNeyq0efongjU0O RBgkX3RyccwhZ29OyeePwqfbgju5nIb5sEuBbKueN0cYp5sCsUZuh872wSj+jP8WMa3u q+SSvpH9uQ/JDlyXkax1EX2YeoFcbBCZoyfsCnzySL6XVMgnuOp2Flwm75MmYz8JCd9a Bn7A== 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=zaEJWpAXj5Lg9AY3oFDlZlKp5yH3boLNaUQuMX0s7U5aXVolFSzYeDOjrmjvohiXZi JPl2LS2EfSzn0qttfourIHvM8zhE6Vr+clepK9UZuohAB6ycB66mTt4KtY+ht+Rp6FBT iAgJ3f5OL9b1rUgedTpp+0prDZIJ2XmoikLMrX15S6dyrSPTc+N8jcWgj7Ny+l7m4EeM QawzwZZr7PryEEq4I9hK2y9luBMTo0XtbgO7JG8cAurn3idooYBTjKmiGfJbQoF+tlg8 e3mIn5fKyt2yxRo0Rp8WYz6FRrNfoyiVHbZ5wrzukRQ/Hcrxajk2rH7fqhoukZ/pCGbF nkvw== X-Gm-Message-State: AOAM532bkF5O8ijcAsacP0pFVXeuIfNrZo7WO6giuj4bBVQGhWEGk6rb Lz24d9F5iqJBj4IVALrsrXrm9MJUhqg= X-Google-Smtp-Source: ABdhPJwfWNHhPdoPThA4EIlzswek7Cee9JKWWBvkCoCdjIt0Dxx7OJO8D4FDIO+wR4ZymJZVFUA0Nw== X-Received: by 2002:a63:67c3:: with SMTP id b186mr1371124pgc.229.1632776573686; Mon, 27 Sep 2021 14:02:53 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id y3sm310537pjg.7.2021.09.27.14.02.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Sep 2021 14:02:53 -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.19 v3 0/4] ARM: ftrace MODULE_PLTS warning Date: Mon, 27 Sep 2021 14:02:42 -0700 Message-Id: <20210927210246.3216892-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_140256_799956_08010DED 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(-)