]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
virtio_features: make it self-contained
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 4 Dec 2025 17:49:34 +0000 (12:49 -0500)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 24 Dec 2025 13:02:56 +0000 (08:02 -0500)
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>
include/linux/virtio_features.h

index ea2ad8717882e095f35ff60f2d0574b58720c4fd..ce59ea91f474a72cb331c7b7b8f98688d4f2f28c 100644 (file)
@@ -3,6 +3,8 @@
 #define _LINUX_VIRTIO_FEATURES_H
 
 #include <linux/bits.h>
+#include <linux/bug.h>
+#include <linux/string.h>
 
 #define VIRTIO_FEATURES_U64S   2
 #define VIRTIO_FEATURES_BITS   (VIRTIO_FEATURES_U64S * 64)