Skip to content

Commit

Permalink
ACPI: PRM: make symbol 'prm_module_list' static
Browse files Browse the repository at this point in the history
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 <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Wei Yongjun authored and Rafael J. Wysocki committed Jun 17, 2021
1 parent 60faa8f commit d7a188b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/acpi/prmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ struct prm_context_buffer {
#pragma pack()


LIST_HEAD(prm_module_list);
static LIST_HEAD(prm_module_list);

struct prm_handler_info {
guid_t guid;
Expand Down

0 comments on commit d7a188b

Please sign in to comment.