From patchwork Sat Feb 26 21:37:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 12761471 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6A992C433EF for ; Sat, 26 Feb 2022 21:37:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229742AbiBZVhn (ORCPT ); Sat, 26 Feb 2022 16:37:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229726AbiBZVhn (ORCPT ); Sat, 26 Feb 2022 16:37:43 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 515783EB8C; Sat, 26 Feb 2022 13:37:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-ID:Content-Description:In-Reply-To:References; bh=2kClNZTivm3jKSQ6n+6qZG8dQzwRaZEt11W1hUuE1O0=; b=hZzmh5x0LH97OUL05aNA4CDznl jusc41jKszt+3ruoWVme3RMiKXkBsnPbtTxMIUIWjyPOw/e+xSPrlyiSQ5x2EzyL1vNkhID175fFp vMvr+z+hFQrxvCeyAFL5bKuMbP03WB8Kq2nuoB1lj6b62CjGu01rqwhPjPjSe9TMpRNZcIgUXT4Bv 9jWFwDul1LKqQZUll7plM7cdGeKxCamV9tXq315xQDN7CVrfWfTlJKPGFD+tOur+ltM4e2z/vd+0a 9q7Y8OzCqJS5/oYmUuXEGKtr8DCMMjhPuU0jEtne4HDIXQbOt+jk2k9fdqBtUNMFZIf7uhcfmNCL/ Bs4kY6nw==; Received: from [2601:1c0:6280:3f0::aa0b] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nO4kT-008Ybp-Vj; Sat, 26 Feb 2022 21:37:06 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Mark Brown , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, linux-pci@vger.kernel.org Subject: [PATCH -next?] x86: PCI: asm/pci_x86.h needs more #includes Date: Sat, 26 Feb 2022 13:37:03 -0800 Message-Id: <20220226213703.24041-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org uses EINVAL, __init, and raw_spinlock_t, so it should #include the appropriate files to prevent build errors. ../arch/x86/include/asm/pci_x86.h:150:10: error: ‘EINVAL’ undeclared (first use in this function) return -EINVAL; ../arch/x86/include/asm/pci_x86.h:105:8: error: unknown type name ‘raw_spinlock_t’ extern raw_spinlock_t pci_config_lock; ../arch/x86/include/asm/pci_x86.h:141:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘dmi_check_pciprobe’ extern void __init dmi_check_pciprobe(void); Signed-off-by: Randy Dunlap Cc: Mark Brown Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: Dave Hansen Cc: x86@kernel.org Cc: linux-pci@vger.kernel.org --- Without this patch, I am seeing *many* build errors in linux-next-20220225. I don't know why this showed up in linux-next-20220225 all of a sudden. arch/x86/include/asm/pci_x86.h | 3 +++ 1 file changed, 3 insertions(+) --- linux-next-20220225.orig/arch/x86/include/asm/pci_x86.h +++ linux-next-20220225/arch/x86/include/asm/pci_x86.h @@ -5,7 +5,10 @@ * (c) 1999 Martin Mares */ +#include +#include #include +#include #undef DEBUG