Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp528704rwb; Tue, 25 Jul 2023 21:04:33 -0700 (PDT) X-Google-Smtp-Source: APBJJlEoTNxXgoeJC29SKHLOrMsTvXGQy1rqLQ9myiLuySng3xpvrVdICis1D3AcfleotRe4bQRm X-Received: by 2002:a17:903:504:b0:1bb:982d:b756 with SMTP id jn4-20020a170903050400b001bb982db756mr1017808plb.19.1690344273121; Tue, 25 Jul 2023 21:04:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690344273; cv=none; d=google.com; s=arc-20160816; b=UDIYBMUrVTNdgaHwWryrUwI/lEZyOACfA6sGRwtuIwFSnwsV1nlLsNj1L8Wq/hy27r WlElt1eGmZ6g681UQ3XbkWWmqM+dLPjdDHXcwpdkNiDd/Oc4tf4ImH/1nDkrKA6yicZa aHblkckR/pmCnGAvrOUDY4qMr3c5ee9wir6LAQfPBcfS8HO88iVMGSC/aLTmpOzuonpa DFR1mUMTsqgP88RLR7Daevi8U9XAKUphkUjmcJ5SdcEAL0NnHgd7Pwb40lJjXEnTAGgL AFklKZcBLX2813u0KGyPmh265UN92fgaAuiHVWKGHnaVrzTjdvLEVFYFoL3bmlEJVxoa pZEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=lgzjWTY/PmUGLLnRXdIqcEvusOkMJ6cn2HqYFVTUEWE=; fh=AO/BbnqoyPIICfVOLLvy7gvhpKtB5ASwmP1Y27h2BWw=; b=Icd34b2uc9WjQxlKsi0uMqTIXDUbl6AKyGNKwRKu4dehZuY45VAD/9x8NvMwi6yBhc 0qBq49zOVSQ6picbo1pT6tmMIA6qxlm+XnuDBEpY7nvRULNGomxaENmG+6OFeY3mAm/F 2lkYlNp3gGb2019EppPZJrcnDlyJ+MVRQuNkgVzwunvEOnoivdbuEjlqOITgeI3TZ8Zx LvGUGS7IF5qvnLqTWeHtCsLtXsSdxmQgd4UYmaCuaPgcxT4+dXA+xlhWto/LPl5L1Iek YBLc9xucaajvwfXpYT3rSzqbFfAuE16kqRJW4GVga8K0wLg4cNRcml2ulP6TZ6F3JJ9S Jx9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CnqKeJo6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 l19-20020a170902f69300b001b890b3a512si14062065plg.615.2023.07.25.21.04.20; Tue, 25 Jul 2023 21:04:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=CnqKeJo6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S230128AbjGZDsR (ORCPT + 99 others); Tue, 25 Jul 2023 23:48:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229535AbjGZDsQ (ORCPT ); Tue, 25 Jul 2023 23:48:16 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2396E268E; Tue, 25 Jul 2023 20:48:15 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A9EE06119B; Wed, 26 Jul 2023 03:48:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1BB0DC433C8; Wed, 26 Jul 2023 03:48:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690343294; bh=rs6jcTA1tX2fj6DzRO8UEWlSFdaKRM/QU3ygXAa8lZo=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=CnqKeJo6CGqzPFUB8YPh2EHgarE+dwQT/J7e5XPflVEWQvvGOl/BqF0y6X9wWHGIR 3X/dplWk1JXxPV8bEqC9Xf5nDjTh2327mQLFunltJHCWpkAkyzTtA168wKQQ/jYdpw btXzZJEUUdm0DPjQABYZx05jlTMxdZ7PcKAJM2lXmd66roLGdkbLw7ixRVTt1EQf2/ G8XZf0Enq/ddZPZcgJuYWyC2OVZvTndmfIDKz3ODXRLNbPI/3R4p4Bo4gUCq0nigxV ewvz8lrq2K77wBjQcNkZcmjR9MLhghpBWWzs9tCj5ojZPpjafn3mbXSqe5wTdzeHBg arpz+acOG0d3Q== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id AC93BCE0BDC; Tue, 25 Jul 2023 20:48:13 -0700 (PDT) Date: Tue, 25 Jul 2023 20:48:13 -0700 From: "Paul E. McKenney" To: Stephen Rothwell Cc: Linux Kernel Mailing List , Linux Next Mailing List Subject: Re: linux-next: build warning after merge of the rcu tree Message-ID: Reply-To: paulmck@kernel.org References: <20230726123230.525202b4@canb.auug.org.au> <1c8c257e-55e3-4de9-b2c8-1421c11df664@paulmck-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1c8c257e-55e3-4de9-b2c8-1421c11df664@paulmck-laptop> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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-kernel@vger.kernel.org On Tue, Jul 25, 2023 at 08:33:06PM -0700, Paul E. McKenney wrote: > On Wed, Jul 26, 2023 at 12:32:30PM +1000, Stephen Rothwell wrote: > > Hi all, > > > > After merging the rcu tree, today's linux-next build (x86_64 allmodconfig) > > produced this warning: > > > > WARNING: modpost: vmlinux: section mismatch in reference: cmdline_load_proc_show+0x22 (section: .text) -> boot_command_line (section: .init.data) > > > > Introduced by commit > > > > cf9eca90a339 ("fs/proc: Add /proc/cmdline_load for boot loader arguments") > > That __initdata needs to be __ro_after_init, doesn't it? Will fix, > thank you! Sigh. Hit "send" too soon. :-/ Does the following incremental diff (to be squashed into the original) help? Thanx, Paul ------------------------------------------------------------------------ diff --git a/init/main.c b/init/main.c index c946ab87783a..981170da0b1c 100644 --- a/init/main.c +++ b/init/main.c @@ -135,7 +135,7 @@ EXPORT_SYMBOL(system_state); void (*__initdata late_time_init)(void); /* Untouched command line saved by arch-specific code. */ -char __initdata boot_command_line[COMMAND_LINE_SIZE]; +char boot_command_line[COMMAND_LINE_SIZE] __ro_after_init; /* Untouched saved command line (eg. for /proc) */ char *saved_command_line __ro_after_init; unsigned int saved_command_line_len __ro_after_init;