error: implicit declaration of function 'module_flags_taint'
authorKevin Winchester <kjwinchester@gmail.com>
Sun, 15 Jan 2012 23:32:55 +0000 (19:32 -0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 16 Jan 2012 00:21:07 +0000 (16:21 -0800)
commit53999bf34d55981328f8ba9def558d3e104d6e36
tree4ca98169e5c96c1ec8e04d15fce75c60a8b9578d
parent122804ecb59493fbb4d31b3ba9ac59faaf45276f
error: implicit declaration of function 'module_flags_taint'

Recent changes to kernel/module.c caused the following compile
error:

  kernel/module.c: In function ‘show_taint’:
  kernel/module.c:1024:2: error: implicit declaration of function ‘module_flags_taint’ [-Werror=implicit-function-declaration]
  cc1: some warnings being treated as errors

Correct this error by moving the definition of module_flags_taint
outside of the #ifdef CONFIG_MODULE_UNLOAD section.

Signed-off-by: Kevin Winchester <kjwinchester@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/module.c