sparse: workaround for a bug in sparse.
authorPritesh Kothari <pritesh.kothari@cisco.com>
Fri, 28 Mar 2014 19:20:00 +0000 (12:20 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 28 Mar 2014 21:40:07 +0000 (14:40 -0700)
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@cisco.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/dpif-netdev.c

index 60e024e..ceee233 100644 (file)
@@ -1734,7 +1734,7 @@ dp_netdev_actions_free(struct dp_netdev_actions *actions)
 }
 \f
 
-inline static void
+static void
 dp_netdev_process_rxq_port(struct dp_netdev *dp,
                           struct dp_netdev_port *port,
                           struct netdev_rxq *rxq)