Skip to content

Commit

Permalink
virtio: Remove <common.h> and add needed includes
Browse files Browse the repository at this point in the history
Remove <common.h> from this driver directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
  • Loading branch information
trini committed May 7, 2024
1 parent a295557 commit 3ba56d6
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 9 deletions.
1 change: 0 additions & 1 deletion drivers/virtio/virtio-uclass.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

#define LOG_CATEGORY UCLASS_VIRTIO

#include <common.h>
#include <bootdev.h>
#include <dm.h>
#include <log.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/virtio/virtio_blk.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

#define LOG_CATEGORY UCLASS_VIRTIO

#include <common.h>
#include <blk.h>
#include <dm.h>
#include <part.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/virtio/virtio_mmio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 0 additions & 1 deletion drivers/virtio/virtio_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 0 additions & 1 deletion drivers/virtio/virtio_pci_legacy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 0 additions & 1 deletion drivers/virtio/virtio_pci_modern.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 0 additions & 1 deletion drivers/virtio/virtio_ring.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
*/

#include <bouncebuf.h>
#include <common.h>
#include <dm.h>
#include <log.h>
#include <malloc.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/virtio/virtio_rng.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* Copyright (c) 2019, Linaro Limited
*/

#include <common.h>
#include <dm.h>
#include <log.h>
#include <rng.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/virtio/virtio_sandbox.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 1 addition & 0 deletions include/virtio.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 3ba56d6

Please sign in to comment.