Skip to content

Commit

Permalink
platform/x86/dell-wmi-sysman: Make wmi_sysman_kobj_sysfs_ops static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Zou Wei authored and Hans de Goede committed Nov 3, 2020
1 parent 924ad32 commit 76adf0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/platform/x86/dell-wmi-sysman/sysman.c
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ static ssize_t wmi_sysman_attr_store(struct kobject *kobj, struct attribute *att
return ret;
}

const struct sysfs_ops wmi_sysman_kobj_sysfs_ops = {
static const struct sysfs_ops wmi_sysman_kobj_sysfs_ops = {
.show = wmi_sysman_attr_show,
.store = wmi_sysman_attr_store,
};
Expand Down

0 comments on commit 76adf0d

Please sign in to comment.