Supplement define guards to prevent multiple inclusion. Signed-off-by: Weiguo Li <liw...@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(+)
diff --git a/drivers/net/virtio/virtio_rxtx_packed_avx.h b/drivers/net/virtio/virtio_rxtx_packed_avx.h index 584ac72f95..7ac21763dd 100644 --- a/drivers/net/virtio/virtio_rxtx_packed_avx.h +++ b/drivers/net/virtio/virtio_rxtx_packed_avx.h @@ -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 */ diff --git a/drivers/net/virtio/virtio_rxtx_packed_neon.h b/drivers/net/virtio/virtio_rxtx_packed_neon.h index c222ebf00c..116945efe8 100644 --- a/drivers/net/virtio/virtio_rxtx_packed_neon.h +++ b/drivers/net/virtio/virtio_rxtx_packed_neon.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 */ -- 2.25.1