Skip to content

Commit db2d169

Browse files
Tom Rixrafaeljw
authored andcommitted
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 <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 3a506ca commit db2d169

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/acpi/bgrt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ static struct kobject *bgrt_kobj;
2121
{ \
2222
return sysfs_emit(buf, "%d\n", bgrt_tab._member); \
2323
} \
24-
struct kobj_attribute bgrt_attr_##_name = __ATTR_RO(_name)
24+
static struct kobj_attribute bgrt_attr_##_name = __ATTR_RO(_name)
2525

2626
BGRT_SHOW(version, version);
2727
BGRT_SHOW(status, status);

0 commit comments

Comments
 (0)