]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: thinkpad_acpi: Make some symbols static
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 29 Jul 2020 15:59:14 +0000 (23:59 +0800)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Sat, 1 Aug 2020 11:40:30 +0000 (14:40 +0300)
commite3d8779e06e54af94185e0b629dac84eaf6edede
tree80cc5ca80f3dbbb66f36b65d0eb0e40feb407ad9
parentb98a901c304d732dbe7737b8d0da057bc29addcd
platform/x86: thinkpad_acpi: Make some symbols static

The sparse tool complains as follows:

drivers/platform/x86/thinkpad_acpi.c:9636:25: warning:
 symbol 'dev_attr_charge_start_threshold' was not declared. Should it be static?
drivers/platform/x86/thinkpad_acpi.c:9642:25: warning:
 symbol 'dev_attr_charge_stop_threshold' was not declared. Should it be static?

Those variables are not used outside of thinkpad_acpi.c, so this
commit marks them static.

Fixes: db5e2e26be91 ("platform/x86: thinkpad_acpi: use standard charge control attribute names")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/thinkpad_acpi.c