ACPI: PRM: make symbol 'prm_module_list' static
Subsystems (2)
PATCH 1/1 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 cefc7ca46235 ("ACPI: PRM: implement OperationRegion handler for the PlatformRtMechanism subtype")
Reported-by Hulk Robot <[email protected]>
Signed-off-by Wei Yongjun <[email protected]>
--- drivers/acpi/prmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/acpi/prmt.c +1 -1
@@ -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;
Quoted 21 lines · Wei Yongjun
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 cefc7ca46235 ("ACPI: PRM: implement OperationRegion handler for the PlatformRtMechanism subtype")Reported-by Hulk Robot <[email protected]>Signed-off-by Wei Yongjun <[email protected]>--- drivers/acpi/prmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/acpi/prmt.c +0
-0
drivers/acpi/prmt.c struct prm_context_buffer { · line 56
Quoted 8 lines
drivers/acpi/prmt.c +1
-1@@ -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;
Applied, thanks!