From 8a826102e0d9ea655d46baa6785e181906dbf7d3 Mon Sep 17 00:00:00 2001 From: Tomasz Bursztyka Date: Fri, 19 Feb 2016 09:48:35 +0100 Subject: [PATCH] net: ip: Fix a build issue when CONFIG_NETWORKING_WITH_LOGGING=n Fixing this issue: net/ip/l2_buf.c:81:31: note: in expansion of macro 'NULL' #define inc_free_l2_bufs_func NULL ^ net/ip/l2_buf.c:88:2: note: in expansion of macro 'inc_free_l2_bufs_func' inc_free_l2_bufs_func(buf); ^ Change-Id: Ie58f23af479ec4f2dd625b1f0f36720bbe54f928 Signed-off-by: Tomasz Bursztyka --- net/ip/l2_buf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ip/l2_buf.c b/net/ip/l2_buf.c index ced16a0f8c5..4201e5c2972 100644 --- a/net/ip/l2_buf.c +++ b/net/ip/l2_buf.c @@ -78,7 +78,7 @@ static inline int get_free_l2_bufs(void) #define dec_free_l2_bufs(...) #define inc_free_l2_bufs(...) #define get_free_l2_bufs(...) -#define inc_free_l2_bufs_func NULL +#define inc_free_l2_bufs_func(...) #endif static struct nano_fifo free_l2_bufs;