diff options
author | Elyes Haouas <ehaouas@noos.fr> | 2022-10-27 12:25:12 +0200 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-11-03 13:05:17 +0000 |
commit | 35c3ae3bf4a43a36028fbd9e34ea4cb758029bf1 (patch) | |
tree | 4b706d4931692f6cde4d16339d7de1b0bf5f1e55 /src/include/device | |
parent | 109bd3b796bae2f8333d832e9f0cc778c6663297 (diff) |
treewide: Add 'IWYU pragma: export' comment
This pragma says to IWYU (Include What You Use) that the current file
is supposed to provide commented headers.
Change-Id: I482c645f6b5f955e532ad94def1b2f74f15ca908
Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/68332
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Werner Zeh <werner.zeh@siemens.com>
Diffstat (limited to 'src/include/device')
-rw-r--r-- | src/include/device/mmio.h | 2 | ||||
-rw-r--r-- | src/include/device/pci.h | 11 | ||||
-rw-r--r-- | src/include/device/pci_ops.h | 2 | ||||
-rw-r--r-- | src/include/device/pnp.h | 4 |
4 files changed, 10 insertions, 9 deletions
diff --git a/src/include/device/mmio.h b/src/include/device/mmio.h index b5b79ee5e6..2b9949e05a 100644 --- a/src/include/device/mmio.h +++ b/src/include/device/mmio.h @@ -3,7 +3,7 @@ #ifndef __DEVICE_MMIO_H__ #define __DEVICE_MMIO_H__ -#include <arch/mmio.h> +#include <arch/mmio.h> /* IWYU pragma: export */ #include <commonlib/helpers.h> #include <endian.h> #include <types.h> diff --git a/src/include/device/pci.h b/src/include/device/pci.h index f28f319d8c..88b955570a 100644 --- a/src/include/device/pci.h +++ b/src/include/device/pci.h @@ -19,14 +19,15 @@ #if CONFIG(PCI) -#include <stdint.h> -#include <stddef.h> -#include <device/pci_def.h> -#include <device/resource.h> +/* When <device/pci.h> is needed, it supposed to provide <device/pci_{def,type}.h> */ #include <device/device.h> +#include <device/pci_def.h> /* IWYU pragma: export */ #include <device/pci_ops.h> #include <device/pci_rom.h> -#include <device/pci_type.h> +#include <device/pci_type.h> /* IWYU pragma: export */ +#include <device/resource.h> +#include <stddef.h> +#include <stdint.h> /* Common pci operations without a standard interface */ struct pci_operations { diff --git a/src/include/device/pci_ops.h b/src/include/device/pci_ops.h index a1678255c4..b5d4e238aa 100644 --- a/src/include/device/pci_ops.h +++ b/src/include/device/pci_ops.h @@ -6,7 +6,7 @@ #include <stdint.h> #include <device/device.h> #include <device/pci_type.h> -#include <arch/pci_ops.h> +#include <arch/pci_ops.h> /* IWYU pragma: export */ void __noreturn pcidev_die(void); diff --git a/src/include/device/pnp.h b/src/include/device/pnp.h index e2a6dc2395..ac23a49501 100644 --- a/src/include/device/pnp.h +++ b/src/include/device/pnp.h @@ -6,8 +6,8 @@ #include <stdint.h> #include <device/device.h> /* When <device/pnp.h> is needed, it supposed to provide <device/pnp_{def,type}.h> */ -#include <device/pnp_def.h> -#include <device/pnp_type.h> +#include <device/pnp_def.h> /* IWYU pragma: export */ +#include <device/pnp_type.h> /* IWYU pragma: export */ #include <arch/io.h> #if !ENV_PNP_SIMPLE_DEVICE |