Skip to content

Commit d7a188b

Browse files
Wei Yongjunrafaeljw
authored andcommitted
ACPI: PRM: make symbol 'prm_module_list' static
The sparse tool complains as follows: drivers/acpi/prmt.c:53:1: warning: symbol 'prm_module_list' was not declared. Should it be static? This symbol is not used outside of prmt.c, so marks it static. Fixes: cefc7ca ("ACPI: PRM: implement OperationRegion handler for the PlatformRtMechanism subtype") Reported-by: Hulk Robot <[email protected]> Signed-off-by: Wei Yongjun <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 60faa8f commit d7a188b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/acpi/prmt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ struct prm_context_buffer {
5050
#pragma pack()
5151

5252

53-
LIST_HEAD(prm_module_list);
53+
static LIST_HEAD(prm_module_list);
5454

5555
struct prm_handler_info {
5656
guid_t guid;

0 commit comments

Comments
 (0)