Re: [PATCH RESEND net-next] lwtunnel: Fix the sparse warnings in fib_encap_match

2015-08-19 Thread David Miller
From: Ying Xue Date: Wed, 19 Aug 2015 15:46:17 +0800 > 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 RESEND net-next] 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