summaryrefslogtreecommitdiff
path: root/drivers/acpi/prmt.c
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2021-06-15 17:21:57 +0000
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2021-06-17 14:40:29 +0200
commitd7a188bb87d8da78a1ef0dea53f1639f3daf0790 (patch)
tree1819a4b649e4cb4e74beac2d88cca15976a147a3 /drivers/acpi/prmt.c
parent60faa8f1ac6e0588d53eb9a345adcdbcc96a8f47 (diff)
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 <hulkci@huawei.com> Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/prmt.c')
-rw-r--r--drivers/acpi/prmt.c2
1 files changed, 1 insertions, 1 deletions
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;