From: Joe Perches Date: Tue, 5 May 2015 17:06:01 +0000 (-0700) Subject: arcnet: Convert arcnet_dump_skb macro to static inline X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=83df99b50f901cb7c72cf132a83f43bbaeb01362;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Michael Grzeschik --- diff --git a/include/linux/arcdevice.h b/include/linux/arcdevice.h index a678027ff6c2..1d8e36e13616 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);