From c92fb06444ccb3624f7cd99ada7e2302d083091f Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Sun, 13 Oct 2024 07:22:40 +0200 Subject: [PATCH] pci.h: don't include dma-mapping.h Ever since the pci_ wrappers for the dma-mapping helpers are gone, there is no need to pull dma-mapping.h into pci.h. Signed-off-by: Christoph Hellwig --- drivers/char/agp/intel-gtt.c | 2 +- drivers/crypto/intel/qat/qat_4xxx/adf_drv.c | 1 + drivers/crypto/intel/qat/qat_common/adf_transport.c | 1 + drivers/dma/dw/pci.c | 1 + drivers/dma/idxd/device.c | 1 + drivers/misc/hpilo.c | 1 + drivers/misc/tifm_core.c | 1 + drivers/misc/vmw_vmci/vmci_guest.c | 1 + drivers/nvme/host/pci.c | 1 + drivers/pci/controller/vmd.c | 1 + drivers/pci/probe.c | 1 + drivers/platform/x86/mlx-platform.c | 1 + drivers/usb/host/ehci-pci.c | 1 + drivers/video/fbdev/hyperv_fb.c | 1 + drivers/virtio/virtio_pci_legacy_dev.c | 1 + drivers/virtio/virtio_pci_modern_dev.c | 1 + include/linux/pci.h | 2 -- 17 files changed, 16 insertions(+), 3 deletions(-) diff --git a/drivers/char/agp/intel-gtt.c b/drivers/char/agp/intel-gtt.c index ef30445527a2..f73c804b5da1 100644 --- a/drivers/char/agp/intel-gtt.c +++ b/drivers/char/agp/intel-gtt.c @@ -14,7 +14,7 @@ * * /fairy-tale-mode off */ - +#include #include #include #include diff --git a/drivers/crypto/intel/qat/qat_4xxx/adf_drv.c b/drivers/crypto/intel/qat/qat_4xxx/adf_drv.c index 659905e45950..8cf0a0b7f14e 100644 --- a/drivers/crypto/intel/qat/qat_4xxx/adf_drv.c +++ b/drivers/crypto/intel/qat/qat_4xxx/adf_drv.c @@ -1,6 +1,7 @@ // SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0-only) /* Copyright(c) 2020 Intel Corporation */ #include +#include #include #include diff --git a/drivers/crypto/intel/qat/qat_common/adf_transport.c b/drivers/crypto/intel/qat/qat_common/adf_transport.c index 1efdf46490f1..2aee4c22fb8f 100644 --- a/drivers/crypto/intel/qat/qat_common/adf_transport.c +++ b/drivers/crypto/intel/qat/qat_common/adf_transport.c @@ -1,6 +1,7 @@ // SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0-only) /* Copyright(c) 2014 - 2020 Intel Corporation */ #include +#include #include #include "adf_accel_devices.h" #include "adf_transport_internal.h" diff --git a/drivers/dma/dw/pci.c b/drivers/dma/dw/pci.c index ad2d4d012cf7..eb7b1eecbda5 100644 --- a/drivers/dma/dw/pci.c +++ b/drivers/dma/dw/pci.c @@ -6,6 +6,7 @@ * Author: Andy Shevchenko */ +#include #include #include #include diff --git a/drivers/dma/idxd/device.c b/drivers/dma/idxd/device.c index c41ef195eeb9..3f6fe7fd7790 100644 --- a/drivers/dma/idxd/device.c +++ b/drivers/dma/idxd/device.c @@ -1,5 +1,6 @@ // SPDX-License-Identifier: GPL-2.0 /* Copyright(c) 2019 Intel Corporation. All rights rsvd. */ +#include #include #include #include diff --git a/drivers/misc/hpilo.c b/drivers/misc/hpilo.c index 04bd34c8c506..91b2c76cc017 100644 --- a/drivers/misc/hpilo.c +++ b/drivers/misc/hpilo.c @@ -5,6 +5,7 @@ * Copyright (C) 2008 Hewlett-Packard Development Company, L.P. * David Altobelli */ +#include #include #include #include diff --git a/drivers/misc/tifm_core.c b/drivers/misc/tifm_core.c index 12355d34e193..661428a20df0 100644 --- a/drivers/misc/tifm_core.c +++ b/drivers/misc/tifm_core.c @@ -5,6 +5,7 @@ * Copyright (C) 2006 Alex Dubov */ +#include #include #include #include diff --git a/drivers/misc/vmw_vmci/vmci_guest.c b/drivers/misc/vmw_vmci/vmci_guest.c index 476af89e751b..795c71d42292 100644 --- a/drivers/misc/vmw_vmci/vmci_guest.c +++ b/drivers/misc/vmw_vmci/vmci_guest.c @@ -5,6 +5,7 @@ * Copyright (C) 2012 VMware, Inc. All rights reserved. */ +#include #include #include #include diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c index 4b9fda0b1d9a..1f00c54cb800 100644 --- a/drivers/nvme/host/pci.c +++ b/drivers/nvme/host/pci.c @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/pci/controller/vmd.c b/drivers/pci/controller/vmd.c index 264a180403a0..c455e888d0b2 100644 --- a/drivers/pci/controller/vmd.c +++ b/drivers/pci/controller/vmd.c @@ -5,6 +5,7 @@ */ #include +#include #include #include #include diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index 4f68414c3086..77708141853a 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c @@ -3,6 +3,7 @@ * PCI detection and setup code */ +#include #include #include #include diff --git a/drivers/platform/x86/mlx-platform.c b/drivers/platform/x86/mlx-platform.c index 9d70146fd742..0ec373a61a91 100644 --- a/drivers/platform/x86/mlx-platform.c +++ b/drivers/platform/x86/mlx-platform.c @@ -7,6 +7,7 @@ */ #include +#include #include #include #include diff --git a/drivers/usb/host/ehci-pci.c b/drivers/usb/host/ehci-pci.c index 889dc4426271..d8f120c9fe64 100644 --- a/drivers/usb/host/ehci-pci.c +++ b/drivers/usb/host/ehci-pci.c @@ -5,6 +5,7 @@ * Copyright (c) 2000-2004 by David Brownell */ +#include #include #include #include diff --git a/drivers/video/fbdev/hyperv_fb.c b/drivers/video/fbdev/hyperv_fb.c index 7fdb5edd7e2e..c15fc364ab29 100644 --- a/drivers/video/fbdev/hyperv_fb.c +++ b/drivers/video/fbdev/hyperv_fb.c @@ -46,6 +46,7 @@ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include +#include #include #include #include diff --git a/drivers/virtio/virtio_pci_legacy_dev.c b/drivers/virtio/virtio_pci_legacy_dev.c index 677d1f68bc9b..f1beb0fc3857 100644 --- a/drivers/virtio/virtio_pci_legacy_dev.c +++ b/drivers/virtio/virtio_pci_legacy_dev.c @@ -1,5 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-or-later +#include #include "linux/virtio_pci.h" #include #include diff --git a/drivers/virtio/virtio_pci_modern_dev.c b/drivers/virtio/virtio_pci_modern_dev.c index 0d3dbfaf4b23..acffadda4c1e 100644 --- a/drivers/virtio/virtio_pci_modern_dev.c +++ b/drivers/virtio/virtio_pci_modern_dev.c @@ -1,5 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-or-later +#include #include #include #include diff --git a/include/linux/pci.h b/include/linux/pci.h index 573b4c4c2be6..c22918d7c430 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -2673,8 +2673,6 @@ static inline bool pci_is_thunderbolt_attached(struct pci_dev *pdev) void pci_uevent_ers(struct pci_dev *pdev, enum pci_ers_result err_type); #endif -#include - #define pci_printk(level, pdev, fmt, arg...) \ dev_printk(level, &(pdev)->dev, fmt, ##arg) -- 2.51.0