Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1663471pxb; Fri, 24 Sep 2021 09:13:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztBCph6lGCFkoSQSVqhe0ZjrnmtXlDmNKj5CogOIdJtT8QAhQAb02ZDg8mP6+K6CEG8eo7 X-Received: by 2002:a17:906:7047:: with SMTP id r7mr11872169ejj.342.1632500037938; Fri, 24 Sep 2021 09:13:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632500037; cv=none; d=google.com; s=arc-20160816; b=tdtuU2z5fYDTfg1DOh80Vq6j+w+bA1vRuu3nBZeOjaPcgyBXlCF2gOgD446D6ZSAS4 wV31ATgBPyMhqsMzy3/AskDJbi4a93NmuTV7tbx7lnbWnYPyT0tPuGkP6WRAOU0gRWm3 C02TQ4GTgaRv/T8vg7gu6fv+B8IN1mu2taN98zsoVy3Ks0eWVsFpqop5f0atcgxVCyfD Fx4JsyVlTFvy9j0DGwtSywShVGBMxDm/S6/30bJ0m5Pc1WPglwzJ0qNqEkJrR1MyAFkR o2qCLrwOLJMFkYQvG4nA7ags2a1ZcKGMaZpdpSIjmZEI//ZpAqzOZNqFHnjpRcHeGLpx dI3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=0YfQ2zBxgksg+2Nskeom4iZ9y4gZMYBwdBh+RnSeLrE=; b=sqSeW5TSKHp7BhOV48tOQarH2jLnRZ6I87EFa/IZsNe9gcYnPQ6Q0kmGfQfI0GMbGz VFaYGJygJ5l4CgiWpNHg1vnXr09IRaZCNbrY/Y29irCwEj21oqZilV11VLV1/NqMgq5S QzFeQOwJrJ2jX8MDwe/3ASYAIqhi/yq3IxT/9HDYy1JCKB5BqTmv/u2CqSzVH4MSb4ed olAphyWmFnAqQMPVuywHE083eYRnnjZRaFGw47SwBDd0fsNalqwjTFWrdIh4IeySqShd Pxd4vY9KAbhurAf7vURlOBrvAfWOYGv2kM7w+ogQzasiWqTbIDR/WCL6+6GZ1a0UjG16 ik5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="D/UN2KRJ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 5si9387325eji.566.2021.09.24.09.13.29; Fri, 24 Sep 2021 09:13:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="D/UN2KRJ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347311AbhIXQNB (ORCPT + 99 others); Fri, 24 Sep 2021 12:13:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347289AbhIXQNA (ORCPT ); Fri, 24 Sep 2021 12:13:00 -0400 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EB7AC061571; Fri, 24 Sep 2021 09:11:27 -0700 (PDT) Received: by mail-pj1-x1036.google.com with SMTP id lb1-20020a17090b4a4100b001993f863df2so7874547pjb.5; Fri, 24 Sep 2021 09:11:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=0YfQ2zBxgksg+2Nskeom4iZ9y4gZMYBwdBh+RnSeLrE=; b=D/UN2KRJLanA8Tv5NPi/h+nQS4a/S4wPewaIv94UADb1wZji1oiq48A4Y4Q93SxnLU AGBg8vBAhynuNwBXA5ttZW0qUBny5KFN8sNbQk9/omWPoO2RQRs+YcXxiWhn8XEr6293 CI7vI+FYxUG/GJhRzfvgH1oZDBUTwmuxEwNEv/qdCxmy8oHxs2P19xwVJyyCcXzNDTGe lv4FzzLhiyrlEJ6TFavpBM7p06SPqgUXUlYTJMDvIj7iZwBo2olc5C2uB5hys4bqGBoE 44WeDM+O8uv9N5p06sAS9Bh/u8wEWJ8pnJnLWXj8UimuzkP0m1i0+I7LnIcKYHjtFLSO DhJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=0YfQ2zBxgksg+2Nskeom4iZ9y4gZMYBwdBh+RnSeLrE=; b=Qk/uKjAp/M2OXFgLVl0lDL/R3rdEo/S0+56mk7LrdwO+9ZgmPkKcN0MeSMPV0ix4yn OYJJn8JeiTK1yDui1R3xkNBqgOldXTqG/7j+FhHRQfWe473MdKsGVPNawW1BiPrz2dgL sz/DfvJqsa/2qi0UeFu8aLB87ozqAPcbdsQrdmBBga/HxFPkXVihCgx4clb0eX/lBwB+ Jpd9xPd79LtlkptCRFZdFyVAD5govP7P4rAlEWzWuOeqLaMfrUTm3pzpIQCTlqWPqKf0 615iLETLGvQQANSQOyVD0FAs/lzhhq09MY8xTdYqwy/Ugapf3/1IyctM5bVUn/fF17wh 9Ahg== X-Gm-Message-State: AOAM533R9ubi14nS4KNMl/ADdiDsQSFRNN5gb2udi+S2v7QN1/QrG3Mr eJdVaNpFP1WMBW+tcOIJjOY= X-Received: by 2002:a17:90a:300c:: with SMTP id g12mr3149919pjb.37.1632499886793; Fri, 24 Sep 2021 09:11:26 -0700 (PDT) Received: from [10.67.48.245] ([192.19.223.252]) by smtp.googlemail.com with ESMTPSA id 126sm11697724pgi.86.2021.09.24.09.11.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 24 Sep 2021 09:11:26 -0700 (PDT) Subject: Re: [PATCH stable 4.9 v2 0/4] ARM: ftrace MODULE_PLTS warning To: Alexander Sverdlin , Sasha Levin , Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Steven Rostedt , Ingo Molnar , Russell King , "moderated list:ARM PORT" References: <20210922170246.190499-1-f.fainelli@gmail.com> From: Florian Fainelli Message-ID: <34ae79e3-f109-bc4b-341a-f05d95cf15e3@gmail.com> Date: Fri, 24 Sep 2021 09:11:18 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/24/21 8:27 AM, Alexander Sverdlin wrote: > Hi Sasha, > > On 24/09/2021 13:52, Sasha Levin wrote: >>>> This patch series is present in v5.14 and fixes warnings seen at insmod >>>> with FTRACE and MODULE_PLTS enabled on ARM/Linux. >>> >>> All now queued up, thanks. >> >> Looks like 4.19 and older break the build: >> >> arch/arm/kernel/ftrace.c: In function 'ftrace_update_ftrace_func': >> arch/arm/kernel/ftrace.c:157:9: error: too few arguments to function 'ftrace_call_replace' >>   157 |   new = ftrace_call_replace(pc, (unsigned long)func); >>       |         ^~~~~~~~~~~~~~~~~~~ > > in principle you can add ", true" as a third argument in all these ftrace_call_replace() > call-sites which still have two args. Sasha, what configuration failed to build? I build tested with mutli_v7_defconfig which does enable FTRACE by default and then ensured that CONFIG_ARM_MODULE_PLTS was enabled. From there I will re-submit, sorry about that. > >> arch/arm/kernel/ftrace.c:99:22: note: declared here >>    99 | static unsigned long ftrace_call_replace(unsigned long pc, unsigned long addr, >>       |                      ^~~~~~~~~~~~~~~~~~~ >> arch/arm/kernel/ftrace.c: In function 'ftrace_make_nop': >> arch/arm/kernel/ftrace.c:240:9: error: too few arguments to function 'ftrace_call_replace' >>   240 |   old = ftrace_call_replace(ip, adjust_address(rec, addr)); >>       |         ^~~~~~~~~~~~~~~~~~~ >> arch/arm/kernel/ftrace.c:99:22: note: declared here >>    99 | static unsigned long ftrace_call_replace(unsigned long pc, unsigned long addr, >>       |                      ^~~~~~~~~~~~~~~~~~~ >> make[2]: *** [scripts/Makefile.build:303: arch/arm/kernel/ftrace.o] Error 1 >> >> I've dropped them. > -- Florian