[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220113161846.1932-1-jiapeng.chong@linux.alibaba.com>
Date: Fri, 14 Jan 2022 00:18:46 +0800
From: Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
To: rafael@...nel.org
Cc: lenb@...nel.org, linux-acpi@...r.kernel.org,
linux-kernel@...r.kernel.org,
Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>,
Abaci Robot <abaci@...ux.alibaba.com>
Subject: [PATCH] ACPI: PCC: make pcc_ctx static
This symbol is not used outside of acpi_pcc.c, so marks it static.
Fix the following sparse warning:
drivers/acpi/acpi_pcc.c:34:22: warning: symbol 'pcc_ctx' was not
declared. Should it be static?
Reported-by: Abaci Robot <abaci@...ux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
---
drivers/acpi/acpi_pcc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/acpi/acpi_pcc.c b/drivers/acpi/acpi_pcc.c
index 41e3ebd204ff..a12b55d81209 100644
--- a/drivers/acpi/acpi_pcc.c
+++ b/drivers/acpi/acpi_pcc.c
@@ -31,7 +31,7 @@ struct pcc_data {
struct acpi_pcc_info ctx;
};
-struct acpi_pcc_info pcc_ctx;
+static struct acpi_pcc_info pcc_ctx;
static void pcc_rx_callback(struct mbox_client *cl, void *m)
{
--
2.20.1.7.g153144c
Powered by blists - more mailing lists