Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3044546rwb; Wed, 30 Nov 2022 14:39:00 -0800 (PST) X-Google-Smtp-Source: AA0mqf5q/PObqQITstIcJDhz71lffd6sgR1xDTgJuFtUlfp6byVH8m0zDGQPI34taTVLmhzCRRkB X-Received: by 2002:a63:1607:0:b0:457:a1d3:48c3 with SMTP id w7-20020a631607000000b00457a1d348c3mr37409554pgl.465.1669847940670; Wed, 30 Nov 2022 14:39:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669847940; cv=none; d=google.com; s=arc-20160816; b=Q7wnPsNsUYxOk7wBQ+q4KQoYq0kbvZvQxXooQr7t0uTUE/qSecS2vKEaCqoAxfXxmf 0fiJPl81YUHi6y5MBsGeExPZ3aIPpqpw5X7do17GP32jSFqGr/JVudjE1rn7LYpLRaHw ScHkKpNccBh9+DqMSN5g1BzMlfDQYZY3u5SRhDKT44B1FURxj3hZdw7bFBKGBJKxoIEl 5m6Ua8I3qzVE+l1kP3Qrm5p2ZzqcXyrv2Sz/rOW5JRjcce1SLdQXe3ZVVY8PYW4u9las zZQEDfH/W2LQn6H+sACR77IFCZQQDBgfnfF6UrgzgjugNc7ZOVmnT+p2f3w7yPFVP1Kd eFXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature:dkim-filter; bh=RCOA2Nmk8RchnYckPF/4P1hJEvsAWuR5bSpQkzBr1MI=; b=fh4ahmuqcRPWaTCVdx3CWizefGkF7XNuHtOgc6HQJGahYInWCyJ42YC3vmnR0k9u7L ivaTD5TiHaQB/IsRdCwJRtsbXH9a/BIyqEAM2X5PmXnbtAYtscMfWDeymXfwh6dcDydI 6enGGDxG9pIi2xbE0kt7BBrVnpuX3ZpOJupEZPO7lJFDWRbwqrvJMhMMJiH1RR/mXxkF xnGwU+opa3pVh5TIkWUq7s6NjiPnPqkxy577FDyR+vVaut0Zy3KD7AJXWaz6OKnYvbAz zEDS9qTCwbecv0jh2LMFA/WPtxJ6y+uDgMtj9aKXF6UT22tnjJZThgZQqsngmT3r2fPN tUVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=T0NDgbQu; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x6-20020a17090a970600b00208e05957c9si5225048pjo.20.2022.11.30.14.38.25; Wed, 30 Nov 2022 14:39:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=T0NDgbQu; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229589AbiK3Wgz (ORCPT + 99 others); Wed, 30 Nov 2022 17:36:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229445AbiK3Wgy (ORCPT ); Wed, 30 Nov 2022 17:36:54 -0500 X-Greylist: delayed 900 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 30 Nov 2022 14:36:52 PST Received: from conssluserg-02.nifty.com (conssluserg-02.nifty.com [210.131.2.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ACBD65802B; Wed, 30 Nov 2022 14:36:52 -0800 (PST) Received: from mail-ot1-f48.google.com (mail-ot1-f48.google.com [209.85.210.48]) (authenticated) by conssluserg-02.nifty.com with ESMTP id 2AUMaajR030753; Thu, 1 Dec 2022 07:36:36 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com 2AUMaajR030753 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1669847797; bh=RCOA2Nmk8RchnYckPF/4P1hJEvsAWuR5bSpQkzBr1MI=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=T0NDgbQuBl8lsVdF+pJOLVK+pE948s/ldkHOx6f4DNRKzEek5HOkHSnh+Zd+7V5VI 4iVPKRYIWH84jTGcPFYeXdcDn4vp0/z0ltg+FIzOShm9r/+QhZeJSDMCiiq5iuLaKQ YuJiSW9fT+bwQW9RJdMl2sMKbaTWCa3sz8BoJrzaHhhwMbx/NrulFYUeAZDYUF0g8U uTFhuvuKJTslSvyotDwHEi8AB4ZQnwVGH76bRH/XlaF9kLYcZDlX+yT3xIih/yLzjf 1ECUf9MJWaPyy2OcE7WuBauXLReuu+cRw52lsitxh3jSU2oduXgE1uA+g7ffdtLe5D Q9hPwVdtCfSGQ== X-Nifty-SrcIP: [209.85.210.48] Received: by mail-ot1-f48.google.com with SMTP id t19-20020a9d7753000000b0066d77a3d474so12172406otl.10; Wed, 30 Nov 2022 14:36:36 -0800 (PST) X-Gm-Message-State: ANoB5pm8XwxoaaL3PReD3UrGUEOiwkRyHestzb2jwpwmkBIlcW6ra1AZ vdrotlKt0tFtdld2H8VaY9ncLodgRENVyWT2IEY= X-Received: by 2002:a05:6830:1b67:b0:661:8d9e:1959 with SMTP id d7-20020a0568301b6700b006618d9e1959mr31870741ote.225.1669847795651; Wed, 30 Nov 2022 14:36:35 -0800 (PST) MIME-Version: 1.0 References: <20221129190123.872394-1-nathan@kernel.org> <20221129190123.872394-2-nathan@kernel.org> In-Reply-To: <20221129190123.872394-2-nathan@kernel.org> From: Masahiro Yamada Date: Thu, 1 Dec 2022 07:35:59 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/2] padata: Do not mark padata_mt_helper() as __init To: Nathan Chancellor Cc: Nick Desaulniers , Tom Rix , Nicolas Schier , Sami Tolvanen , Vincent Donnefort , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, patches@lists.linux.dev, Steffen Klassert , Daniel Jordan , linux-crypto@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Wed, Nov 30, 2022 at 4:02 AM Nathan Chancellor wrote: > > When building arm64 allmodconfig + ThinLTO with clang and a proposed > modpost update to account for -ffuncton-sections, the following warning > appears: > > WARNING: modpost: vmlinux.o: section mismatch in reference: padata_work_init (section: .text.padata_work_init) -> padata_mt_helper (section: .init.text) > WARNING: modpost: vmlinux.o: section mismatch in reference: padata_work_init (section: .text.padata_work_init) -> padata_mt_helper (section: .init.text) > > In both cases, an __init function calls padata_work_init(), which is not > marked __init, with padata_mt_helper(), another __init function, as a > work function argument. > > padata_work_init() is called from non-init paths, otherwise it could be > marked __init to resolve the warning. Instead, remove __init from > padata_mt_helper() to resolve the warning. > > Signed-off-by: Nathan Chancellor > --- > Cc: Steffen Klassert > Cc: Daniel Jordan > Cc: linux-crypto@vger.kernel.org > --- > kernel/padata.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/kernel/padata.c b/kernel/padata.c > index e5819bb8bd1d..c2271d7e446d 100644 > --- a/kernel/padata.c > +++ b/kernel/padata.c > @@ -45,7 +45,7 @@ struct padata_mt_job_state { > }; > > static void padata_free_pd(struct parallel_data *pd); > -static void __init padata_mt_helper(struct work_struct *work); > +static void padata_mt_helper(struct work_struct *work); > > static int padata_index_to_cpu(struct parallel_data *pd, int cpu_index) > { > @@ -425,7 +425,7 @@ static int padata_setup_cpumasks(struct padata_instance *pinst) > return err; > } > > -static void __init padata_mt_helper(struct work_struct *w) > +static void padata_mt_helper(struct work_struct *w) > { > struct padata_work *pw = container_of(w, struct padata_work, pw_work); > struct padata_mt_job_state *ps = pw->pw_data; > -- > 2.38.1 > This patch seems wrong. padata_work_init() does not reference to padata_mt_helper() padata_work_alloc_mt() and padata_do_multithreaded() do. -- Best Regards Masahiro Yamada