summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2011-01-24 14:32:51 -0600
committerRusty Russell <rusty@rustcorp.com.au>2011-01-24 14:32:52 +1030
commit3b90a5b292321b2acac3921f77046ae195aef53f (patch)
treef084c812a3c55911b9a9a35e101346ffb33d8aae /include/linux
parente94965ed5beb23c6fabf7ed31f625e66d7ff28de (diff)
downloadop-kernel-dev-3b90a5b292321b2acac3921f77046ae195aef53f.zip
op-kernel-dev-3b90a5b292321b2acac3921f77046ae195aef53f.tar.gz
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>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/module.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/module.h b/include/linux/module.h
index 50efcd3..e7c6385 100644
--- a/include/linux/module.h
+++ b/include/linux/module.h
@@ -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) \
OpenPOWER on IntegriCloud