]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/base/bus.c: local variables should not be exposed globally
authorH Hartley Sweeten <hartleys@visionengravers.com>
Tue, 17 Apr 2012 01:14:10 +0000 (18:14 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Apr 2012 22:39:52 +0000 (15:39 -0700)
commit0906f4efbbee0d2afab375dfba623842dd3b2cdd
tree3ac9dc7b5ee4dd2aedbf150ecc6c4d81605dc767
parente067f989314878c7f22f7e54b1bfc73534607923
drivers/base/bus.c: local variables should not be exposed globally

The variable 'system_kset' is only referenced in this file and
should be marked static to prevent it from being exposed globally.

This quiets the sparse waring:

warning: symbol 'system_kset' was not declared. Should it be static?

Also, remove the comment since drivers/base/sys.c has now been
deleted.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/bus.c