Skip to content

Commit e88dfb9

Browse files
committed
virtio_features: make it self-contained
virtio_features.h uses WARN_ON_ONCE and memset so it must include linux/bug.h and linux/string.h Message-ID: <579986aa9b8d023844990d2a0e267382f8ad85d5.1764873799.git.mst@redhat.com> Acked-by: Jason Wang <jasowang@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
1 parent cec9c5e commit e88dfb9

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

include/linux/virtio_features.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
#define _LINUX_VIRTIO_FEATURES_H
44

55
#include <linux/bits.h>
6+
#include <linux/bug.h>
7+
#include <linux/string.h>
68

79
#define VIRTIO_FEATURES_U64S 2
810
#define VIRTIO_FEATURES_BITS (VIRTIO_FEATURES_U64S * 64)

0 commit comments

Comments
 (0)