[ovs-dev] [PATCH 2/2] sparse: workaround for a bug in sparse.

Pritesh Kothari pritesh.kothari at cisco.com
Fri Mar 28 19:20:00 UTC 2014


sparse emits the following warning:
lib/dpif-netdev.c:1755:15: warning: Initializer entry defined twice
lib/dpif-netdev.c:1755:15:   also defined here
due to a bug in sparse which doesn't like inlined functions which
expands a #define within it. This commit removes inline to make
sparse happy.

Signed-off-by: Pritesh Kothari <pritesh.kothari at cisco.com>
---
 lib/dpif-netdev.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c
index 8687a47..c5df3b5 100644
--- a/lib/dpif-netdev.c
+++ b/lib/dpif-netdev.c
@@ -1734,7 +1734,7 @@ dp_netdev_actions_free(struct dp_netdev_actions *actions)
 }
 
 
-inline static void
+static void
 dp_netdev_process_rxq_port(struct dp_netdev *dp,
                           struct dp_netdev_port *port,
                           struct netdev_rxq *rxq)
-- 
1.7.9.5




More information about the dev mailing list