Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp662951rwe; Wed, 31 Aug 2022 08:55:29 -0700 (PDT) X-Google-Smtp-Source: AA6agR5tZ5shUSbU8VnahtlA6tM7Qgcm8q9L9UER1cMnOz+3cChkhdu5x2qCnSqXMqw8pUd2sfCw X-Received: by 2002:a17:90a:4e0d:b0:1fb:bd1b:624a with SMTP id n13-20020a17090a4e0d00b001fbbd1b624amr3982345pjh.228.1661961329562; Wed, 31 Aug 2022 08:55:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661961329; cv=none; d=google.com; s=arc-20160816; b=WR3MgmtYaFceAIeKDPc5eiGWBhbYMfUlR4Cf+vmpPiZLr1Aboh95xaTBFCnRrcI5yr oQ4D2KHENCT/A8PzGt/ti5QGCRFlHIwK7dildvhii3rGEwocRjM9u9GxwZUjjfLma7R6 8ZxQYg4jOnbIUyFnEchbCs0CsPk1wLWrTyPW0UPTTc8Agf1xemvitTvCHoVL5CaR3lDC k1XNpJWG2ZF58iT0hn2PIt+n8ajoqcubVdSIwAMiQ3mQexNxldLo9hUSK/5flZFdcHxj 6Km57ZdcYqoU8uGPbIrs9g5FESQUpGab9T7+LNkTdyaK2HMtLybg1OeAZI+qsGpTCNfe ozjQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=fLiJaoVRvGuobdA76GAJSz7vE+dYVQeAfSPgfkD/gvw=; b=P2f01J435PS+uK8ocCg/WAHEh2VJ631Ngan5ZgbI2PIUvaJ6f+xZQB5tdU3jKxhp2u BjPety+y+30/7PmhpUJ+D9dQbh+22KXxPmzw5XvOK+SdNRl3nDHtz00AbL1H6VPaho0Y Sqb+yLWAeaLYbDHi+lmk8RQKAWTe6+UVT47KXoLX3/XKtWOmCOpqdG6dejAWr0M4ekW7 XsKwtJfVcsrPjAA/ALvQRju87xOav8NLbeTtC/A9uImYk1YdS3iAFHGDhC6hdUEsGm5v SNYfp4K1mVrbi1rwluwSDeUQb03e7qUU5F+1fH3YmBBz/EOdJcW6hg5HFE8VkhcKAkt0 8QNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uXMTB1pz; 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 x9-20020a17090a970900b001fdcb564d73si1885419pjo.79.2022.08.31.08.55.06; Wed, 31 Aug 2022 08:55:29 -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=uXMTB1pz; 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 S229826AbiHaPVl (ORCPT + 99 others); Wed, 31 Aug 2022 11:21:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229682AbiHaPVj (ORCPT ); Wed, 31 Aug 2022 11:21:39 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46ACEC2FB7 for ; Wed, 31 Aug 2022 08:21:39 -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 D608A6108F for ; Wed, 31 Aug 2022 15:21:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 89678C433C1; Wed, 31 Aug 2022 15:21:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661959298; bh=DTL+LV2yF2EH+15dxhJXJ7zmzomlghacq3fufP//T8g=; h=From:To:Cc:Subject:Date:From; b=uXMTB1pzQhVDzse2eYe/8fReXNqRMnQhKSVL2CIhKlqloRVvQDRTOewBE7hor/JOx d/aUvJZzk9oOiwH1rnRAuSiZxyCYYnjYaAT5jGThcsse21w1aulO8aykX5M27CyXQd mGY1POf0PmgNFhpHCnYtEdDXjim59m3G4gHxRyPn0Nj7eOHZNHFVGeETdKnw5rlXDp rCz4IsOUdTy235EpZoMo88pmu2v66QVenNSHBrOmOXoeGz4T59FkekGj6XoTNlK7v+ y6NCuqG5j114iAEwU0jGIHlOuoDQlW0EDyRoZtTncI9XQwb+Adh+R+ck7m15a1Wrzc AC7kEk7O3SbwA== From: Nathan Chancellor To: Michael Ellerman Cc: Nicholas Piggin , Christophe Leroy , Nick Desaulniers , Tom Rix , Arnd Bergmann , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, patches@lists.linux.dev, Nathan Chancellor , kernel test robot Subject: [PATCH] powerpc/math_emu/efp: Include module.h Date: Wed, 31 Aug 2022 08:20:15 -0700 Message-Id: <20220831152014.3501664-1-nathan@kernel.org> X-Mailer: git-send-email 2.37.3 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,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 When building with a recent version of clang, there are a couple of errors around the call to module_init(): arch/powerpc/math-emu/math_efp.c:927:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] module_init(spe_mathemu_init); ^ int arch/powerpc/math-emu/math_efp.c:927:13: error: a parameter list without types is only allowed in a function definition module_init(spe_mathemu_init); ^ 2 errors generated. module_init() is a macro, which is not getting expanded because module.h is not included in this file. Add the include so that the macro can expand properly, clearing up the build failure. Reported-by: kernel test robot Signed-off-by: Nathan Chancellor --- No Fixes tag because it seems likely that this is a transient include issue (the code builds with GCC). The robot blamed commit e8c07082a810 ("Kbuild: move to -std=gnu11") but I think that just exposed these errors, not caused them. arch/powerpc/math-emu/math_efp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/math-emu/math_efp.c b/arch/powerpc/math-emu/math_efp.c index 39b84e7452e1..aa3bb8da1cb9 100644 --- a/arch/powerpc/math-emu/math_efp.c +++ b/arch/powerpc/math-emu/math_efp.c @@ -17,6 +17,7 @@ #include #include +#include #include #include base-commit: dcf8e5633e2e69ad60b730ab5905608b756a032f -- 2.37.3