[09/16] net/virtio: add define guards to avoid multi-inclusion
Checks
Commit Message
Supplement define guards to prevent multiple inclusion.
Signed-off-by: Weiguo Li <liwg06@foxmail.com>
---
drivers/net/virtio/virtio_rxtx_packed_avx.h | 5 +++++
drivers/net/virtio/virtio_rxtx_packed_neon.h | 5 +++++
2 files changed, 10 insertions(+)
@@ -2,6 +2,9 @@
* Copyright(c) 2010-2020 Intel Corporation
*/
+#ifndef _VIRTIO_RXTX_PACKED_AVX_H_
+#define _VIRTIO_RXTX_PACKED_AVX_H_
+
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
@@ -237,3 +240,5 @@ virtqueue_dequeue_batch_packed_vec(struct virtnet_rx *rxvq,
return 0;
}
+
+#endif /* _VIRTIO_RXTX_PACKED_AVX_H_ */
@@ -2,6 +2,9 @@
* Copyright(c) 2020 Arm Corporation
*/
+#ifndef _VIRTIO_RXTX_PACKED_NEON_H_
+#define _VIRTIO_RXTX_PACKED_NEON_H_
+
#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
@@ -291,3 +294,5 @@ virtqueue_dequeue_batch_packed_vec(struct virtnet_rx *rxvq,
return 0;
}
+
+#endif /* _VIRTIO_RXTX_PACKED_NEON_H_ */