Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1264430rwb; Tue, 29 Nov 2022 11:03:12 -0800 (PST) X-Google-Smtp-Source: AA0mqf7OtUAwRZn5a9U5tJccbNV4Gmf4uCjW1jbea0t2UTFA+1bsGz3Qw8hfa4LYD/n7qN3BUsFm X-Received: by 2002:a62:60c7:0:b0:56b:94f5:400c with SMTP id u190-20020a6260c7000000b0056b94f5400cmr38627037pfb.31.1669748592119; Tue, 29 Nov 2022 11:03:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669748592; cv=none; d=google.com; s=arc-20160816; b=QKZVN1SV+b/C9ge7huadKKJQJnSFg9gfKtdYzIoQscS3RNxRk1h46C3+x99/3YYXRV mqJ3U6wXa40t+5nj2IOo2USD5tacsAk7UgvBUU/tdJ5l8c6ANZOclFSJHLU0TqrTEfVk Tb/C+eOERHH0wkvAULpvzZsZW2hz4dxQJMRr+akiKym3RlMnPzPKzPkdPqL89s1w0ftg qoHsekwiavex+9p8HR5+m7wX2jZvMw4NjAYSSPDaKOXdb0+zbg1idO10W/i3KHRvXt2s 2o+Px8lk8aVRqAgghREBPUD4VKQHsE3EPAJFtMqGEdjG6mA06QNWN1Sqbnddc3Z6x1wB rykQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=KeIUvpKTB0RFRoc8KkR+lVVTtKWKvGl/0Dc2tkMdUW8=; b=ci05ASGGa8W/sn9qaqwl7v5Tbg9ZCE3p2dRNO8k1Eokq9dfldt0Qz5XgbXBo9wotj9 dene6HgCVM5vD1/e5gTLJZ6QnGEB49x2WR68Wg0XSkFceaRM+rFoXUAbgn2ZrEMpTtRW Xh5bcvZpiCIVa2plOwD+efLGfR2Y20C0bEjYBGAIqM1rhoIJEAW/1Pwix5HUVBekoIth Xr6jGU0FlZCV3xFTI6NgLvbFkR40DUFeA1VkTcxFDvvihYtn5uPNkLQoA+8TwO6CN0EP CPJFlPUCAhwcx8YceIUVdBCob46/pqaIVfW+jvnpGdwkFrT0K2ycr+1cF6/6hug6edKm dfHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=b8E7E715; 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 h2-20020a056a00218200b0056d480f7b92si16025623pfi.378.2022.11.29.11.02.51; Tue, 29 Nov 2022 11:03:12 -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=@kernel.org header.s=k20201202 header.b=b8E7E715; 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 S236330AbiK2TCn (ORCPT + 99 others); Tue, 29 Nov 2022 14:02:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236395AbiK2TCU (ORCPT ); Tue, 29 Nov 2022 14:02:20 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6AE32612; Tue, 29 Nov 2022 11:02:10 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 53173B818BA; Tue, 29 Nov 2022 19:02:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 48EFCC433D7; Tue, 29 Nov 2022 19:02:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669748528; bh=zcH9Mx4yhhHCBaRFX7gIslk77gGtyEOFhzA1cK2yiwk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=b8E7E715gwiGVSu4+jlPan7GuwyRNtd5NEcmg4zeSs7Ek4RScBsaqVOnMKNCi261t bLOXQt10knqyrBcbgNES9dGvdleL8kciII2JgDy9fG/VQUtNhnLK4ZDPv7NAW1yEIj wc3BqzPAXJDTahjjTxa4rv7aKgvKK/Dpfw09W7z1OUHcoUjBVdhDx+kQxjl29JWj78 GCr6YgQ53UI9JUN4EIJZQisd9HE/6zgF2qxSG/iMMODXH0VOBTHWXyA3eWtipSoxjn 4ZZwlFtEVW450TYkaQ6X1K/Q2JBDPK7OEhk/0Q8QVHNEvCd8Zcio1F0LBG3vaIvX/5 CdyTq6Rp4XdAQ== From: Nathan Chancellor To: Masahiro Yamada 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, Nathan Chancellor , Steffen Klassert , Daniel Jordan , linux-crypto@vger.kernel.org Subject: [PATCH 1/2] padata: Do not mark padata_mt_helper() as __init Date: Tue, 29 Nov 2022 12:01:22 -0700 Message-Id: <20221129190123.872394-2-nathan@kernel.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221129190123.872394-1-nathan@kernel.org> References: <20221129190123.872394-1-nathan@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 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