Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Nov 2019 02:05:10 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r354242 - head/sys/dev/ena
Message-ID:  <201911020205.xA225AAZ016329@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Sat Nov  2 02:05:09 2019
New Revision: 354242
URL: https://svnweb.freebsd.org/changeset/base/354242

Log:
  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.

Modified:
  head/sys/dev/ena/ena.h

Modified: head/sys/dev/ena/ena.h
==============================================================================
--- head/sys/dev/ena/ena.h	Fri Nov  1 22:49:44 2019	(r354241)
+++ head/sys/dev/ena/ena.h	Sat Nov  2 02:05:09 2019	(r354242)
@@ -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))



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201911020205.xA225AAZ016329>