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>
This commit is contained in:
Tom Rini
2024-05-01 19:31:32 -06:00
parent a2955579e7
commit 3ba56d6b23
10 changed files with 1 additions and 9 deletions

View File

@@ -17,7 +17,6 @@
#define LOG_CATEGORY UCLASS_VIRTIO
#include <common.h>
#include <bootdev.h>
#include <dm.h>
#include <log.h>

View File

@@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_VIRTIO
#include <common.h>
#include <blk.h>
#include <dm.h>
#include <part.h>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -7,7 +7,6 @@
*/
#include <bouncebuf.h>
#include <common.h>
#include <dm.h>
#include <log.h>
#include <malloc.h>

View File

@@ -3,7 +3,6 @@
* Copyright (c) 2019, Linaro Limited
*/
#include <common.h>
#include <dm.h>
#include <log.h>
#include <rng.h>

View File

@@ -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>

View File

@@ -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 */