From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9AE795670; Fri, 21 Apr 2023 16:11:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CAF72C433D2; Fri, 21 Apr 2023 16:11:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1682093499; bh=c90AqEKiidJLf8KZtwvOkDfwb/ynOHdlsUMkIyFs9yE=; h=From:Subject:Date:To:Cc:From; b=KsMdUFQ7RAYytqEu5yiC7RiTDLpxfwzrQhCOZbFOk4nRCZgGe54rlQI93CFEr9ZmI 9SUMhVRhXspg1GFDGqlbtU2j5hJaRBpp+cIy4/0aott+2sXoDNTS3vytPU6JcjGa5a jEkItwL2RmOyezIvUo/jUMKTLT+I0Gbd2cLOGmX+lA6y+u1oq8hF/EdL4tCQuI9S9r sCrgMmY7yoylUqIQ3PlIIMimMhewco19YLtAYrVSJY86NgRynjoMnpZjSjxMISOa7/ gi/pzIWpiUhqHLVvsJAcpxDs9F5KceLEZdA3wE5M3NG/yPdNX7X9VrqzEuAxZJBZdG Q07HrinNJjiKQ== From: Nathan Chancellor Subject: [PATCH v2 0/2] MIPS: Fix check_bugs() modpost warning Date: Fri, 21 Apr 2023 09:11:25 -0700 Message-Id: <20230419-mips-check_bugs-init-attribute-v2-0-60a7ee65d4bf@kernel.org> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAK21QmQC/42OUQ6CMBBEr0L67RpaLBG/vIchpoWVbpBCtoVoC He3cAI/30zyZlYRkAmDuGWrYFwo0OgTqFMmGmd8h0BtYqFyVeQXWcFAU4DGYdM/7dwFIE8RTIx Mdo4IuSplXtjWKq1FklgTECwb37hdM5gQkfdiYnzR51h+1IkdhTjy9ziyyD39e3ORIKGSWCK2W ttrde+RPb7PI3ei3rbtB4pVg7rmAAAA To: tsbogend@alpha.franken.de Cc: ndesaulniers@google.com, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, patches@lists.linux.dev, Naresh Kamboju , Nathan Chancellor X-Mailer: b4 0.13-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=1312; i=nathan@kernel.org; h=from:subject:message-id; bh=c90AqEKiidJLf8KZtwvOkDfwb/ynOHdlsUMkIyFs9yE=; b=owGbwMvMwCEmm602sfCA1DTG02pJDClOW3edXXEo5c2qg3dOC1izOSm/jlvcIfR9za6ZAfOmO BWLzarh6ChlYRDjYJAVU2Spfqx63NBwzlnGG6cmwcxhZQIZwsDFKQATyephZGjQXXeKRVSdz+99 hE75rsZuAcVtsk/FXhkrSv82WDhp612Gf9b9FcceP5sbbrpjVnkn15FNWn2vW79ct2SdaWGx+oi 0PAcA X-Developer-Key: i=nathan@kernel.org; a=openpgp; fpr=2437CB76E544CB6AB3D9DFD399739260CB6CB716 Hi all, This series fixes a modpost warning visible in -next from check_bugs() and helps avoid a potential, albeit unlikely, warning from check_bugs_early(). --- Changes in v2: - Now two separate patches: one to avoid current check_bugs() warning and one to avoid potential check_bugs_early() warning. - Sink body of check_bugs_early() into setup_arch() directly, rather than marking it as __init (Nick). - Add Naresh's reported-by to patch 1, which came after v1 was sent. - Reword commit messages to note that there is not a problem at run time because check_bugs() and check_bugs_early(), while not marked __init, are only called from __init functions; modpost does not know this though, hence the warning. - Link to v1: https://lore.kernel.org/r/20230419-mips-check_bugs-init-attribute-v1-1-91e6eed55b89@kernel.org --- Nathan Chancellor (2): MIPS: Mark check_bugs() as __init MIPS: Sink body of check_bugs_early() into its only call site arch/mips/include/asm/bugs.h | 8 +------- arch/mips/kernel/setup.c | 3 ++- 2 files changed, 3 insertions(+), 8 deletions(-) --- base-commit: 6a8f57ae2eb07ab39a6f0ccad60c760743051026 change-id: 20230419-mips-check_bugs-init-attribute-026103bdb255 Best regards, -- Nathan Chancellor