From: Dmitry Torokhov Date: Wed, 15 Dec 2010 22:00:19 +0000 (-0800) Subject: module: show version information for built-in modules in sysfs X-Git-Tag: v2.6.38-rc3~73^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e94965ed5beb23c6fabf7ed31f625e66d7ff28de;p=pandora-kernel.git module: show version information for built-in modules in sysfs Currently only drivers that are built as modules have their versions shown in /sys/module//version, but this information might also be useful for built-in drivers as well. This especially important for drivers that do not define any parameters - such drivers, if built-in, are completely invisible from userspace. This patch changes MODULE_VERSION() macro so that in case when we are compiling built-in module, version information is stored in a separate section. Kernel then uses this data to create 'version' sysfs attribute in the same fashion it creates attributes for module parameters. Signed-off-by: Dmitry Torokhov Signed-off-by: Rusty Russell --- Reading git-diff-tree failed