lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <201210051803.28848.arnd@arndb.de>
Date:	Fri, 5 Oct 2012 18:03:28 +0000
From:	Arnd Bergmann <arnd@...db.de>
To:	Fabio Estevam <fabio.estevam@...escale.com>
Cc:	akpm@...ux-foundation.org, mingo@...nel.org,
	linux-kernel@...r.kernel.org, a.p.zijlstra@...llo.nl,
	festevam@...il.com
Subject: Re: [PATCH] sysctl: Fix 'defined but not used' warning

On Friday 05 October 2012, Fabio Estevam wrote:
> Since commit 4ae834f767(sched/numa: Implement NUMA home-node selection code)
> building a kernel with CONFIG_SMP disabled causes the following warning:
> 
> kernel/sysctl.c:259:12: warning: 'min_sched_tunable_scaling' defined but not used [-Wunused-variable]
> kernel/sysctl.c:260:12: warning: 'max_sched_tunable_scaling' defined but not used [-Wunused-variable]
> 
> Annotate theses variables as '__maybe_unused'.
> 
> Signed-off-by: Fabio Estevam <fabio.estevam@...escale.com>

Acked-by: Arnd Bergmann <arnd@...db.de>

I noticed the same thing and had a different fix for it, but yours is better anyway.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ