]> git.baikalelectronics.ru Git - kernel.git/commit
random: move random_min_urandom_seed into CONFIG_SYSCTL ifdef block
authorFabio Estevam <fabio.estevam@nxp.com>
Tue, 31 Jan 2017 16:36:07 +0000 (14:36 -0200)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 7 Feb 2017 01:46:49 +0000 (20:46 -0500)
commit0d07a94613981eac5a36be2a682783b968ea15cd
tree5cff81fc4d5d9f22b724390f5cf20fa93ee9eb09
parente030608b2312fb2ddeafb29fb781ed8ebf85fa6e
random: move random_min_urandom_seed into CONFIG_SYSCTL ifdef block

Building arm allnodefconfig causes the following build warning:

drivers/char/random.c:318:12: warning: 'random_min_urandom_seed' defined but not used [-Wunused-variable]

Fix the warning by moving 'random_min_urandom_seed' declaration inside
the CONFIG_SYSCTL ifdef block, where it is actually used.

While at it, remove the comment prior to the variable declaration.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
drivers/char/random.c