From patchwork Wed Sep 22 17:02:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12511059 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 0D3FCC433F5 for ; Wed, 22 Sep 2021 17:11:56 +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 BB9FC60EE2 for ; Wed, 22 Sep 2021 17:11:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org BB9FC60EE2 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=XLfEQYtw9jx35IYw/k8ScMb5PL+zA+aRw2Gm8nYJmY0=; b=1BxmwUu/CXllYd RFDjmjK5sJxsFhU9AH7JIFfBCVkMXfwNwZI0Bb6vLwgPET3cK7nTDRWQRcjsXNKyS1ainbqAyoj55 /OCRXZnA23A/dfnrU/rvUw5kBjGwRjUdKEtL3bdDg0u8RFuOHgybOJjax20knsZr3/QJqblojnSk8 4DoUFCg/2JrzRJhjX7GWqF7a/QqtR05PgqorvaZqSkeAgS4L9ev0BQeoTd4aKZXVcYe6913bCfR8F 5jSstotkTKFFSQnNYy/RFDZci4YSdcnMQ2PbqsVpDi2FJ9YBPJLyvSNa7HIlZoQT1Uohy1H+zzOs9 IAPJbrPjXnwdjBA9sKjA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mT5kr-009Foj-Aw; Wed, 22 Sep 2021 17:09:58 +0000 Received: from mail-pg1-x52c.google.com ([2607:f8b0:4864:20::52c]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mT5dX-009CYV-Rf for linux-arm-kernel@lists.infradead.org; Wed, 22 Sep 2021 17:02:25 +0000 Received: by mail-pg1-x52c.google.com with SMTP id s11so3324763pgr.11 for ; Wed, 22 Sep 2021 10:02:23 -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=+5/G0wNYSsPonzPykbqlENShLiJ+dcmYAQjyK7QqizU=; b=qKVlKCNWFot0H01I3Mo0kJ2wuqRaXpzV4Yvv3ny+wxmdYBFkjz4HLkR7EVfhXPNJMl yPKsu+QVdG2fso4cP534byFU0ZSIydYJHYWwc//t0edr9xt6WcvMHWBxa6hFhoPB4VA1 9ambc9E5nnedPMme8mYyYeuUdf1GuHN1PnObYt3XAANnQIx+53Npfavc6LF8QmVI44kU tsdm1EhfQcisonB/OLcL/IbkQiBqY9P8SIY4HSDNOlqBABAQKJrfnc3W9b3SgPbK6hKv 0341Kw/zMLVNGE3bsEjidzFD3Ivz4PyJkIwisyu5YigJztu6h15up69HD/mLdvSZL3oP g4OQ== 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=+5/G0wNYSsPonzPykbqlENShLiJ+dcmYAQjyK7QqizU=; b=2BsdMcxQwXB9qD2fVAih+sHTGz6GIIGcCpFXwNUeE+xhtcTMYg2uwYPRwCuVPQJFk+ /b5HQUFD+XgF53qugMO4DzVA66/8QYdZFfwke+mFkPwgucnlRPrpp/+6EP5dWYGsJFmy CpdWOV6BGK3cWZaAl50IugVKpzmuVzIf2VJBEv/ZKVQQvG8Bpo8uvKulHcBCLOHQHaCX 8YgZo339dnnq1lqisJc/FScOBdcmTza4jRv3Xv1MYrdknJcUx6xoVScpT4pIrlzkN64J qDVQHSTCyhTil+B0rR39dM9XsnsG9nfle/Ww6NJaI091s8MHfSXLqXnbHRZ7iy/xKs0y DUQQ== X-Gm-Message-State: AOAM5332Jwy5OAf75VHuml/ZGde/eSzOQ9ABjQO0f2KsXS86gyX6t5yP PvbmlPBA+KVBJcM2FhUEHaA= X-Google-Smtp-Source: ABdhPJywg50i4u7wS1zROBXH3T9yBP2SGuE8Lx1UDkAOfSKuSf5AsH8FH1jiRAS7ZxPvhXZts8K1Zg== X-Received: by 2002:a63:f913:: with SMTP id h19mr615433pgi.351.1632330142698; Wed, 22 Sep 2021 10:02:22 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id r76sm2796579pfc.2.2021.09.22.10.02.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Sep 2021 10:02:22 -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 v2 0/4] ARM: ftrace MODULE_PLTS warning Date: Wed, 22 Sep 2021 10:02:06 -0700 Message-Id: <20210922170210.190410-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_100223_944692_0AAC2056 X-CRM114-Status: UNSURE ( 9.71 ) 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 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 | 46 ++++++++++++++++++++++++++------ arch/arm/kernel/insn.c | 19 +++++++------- arch/arm/kernel/module-plts.c | 49 +++++++++++++++++++++++++++-------- 6 files changed, 103 insertions(+), 32 deletions(-)