]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit198e0d5d0efbe9af9d1e2a69cf9646071bb5a932
treef084c812a3c55911b9a9a35e101346ffb33d8aae
parentdd07a065ae4f9eddf3d301fafb3993340b6092ce
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