Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp231136pxb; Tue, 31 Aug 2021 20:05:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJys7BEpKxczdUkp+Qq8szM2uJ52hybaOXea2fOVTt5R9+TIjwmCke+E6fDeeM7K54z/WLiC X-Received: by 2002:a02:90cb:: with SMTP id c11mr5909576jag.53.1630465500013; Tue, 31 Aug 2021 20:05:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630465500; cv=none; d=google.com; s=arc-20160816; b=Q79EsUSU7hmyDcLkeeP7N0hJYgeSFSSf52NO9wHB/FLYdgYRIsyJcEprOoHcPTHoLK oxwLU9Tmb2IeJ3ghphdBw40j1aYda/Soh2bQXgpa6b1w4LhyWrnDdEGP3yaEkzWDt9G9 CitjPnHRmY6ugh5dtk+c6tI7jdnaPBwcVw8D9CMaXyGvJm9w29o+8/FfQzfWIfCCUyGc JF4Ivno71JooxtdbjHT4T8xEwnY1tIEZuPSH5V0mB89IyNvOMY7Jso1M1iKOpKgqfyJX vd+Xb/xpaOQs2tWZe799DOrBOfjYc6KiZ/AT3TZ0vcpmChD+qFZjBI6HMtQnccXqPgC8 tg6w== 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=rqy0PxKHHKxYyoC2Pt8wreb6GhBeZodtNkMwSaneWok=; b=T+5GkYIj8lHQ4Bg86JRy7v/doGdUieR8+imFjQYCn+mATrsXZ3iBliuJ8BBm6E1j+4 YQR9bCoxZUx51W2DID8vuCphYCfI8V1YphtcayRCYZKrM7Hxogb7z/DJf4gyCqWnJGjX mc24wLdC3jHXinfxiUPNoBkVyx1LHQumF8aMe+EtWlK5oaX0i+jXMvnWltwBJ7iJRWH6 I0T37XFro9qhc4myMs6LlMnhU9xesR236k/2rv0KdXYFCPnhfQuAIYjZJ5PlDiQkEpCx O0qcfEj5BVtcIqzS8WLjsEuznIt9E8R3J5hFdzMZGucRyDfZ3eBlk/fpbvO70pJ5uqr/ aNpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Gmn5yiKn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j2si19498799ilr.113.2021.08.31.20.04.47; Tue, 31 Aug 2021 20:05:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Gmn5yiKn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S241078AbhIACRd (ORCPT + 99 others); Tue, 31 Aug 2021 22:17:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:59670 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238102AbhIACRd (ORCPT ); Tue, 31 Aug 2021 22:17:33 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3C283600D4; Wed, 1 Sep 2021 02:16:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1630462597; bh=VzoHYT5ynay43A3nf9TYYGLysTHVJLI9WO7AGzL+NNA=; h=From:To:Cc:Subject:Date:From; b=Gmn5yiKnQkacA7aIIXRZJmzMhbdbSKRIOaKmBlrpy3cG2EcpcsU2HsFUfjpLA1v/n x1SvAblgjGAyNvpdtNfr2Y7AjIYROLBQV4x1XIlJdSo9LV2AZiwsfYb72Sfz9gMabA kz2KPYFR7BwpcaXlImtm48qzpWHkReGFLCjINHdAcQ0bBr72wiUXDov8R95pCuywPb vAo07qFRD/SNgyeifv8uDQa5DGHp5gQiwLRnk87LsMHjkcaqR9Elg0uGo9qzfqjJ9b t87TbLRlNU+OGHnJqAGT8Oy8AlVnQ3dX4DhfQG9xnxQeALQv6DOZJqfeGURohbC657 FTk726HEgMEqA== From: Nathan Chancellor To: Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org Cc: "H. Peter Anvin" , linux-kernel@vger.kernel.org, Maurizio Lombardi , Mike Rapoport , Konrad Rzeszutek Wilk , Nathan Chancellor Subject: [PATCH] x86/setup: Explicitly include acpi.h Date: Tue, 31 Aug 2021 19:15:11 -0700 Message-Id: <20210901021510.1561219-1-nathan@kernel.org> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Patchwork-Bot: notify Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org After commit 342f43af70db ("iscsi_ibft: fix crash due to KASLR physical memory remapping"), certain configurations show the following errors: arch/x86/kernel/setup.c: In function ‘setup_arch’: arch/x86/kernel/setup.c:916:13: error: implicit declaration of function ‘acpi_mps_check’ [-Werror=implicit-function-declaration] 916 | if (acpi_mps_check()) { | ^~~~~~~~~~~~~~ arch/x86/kernel/setup.c:1110:9: error: implicit declaration of function ‘acpi_table_upgrade’ [-Werror=implicit-function-declaration] 1110 | acpi_table_upgrade(); | ^~~~~~~~~~~~~~~~~~ arch/x86/kernel/setup.c:1112:9: error: implicit declaration of function ‘acpi_boot_table_init’ [-Werror=implicit-function-declaration] 1112 | acpi_boot_table_init(); | ^~~~~~~~~~~~~~~~~~~~ arch/x86/kernel/setup.c:1120:9: error: implicit declaration of function ‘early_acpi_boot_init’; did you mean ‘early_cpu_init’? [-Werror=implicit-function-declaration] 1120 | early_acpi_boot_init(); | ^~~~~~~~~~~~~~~~~~~~ | early_cpu_init arch/x86/kernel/setup.c:1162:9: error: implicit declaration of function ‘acpi_boot_init’ [-Werror=implicit-function-declaration] 1162 | acpi_boot_init(); | ^~~~~~~~~~~~~~ cc1: some warnings being treated as errors acpi.h was being implicitly included from iscsi_ibft.h in these configurations so the removal of that means these functions have no definition or declaration. Add acpi.h explicitly so there is no more error. Signed-off-by: Nathan Chancellor --- * No fixes tag as I doubt the mentioned commit is the root cause. * The configuration was WSL2's, I did not drill down exactly which set of configs triggers this but it is pretty obvious what is going on here. arch/x86/kernel/setup.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c index 63b20536c8d2..79f164141116 100644 --- a/arch/x86/kernel/setup.c +++ b/arch/x86/kernel/setup.c @@ -5,6 +5,7 @@ * This file contains the setup_arch() code, which handles the architecture-dependent * parts of early kernel initialization. */ +#include #include #include #include base-commit: 9e9fb7655ed585da8f468e29221f0ba194a5f613 -- 2.33.0