diff options
author | Tom Rini <trini@konsulko.com> | 2024-05-01 19:31:32 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-05-07 08:00:57 -0600 |
commit | 3ba56d6b232f7dcbf00552af48355f0dc2d26994 (patch) | |
tree | 71b51e130b84164e8f014ec594a27cfe096245d4 | |
parent | a2955579e737acf24ad76da4f9d42066ac9d135b (diff) | |
download | u-boot-3ba56d6b232f7dcbf00552af48355f0dc2d26994.zip u-boot-3ba56d6b232f7dcbf00552af48355f0dc2d26994.tar.gz u-boot-3ba56d6b232f7dcbf00552af48355f0dc2d26994.tar.bz2 |
virtio: Remove <common.h> and add needed includes
Remove <common.h> from this driver directory and when needed
add missing include files directly.
Signed-off-by: Tom Rini <trini@konsulko.com>
-rw-r--r-- | drivers/virtio/virtio-uclass.c | 1 | ||||
-rw-r--r-- | drivers/virtio/virtio_blk.c | 1 | ||||
-rw-r--r-- | drivers/virtio/virtio_mmio.c | 1 | ||||
-rw-r--r-- | drivers/virtio/virtio_net.c | 1 | ||||
-rw-r--r-- | drivers/virtio/virtio_pci_legacy.c | 1 | ||||
-rw-r--r-- | drivers/virtio/virtio_pci_modern.c | 1 | ||||
-rw-r--r-- | drivers/virtio/virtio_ring.c | 1 | ||||
-rw-r--r-- | drivers/virtio/virtio_rng.c | 1 | ||||
-rw-r--r-- | drivers/virtio/virtio_sandbox.c | 1 | ||||
-rw-r--r-- | include/virtio.h | 1 |
10 files changed, 1 insertions, 9 deletions
diff --git a/drivers/virtio/virtio-uclass.c b/drivers/virtio/virtio-uclass.c index c542016..1dbc1a5 100644 --- a/drivers/virtio/virtio-uclass.c +++ b/drivers/virtio/virtio-uclass.c @@ -17,7 +17,6 @@ #define LOG_CATEGORY UCLASS_VIRTIO -#include <common.h> #include <bootdev.h> #include <dm.h> #include <log.h> diff --git a/drivers/virtio/virtio_blk.c b/drivers/virtio/virtio_blk.c index 9581058..3404f61 100644 --- a/drivers/virtio/virtio_blk.c +++ b/drivers/virtio/virtio_blk.c @@ -6,7 +6,6 @@ #define LOG_CATEGORY UCLASS_VIRTIO -#include <common.h> #include <blk.h> #include <dm.h> #include <part.h> diff --git a/drivers/virtio/virtio_mmio.c b/drivers/virtio/virtio_mmio.c index 78c15c8..1cd737a 100644 --- a/drivers/virtio/virtio_mmio.c +++ b/drivers/virtio/virtio_mmio.c @@ -7,7 +7,6 @@ * Ported from Linux drivers/virtio/virtio_mmio.c */ -#include <common.h> #include <dm.h> #include <log.h> #include <virtio_types.h> diff --git a/drivers/virtio/virtio_net.c b/drivers/virtio/virtio_net.c index 1794f73..0e5367a 100644 --- a/drivers/virtio/virtio_net.c +++ b/drivers/virtio/virtio_net.c @@ -4,7 +4,6 @@ * Copyright (C) 2018, Bin Meng <bmeng.cn@gmail.com> */ -#include <common.h> #include <dm.h> #include <net.h> #include <virtio_types.h> diff --git a/drivers/virtio/virtio_pci_legacy.c b/drivers/virtio/virtio_pci_legacy.c index aa89604..15f8c6e 100644 --- a/drivers/virtio/virtio_pci_legacy.c +++ b/drivers/virtio/virtio_pci_legacy.c @@ -6,7 +6,6 @@ * Ported from Linux drivers/virtio/virtio_pci*.c */ -#include <common.h> #include <dm.h> #include <log.h> #include <virtio_types.h> diff --git a/drivers/virtio/virtio_pci_modern.c b/drivers/virtio/virtio_pci_modern.c index 3cdc2d2..5850e0c 100644 --- a/drivers/virtio/virtio_pci_modern.c +++ b/drivers/virtio/virtio_pci_modern.c @@ -6,7 +6,6 @@ * Ported from Linux drivers/virtio/virtio_pci*.c */ -#include <common.h> #include <dm.h> #include <log.h> #include <virtio_types.h> diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c index c9adcce..306fa5b 100644 --- a/drivers/virtio/virtio_ring.c +++ b/drivers/virtio/virtio_ring.c @@ -7,7 +7,6 @@ */ #include <bouncebuf.h> -#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/virtio/virtio_rng.c b/drivers/virtio/virtio_rng.c index 786359a..90a371a 100644 --- a/drivers/virtio/virtio_rng.c +++ b/drivers/virtio/virtio_rng.c @@ -3,7 +3,6 @@ * Copyright (c) 2019, Linaro Limited */ -#include <common.h> #include <dm.h> #include <log.h> #include <rng.h> diff --git a/drivers/virtio/virtio_sandbox.c b/drivers/virtio/virtio_sandbox.c index b34f1d6..0f1ebef 100644 --- a/drivers/virtio/virtio_sandbox.c +++ b/drivers/virtio/virtio_sandbox.c @@ -5,7 +5,6 @@ * VirtIO Sandbox transport driver, for testing purpose only */ -#include <common.h> #include <dm.h> #include <virtio_types.h> #include <virtio.h> diff --git a/include/virtio.h b/include/virtio.h index 062a246..1ab0ec5 100644 --- a/include/virtio.h +++ b/include/virtio.h @@ -23,6 +23,7 @@ #include <virtio_types.h> #include <linux/bitops.h> #include <linux/bug.h> +#include <linux/typecheck.h> #define VIRTIO_ID_NET 1 /* virtio net */ #define VIRTIO_ID_BLOCK 2 /* virtio block */ #define VIRTIO_ID_RNG 4 /* virtio rng */ |