diff options
author | Warner Losh <imp@FreeBSD.org> | 2019-11-02 02:05:09 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2019-11-02 02:05:09 +0000 |
commit | 1c028d7227b2ec8a9fc4128bb10b3fb94db6a86d (patch) | |
tree | 0a5ffa31adb7d315883014d6fd2a49ac0de14c96 /sys/dev/ena | |
parent | 3db35ffa2a1822ca92a7e7ca7a1cc2094a398cef (diff) | |
download | src-1c028d7227b2ec8a9fc4128bb10b3fb94db6a86d.tar.gz src-1c028d7227b2ec8a9fc4128bb10b3fb94db6a86d.zip |
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.
Notes
Notes:
svn path=/head/; revision=354242
Diffstat (limited to 'sys/dev/ena')
-rw-r--r-- | sys/dev/ena/ena.h | 3 |
1 files changed, 1 insertions, 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)) |