module: fix linker error for MODULE_VERSION when !MODULE and CONFIG_SYSFS=n
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 24 Jan 2011 20:32:51 +0000 (14:32 -0600)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 24 Jan 2011 04:02:52 +0000 (14:32 +1030)
commit3b90a5b292321b2acac3921f77046ae195aef53f
treef084c812a3c55911b9a9a35e101346ffb33d8aae
parente94965ed5beb23c6fabf7ed31f625e66d7ff28de
module: fix linker error for MODULE_VERSION when !MODULE and CONFIG_SYSFS=n

lib/built-in.o:(__modver+0x8): undefined reference to `__modver_version_show'
lib/built-in.o:(__modver+0x2c): undefined reference to `__modver_version_show'

Simplest to just not emit anything: if they've disabled SYSFS they probably
want the smallest kernel possible.

Reported-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
include/linux/module.h