Skip to content

Commit

Permalink
module: fix linker error for MODULE_VERSION when !MODULE and CONFIG_S…
Browse files Browse the repository at this point in the history
…YSFS=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>
  • Loading branch information
rustyrussell committed Jan 24, 2011
1 parent e94965e commit 3b90a5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/module.h
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ extern struct module __this_module;
local headers in "srcversion".
*/

#ifdef MODULE
#if defined(MODULE) || !defined(CONFIG_SYSFS)
#define MODULE_VERSION(_version) MODULE_INFO(version, _version)
#else
#define MODULE_VERSION(_version) \
Expand Down

0 comments on commit 3b90a5b

Please sign in to comment.