summaryrefslogtreecommitdiffstats
path: root/drivers/acpi
diff options
context:
space:
mode:
authorTom Rix <trix@redhat.com>2022-04-21 18:42:54 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2022-04-22 16:55:33 +0200
commitdb2d1693fae37e01e7fcfd627b407c18737e8373 (patch)
tree73896c8becaa32b08cf75114a3aaf2fe327894aa /drivers/acpi
parentACPI: SPCR: Add support for NVIDIA 16550-compatible port subtype (diff)
downloadlinux-db2d1693fae37e01e7fcfd627b407c18737e8373.tar.xz
linux-db2d1693fae37e01e7fcfd627b407c18737e8373.zip
ACPI: BGRT: use static for BGRT_SHOW kobj_attribute defines
Smatch reports this repesentative issue: bgrt.c:26:1: warning: symbol 'bgrt_attr_version' was not declared. Should it be static? Similar for *status,type,xoffset,yoffset These variables are defined with the BGRT_SHOW macro. For the definition of bgrt_attr_##_name, the storage-class specifier should be static. Signed-off-by: Tom Rix <trix@redhat.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi')
-rw-r--r--drivers/acpi/bgrt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/bgrt.c b/drivers/acpi/bgrt.c
index 02d208732f9a..e4fb9e225ddf 100644
--- a/drivers/acpi/bgrt.c
+++ b/drivers/acpi/bgrt.c
@@ -21,7 +21,7 @@ static struct kobject *bgrt_kobj;
{ \
return sysfs_emit(buf, "%d\n", bgrt_tab._member); \
} \
- struct kobj_attribute bgrt_attr_##_name = __ATTR_RO(_name)
+ static struct kobj_attribute bgrt_attr_##_name = __ATTR_RO(_name)
BGRT_SHOW(version, version);
BGRT_SHOW(status, status);