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.
This commit is contained in:
Warner Losh 2019-11-02 02:05:09 +00:00
parent 3db35ffa2a
commit 1c028d7227

View File

@ -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))