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

From: David Miller
Date: Thu Dec 06 2012 - 22:25:48 EST


From: Cong Ding <dinggnu@xxxxxxxxx>
Date: Fri, 7 Dec 2012 00:15:47 +0000

> On Fri, Dec 07, 2012 at 12:06:44AM +0000, Cong Ding wrote:
>> 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.
ʼιμΉ»?&ή~Ί&Ά¬?+-±ιέΆ??w??Λ?±Κβmιb?μdzΉή?)ν?ζθw*jg¬±¨Ά????έʼj/?κδzΉή??ΰ2?ή?¨θ­Ϊ&ʼ)ίʽ«aΆΪώψ?G«?ιh?ζj:+v?¨?wθ?Ω?>W?±κήiΫaxPjΨmΆ??Γ -»+?ωd?_