From: Wei Yongjun Date: Tue, 15 Jun 2021 17:21:57 +0000 (+0000) Subject: ACPI: PRM: make symbol 'prm_module_list' static X-Git-Tag: Ubuntu-5.15.0-12.12~2396^2~2^2 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=d7a188bb87d8da78a1ef0dea53f1639f3daf0790;p=mirror_ubuntu-jammy-kernel.git 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 Signed-off-by: Wei Yongjun Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/acpi/prmt.c b/drivers/acpi/prmt.c index 33c274698d07..31cf9aee5edd 100644 --- a/drivers/acpi/prmt.c +++ b/drivers/acpi/prmt.c @@ -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;