Thread (5 messages) flat view 5 messages, 4 authors, 2012-12-07

Re: [PATCH] net: core: fix unused variable sparse warning

From: David Miller <davem@davemloft.net>
Date: 2012-12-07 03:26:01
Also in: lkml

From: Cong Ding <redacted>
Date: Fri, 7 Dec 2012 00:15:47 +0000
On Fri, Dec 07, 2012 at 12:06:44AM +0000, Cong Ding wrote:
quoted
the variables zero and unres_qlen_max are only used when CONFIG_SYSCTL is
defined, otherwise it causes the following sparse warning when we turn on
CONFIG_SYSCTL.
sorry for disturbing again, the sparse warning is
net/core/neighbour.c:65:12: warning: ‘zero’ defined but not used [-Wunused-variable]
net/core/neighbour.c:66:12: warning: ‘unres_qlen_max’ defined but not used [-Wunused-variable]

it happens if we turn off CONFIG_SYSCTL.
A patch for this has already in my tree for nearly a whole day.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help