From 253fecaed9cbc7298078b23541f55f765788298e Mon Sep 17 00:00:00 2001 From: imp Date: Sat, 2 Nov 2019 02:05:09 +0000 Subject: [PATCH] Make valdiate_rx_req_id static inline because it uses other static inline functions. gcc complains about this, most likely due to the subtle differences between inline and static inline functions defined in headers. --- sys/dev/ena/ena.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/dev/ena/ena.h b/sys/dev/ena/ena.h index ae433a2e041a..b5a81ac7a156 100644 --- a/sys/dev/ena/ena.h +++ b/sys/dev/ena/ena.h @@ -489,9 +489,8 @@ void ena_down(struct ena_adapter *); int ena_restore_device(struct ena_adapter *); void ena_destroy_device(struct ena_adapter *, bool); int ena_refill_rx_bufs(struct ena_ring *, uint32_t); -inline int validate_rx_req_id(struct ena_ring *, uint16_t); -inline int +static inline int validate_rx_req_id(struct ena_ring *rx_ring, uint16_t req_id) { if (likely(req_id < rx_ring->ring_size))