Re: [PATCH] lwtunnel: Fix the sparse warnings in fib_encap_match

2015-08-19 Thread Ying Xue
On 08/19/2015 03:40 PM, Jiri Benc wrote: > On Wed, 19 Aug 2015 15:33:29 +0800, Ying Xue wrote: >> When CONFIG_LWTUNNEL config is not enabled, the lwtstate_free() is not >> declared in lwtunnel.h at all. However, even in this case, the function >> is still referenced in fib_semantics.c so that there

Re: [PATCH] lwtunnel: Fix the sparse warnings in fib_encap_match

2015-08-19 Thread Jiri Benc
On Wed, 19 Aug 2015 15:33:29 +0800, Ying Xue wrote: > When CONFIG_LWTUNNEL config is not enabled, the lwtstate_free() is not > declared in lwtunnel.h at all. However, even in this case, the function > is still referenced in fib_semantics.c so that there appears the > following sparse warnings: > >

[PATCH] lwtunnel: Fix the sparse warnings in fib_encap_match

2015-08-19 Thread Ying Xue
When CONFIG_LWTUNNEL config is not enabled, the lwtstate_free() is not declared in lwtunnel.h at all. However, even in this case, the function is still referenced in fib_semantics.c so that there appears the following sparse warnings: net/ipv4/fib_semantics.c:553:17: error: undefined identifier 'l