ACPI, APEI: make apei_resources_all static
authorJason Yan <yanaijie@huawei.com>
Sat, 12 Sep 2020 03:38:51 +0000 (11:38 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 25 Sep 2020 10:54:47 +0000 (12:54 +0200)
This eliminates the following sparse warning:

drivers/acpi/apei/apei-base.c:290:23: warning: symbol
'apei_resources_all' was not declared. Should it be static?

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Jason Yan <yanaijie@huawei.com>
Reviewed-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/apei/apei-base.c

index e358d00464947e5b76ec7cdab3ec72ad2ae11e41..d3fbac58d91a112a446bfaac8904e36281e4a3f5 100644 (file)
@@ -287,7 +287,7 @@ struct apei_res {
 };
 
 /* Collect all resources requested, to avoid conflict */
-struct apei_resources apei_resources_all = {
+static struct apei_resources apei_resources_all = {
        .iomem = LIST_HEAD_INIT(apei_resources_all.iomem),
        .ioport = LIST_HEAD_INIT(apei_resources_all.ioport),
 };