summaryrefslogtreecommitdiffstats
path: root/include/linux/arcdevice.h
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2015-05-05 10:06:01 -0700
committerMichael Grzeschik <m.grzeschik@pengutronix.de>2015-09-23 08:44:25 +0200
commit83df99b50f901cb7c72cf132a83f43bbaeb01362 (patch)
tree51e5c57a1285ee3c966a33769343d0f3f0e11c08 /include/linux/arcdevice.h
parentd8101e7bec352b7b6a154ec2e428d01bddb7e5b4 (diff)
downloadop-kernel-dev-83df99b50f901cb7c72cf132a83f43bbaeb01362.zip
op-kernel-dev-83df99b50f901cb7c72cf132a83f43bbaeb01362.tar.gz
arcnet: Convert arcnet_dump_skb macro to static inline
Make sure the arguments are tested appropriately when not using this function. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Diffstat (limited to 'include/linux/arcdevice.h')
-rw-r--r--include/linux/arcdevice.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/arcdevice.h b/include/linux/arcdevice.h
index a678027..1d8e36e 100644
--- a/include/linux/arcdevice.h
+++ b/include/linux/arcdevice.h
@@ -326,7 +326,10 @@ struct arcnet_local {
#if ARCNET_DEBUG_MAX & D_SKB
void arcnet_dump_skb(struct net_device *dev, struct sk_buff *skb, char *desc);
#else
-#define arcnet_dump_skb(dev, skb, desc) ;
+static inline
+void arcnet_dump_skb(struct net_device *dev, struct sk_buff *skb, char *desc)
+{
+}
#endif
void arcnet_unregister_proto(struct ArcProto *proto);
OpenPOWER on IntegriCloud