From patchwork Wed Sep 22 17:00:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12511017 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 6FC26C433F5 for ; Wed, 22 Sep 2021 17:03:46 +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 2CBF960EE5 for ; Wed, 22 Sep 2021 17:03:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 2CBF960EE5 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=tzx0SJOT89IbO6 6kPUutzuh2t3/lKHxuDB0m7aiBopFfQPhhUD+Fi5m0pUB2B3Yi6+NthQV5uPip9sTWJ9ApvnmLwHs B6lz3cswhuV2sroa0ORcHVZjxd9mkkuclxTNJp2Qjr38f8AlI6IaeoXcuv+1V24Ow3SV1nAaSezbf gbAtk9nXzZWkSI9pzPrxPQLh2AbI7l9DMpvdSYqF0Ood/CKnkqQkVqd4mb73i5fYg2/EQ2F9C+jWy Rgm+SPXPCTQsZuV5mbgXGw25mx1eEsG2FLAhFMFKSjEh3kqRsjSZPCPIqFZdGbW4iqCXCw+k279AD gDjVhh7+uAHxRlN1rH0A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mT5cw-009CFn-0g; Wed, 22 Sep 2021 17:01:46 +0000 Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mT5cI-009C0H-Ef for linux-arm-kernel@lists.infradead.org; Wed, 22 Sep 2021 17:01:08 +0000 Received: by mail-pl1-x635.google.com with SMTP id t11so2158173plq.11 for ; Wed, 22 Sep 2021 10:01:05 -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=G856MxjjGPngKxPlU4rZ15RyInBh9AUKXsgjANyyWN77Rb1n6hM2S1cbb2/oxXopxc 64VpVvY0JeMVeiqKONUgHPA1wpLFuX3W6eJlo7OJZLeQE3c63vV1j8u6s64x71QYTCDS b8Hx5o+oMrfCtBJUUSvl9jwJyAiU0EBwnR/rmRrHGXEiNQo+bIReZUWGMs44VwGl6B74 9oGMFTjd6z1z2bxNs59/YhzDxC/IkCn98Sas7+Z1hr6JLowuS7j48Y1yBKQ80pIhqTvT aZVD0QYCzkPKMvzVnyttFm29sEFYX79a88EIFJoPUxLTeAL/g7qcbR8qI7MkzCQYyRXy I6fg== 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=hfPrqpFrnmPRlGK0mbm35D1+LmG0SeoQtXeHIBSvqw0s3L4PZXKPvSnLx4v85ycGDI AujrkreJZx0CdxMjm84Q9za3Tzn5NnBfxkCWiUW5nx8bqUE3OKsw6akYqKApfaSrlxwX dWhjOIijTHRGnwKlrDTnsdspMFz9UYPRxap7TWr+GF/qVAJ4TFbHUw94J+CFm8O6VbzJ VVminhRiijuKXSvR+ouG7ryD2WLreZTOYb4zLQMJ24mTTLw7B7VXUcXMARGzyb97rLZW RUteZ5c5hfNXqpT5GKUhRwwmF86+u8Cw9sjFWjrvd2SRPaOp/21aIDSAKi72cUN3yCXR LaVg== X-Gm-Message-State: AOAM532JS7Z8t9AKo+TMa1xuhAv4wmnDQXAvVA4uZZBwBf96430LnTMO O+MrRKyZP2LJ3/H9ujnO3z4= X-Google-Smtp-Source: ABdhPJzj3q9k4mc0q+v7QDk/BrK5a2ezqCe7yJCiuEODj6LKa6BgfkRSnY5ImDFFfG3msgu+uLKIWw== X-Received: by 2002:a17:902:da89:b0:13b:7d3d:59e9 with SMTP id j9-20020a170902da8900b0013b7d3d59e9mr395643plx.41.1632330065176; Wed, 22 Sep 2021 10:01:05 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id i27sm3041404pfq.184.2021.09.22.10.00.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Sep 2021 10:01:04 -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 5.4 v2 0/4] ARM: ftrace MODULE_PLTS warning Date: Wed, 22 Sep 2021 10:00:30 -0700 Message-Id: <20210922170034.190023-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_100106_530578_ED2E962E X-CRM114-Status: UNSURE ( 9.80 ) 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(-)