aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/mpt2sas/mpi/mpi2_tool.h
diff options
context:
space:
mode:
authorDmitry Torokhov <[email protected]>2010-12-15 22:00:19 +0000
committerRusty Russell <[email protected]>2011-01-24 04:02:51 +0000
commite94965ed5beb23c6fabf7ed31f625e66d7ff28de (patch)
tree842e4cab961b568bcb98d8ab80d7d399110598a4 /drivers/scsi/mpt2sas/mpi/mpi2_tool.h
parentLinux 2.6.38-rc2 (diff)
downloadkernel-e94965ed5beb23c6fabf7ed31f625e66d7ff28de.tar.gz
kernel-e94965ed5beb23c6fabf7ed31f625e66d7ff28de.zip
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/<module_name>/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 <[email protected]> Signed-off-by: Rusty Russell <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpi/mpi2_tool.h')
0 files changed, 0 insertions, 0 deletions