]> git.baikalelectronics.ru Git - kernel.git/commit
ipmi: Finish cleanup of BMC attributes
authorCorey Minyard <cminyard@mvista.com>
Sat, 13 Dec 2014 01:06:07 +0000 (19:06 -0600)
committerCorey Minyard <cminyard@mvista.com>
Sun, 21 Dec 2014 23:00:59 +0000 (17:00 -0600)
commitda7247a3ebcc0b7b4bb290de59260ac60e6bde7c
tree6e8c45210c54dc112b56004825c76f1470b3d7c0
parent52e669118b537e9160fcf78a9add89ce70636a6a
ipmi: Finish cleanup of BMC attributes

The previous cleanup of BMC attributes left a few holes, and if
you run with lockdep debugging with a BMC with the proper attributes,
you could get a warning.

This patch removes all the unused attributes from the BMC structure,
since they are all declared in the .data section now.  It makes
the attributes all static.  It fixes the referencing of the
attributes in a couple of cases that dynamically added the files
depending on BMC information.

Signed-off-by: Corey Minyard <cminyard@mvista.com>
Cc: Huang Ying <ying.huang@intel.com>
Tested-by: Alexei Starovoitov <ast@plumgrid.com>
drivers/char/ipmi/ipmi_msghandler.c