Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2466724rwr; Fri, 21 Apr 2023 09:13:12 -0700 (PDT) X-Google-Smtp-Source: AKy350ae4NDT49m/bOvnEPs/316zhDxsldZ616LLHjwfK7pGB2SuWCAH5O52GViLkz6EUOh4kIeo X-Received: by 2002:a05:6a20:12c8:b0:f2:c9c:6e8b with SMTP id v8-20020a056a2012c800b000f20c9c6e8bmr6406917pzg.3.1682093592353; Fri, 21 Apr 2023 09:13:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682093592; cv=none; d=google.com; s=arc-20160816; b=LCTQVnf5G7ywPOzs+Zq1EGCarA2VP6HFa/CSO9e+8qveB2K4RApqhza99HQKDAIvMj j4KfgLx81hRly6uRfRqu6YmKbNcbA7fTuLcrp7xpwtxmLHR9dbGBda7jNELg53JlSR9T 9N0dVuB0ifGiU8WiBwHY4g1JO1l2CpefNSEnfhZyXyPphKp6BOY4QGLzmYl/PM2TwUMK xkVrsxiR+4xs1WqfTw8p66Kqb7USuWLLzNqnCgq9UbDg81D3tt59B+dqqhFdV8UdimzM E2zhtPjpqJSwvsoy9Sj7Xo93bPIqGmzzzGnCC3/qyz/YQyEGgM3YPmsmb5O1V5XOhvIC g4ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=rqaH3HCn7a1DpmL/7pAEEXyA8MpaTNd52U+3S0P3jAc=; b=oa9F0XFCkEtqqB06S6nZ0TTt2/UTz69Gy6BjjsmO7sLn1xr6o/2TcQowNx93LU+wyU 8wJC7+91QWGkdS7ZtjgK9vbOiDB37bzv44UBXD0S0njuyDl3j4QbwwBgD7AlXRcZPn/W b8n8hRgA60D37fgTD85uzqgk4ZdQTJS72BI5Rj8AFlNuMaX8t6zFKinAcMT+eA75bHGt 0T36i7e5i4535Lw0GbiJSofDL1WFVh5qzBMdrVM2sin+bL/OMfqtl0eI9NFeKUQAHpcc iMeZV36waoqZunOCkC6T2lFrb92dc00dW28AmP4xBsNHQw4xkynYwvinJqIs9c7odyhs 8DDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KsMdUFQ7; 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 w71-20020a63824a000000b005143448896asi4852734pgd.62.2023.04.21.09.13.00; Fri, 21 Apr 2023 09:13:12 -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=KsMdUFQ7; 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 S232576AbjDUQLm (ORCPT + 99 others); Fri, 21 Apr 2023 12:11:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230076AbjDUQLl (ORCPT ); Fri, 21 Apr 2023 12:11:41 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4377D1BE2; Fri, 21 Apr 2023 09:11:40 -0700 (PDT) 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 dfw.source.kernel.org (Postfix) with ESMTPS id D2160651A2; 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> 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 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,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 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