Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp879863pxb; Wed, 1 Sep 2021 11:58:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmcPH0cbGDwQ4/2OGxnFLXJamBn8VPXzK6BvDK2pdnoqFabgDLPfVegKRJ52uzZ3h1dAZn X-Received: by 2002:aa7:c60e:: with SMTP id h14mr1074217edq.43.1630522699304; Wed, 01 Sep 2021 11:58:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630522699; cv=none; d=google.com; s=arc-20160816; b=YMQV6HA30FiIRY6lgi5iN+bGgrm791d2xNjeiGH6xsz49U5NdI82b9pPbuvTOqwVe0 iVAkyW7bUBFW8NO1MeRmFFsfjXy+CKa4r+/QmV2/h+x39KsOrilFvQFqccIiwAXfYGWM Oa6FtcYI5MHBH9iG1rHK7XBkzAmv8ox+upjMwXWPwhf25R4wX3KQJQDaR/gy8kDnQ6/0 D5LzF71JI+aKVoL3up+gj44sJUPArc6v/yYXKhTO6S12ZPNWwqEuz1LTVRoVWcbXcH2O zq7sHl5KSMrRfA6cqzLHhrfdbtRjCQR9NxC9oKf4KhmGxqv7xl+pPGbpG2wTcBKdefJe vbeA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=fuM4XY6DYnYlR2wgAACj25tqMrIjbKyuTbCHSwbm5BI=; b=ZugYslc75c9at1uD0aj9hBEQqyG0AE8ihl023QZ2Ku3PSbHpj0oEXdrXO/U+wvpWca NSFZ4lzs6EQgE75XnUwQcK1OBV0ojRy66La+kOB3R2Znvujj4/m7kxwV+7RHii9fRUFY Vh9Z7Cn72AgZM0a6pbC2EmgDugDXHC7lApVwq7SZbFHblTf2MI7dvTdVjQqfV78jUOma C3da9YJBZp4yj8vtReVfqAY4c6W0TjRIms+KoVRfKsznV/cdIaSvETGTA4znhhoR6/LG vGHyKNV3Y4A4QbeKDvs8dha5lntUNMT6pUh3Ey4SPaUBbrDlzeF8/eV3ncqvy/WKjXxE Jw2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ulnOWgGt; 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 dt5si514764ejc.247.2021.09.01.11.57.55; Wed, 01 Sep 2021 11:58:19 -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=ulnOWgGt; 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 S241784AbhIAQKD (ORCPT + 99 others); Wed, 1 Sep 2021 12:10:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:32856 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234050AbhIAQKC (ORCPT ); Wed, 1 Sep 2021 12:10:02 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id AE74961059; Wed, 1 Sep 2021 16:09:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1630512546; bh=Va1LqmOC5Xdls9LpZUrOpdFVjaB5y3DUbafpY3HgesY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ulnOWgGtxoU31zStD+punJrXNcxrkmpqJ8wtvKKFAVmONqi+4eiLALlKOCCaVn+OW rgO5E2y1EJDUvW0ikfXyt8gfhk4f1S+uvtCFO1OHBKNeuMpKFbZlu/Oefzh3DbCLm8 6mjvlRhiolz6VbUfux7BO4Eu6EspUmcYVXklXuPm91VGU3kMBkMPu/WIVPZ47jp8Ln WTHg48/ebyQnv26C4AeaRHGmSWVS6/4m/JOp+hwzwb7sXnbcI5M+uirHEJvHWAfgeP HKLfCJq1kpoCzDdcKMNOJDzbTC45t6g+SNvP1O8yd8ysvRXDoa6XsPQHvjFUxGeYlq jlgyqwH7IXxUA== From: Nathan Chancellor To: Linus Torvalds Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" , linux-kernel@vger.kernel.org, Maurizio Lombardi , Mike Rapoport , Konrad Rzeszutek Wilk , Christoph Hellwig , Nathan Chancellor , Matthieu Baerts Subject: [PATCH v2] x86/setup: Explicitly include acpi.h Date: Wed, 1 Sep 2021 09:07:01 -0700 Message-Id: <20210901160700.2941506-1-nathan@kernel.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210901021510.1561219-1-nathan@kernel.org> References: <20210901021510.1561219-1-nathan@kernel.org> 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") x86_64_defconfig shows 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 this configuration so the removal of that header means these functions have no definition or declaration. Add acpi.h explicitly so there is no more error. Tested-by: Matthieu Baerts Signed-off-by: Nathan Chancellor --- Linus, would you mind taking this directly? Boris indicated here he was okay with that: https://lore.kernel.org/r/YS8stOCBCdfZ+J0Y@zn.tnic/ v1 -> v2: * "certain configurations" -> "x86_64_defconfig", be definitive. * Add Matthieu's tested-by. 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