Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

platform/x86/dell-wmi-sysman: Make wmi_sysman_kobj_sysfs_ops static

Fix the following sparse warning:

drivers/platform/x86/dell-wmi-sysman/sysman.c:258:24: warning:
symbol 'wmi_sysman_kobj_sysfs_ops' was not declared.
Should it be static?

wmi_sysman_kobj_sysfs_ops has only call within sysman.c
It should be static

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zou Wei <zou_wei@huawei.com>
Link: https://lore.kernel.org/r/1603971581-64135-1-git-send-email-zou_wei@huawei.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>

authored by

Zou Wei and committed by
Hans de Goede
76adf0df 924ad325

+1 -1
+1 -1
drivers/platform/x86/dell-wmi-sysman/sysman.c
··· 255 255 return ret; 256 256 } 257 257 258 - const struct sysfs_ops wmi_sysman_kobj_sysfs_ops = { 258 + static const struct sysfs_ops wmi_sysman_kobj_sysfs_ops = { 259 259 .show = wmi_sysman_attr_show, 260 260 .store = wmi_sysman_attr_store, 261 261 };