diff options
author | Ingo Molnar <mingo@kernel.org> | 2021-08-06 12:11:06 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2022-03-15 12:57:31 +0100 |
commit | 1dd9449232460c5bff6e879385e5bac60c6a4e08 (patch) | |
tree | 2b824e0e62ed8aaf93b6cb09e9af620f9b419201 | |
parent | b43c630eb626abdb540ca4625c8e882c7cc3c341 (diff) | |
download | tip-1dd9449232460c5bff6e879385e5bac60c6a4e08.tar.gz |
headers/deps: pci: Optimize <linux/pci.h> dependencies, remove <linux/io.h>
--------------------------------------------------------------------
| Combined, preprocessed C code size of header, without line markers,
| with comments stripped:
-------------------------
before: | #include <linux/pci.h> | LOC: 10,158 | headers: 299
after: | #include <linux/pci.h> | LOC: 10,120 | headers: 298
Fix up dangling dependencies.
Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r-- | include/linux/pci.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index e84d83fa2d56ba..b400e6e90400ca 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -29,7 +29,7 @@ #include <linux/dev_printk.h> #include <linux/mod_devicetable.h> -#include <linux/types.h> +#include <linux/log2.h> #include <linux/init.h> #include <linux/ioport.h> #include <linux/list.h> @@ -39,7 +39,6 @@ #include <linux/device_types.h> #include <linux/device/driver.h> #include <linux/interrupt_types.h> -#include <linux/io.h> #include <linux/resource_ext.h> #include <uapi/linux/pci.h> @@ -307,6 +306,8 @@ enum pci_bus_speed { PCI_SPEED_UNKNOWN = 0xff, }; +struct pci_dev; + enum pci_bus_speed pcie_get_speed_cap(struct pci_dev *dev); enum pcie_link_width pcie_get_width_cap(struct pci_dev *dev); |