Skip to content

Commit

Permalink
ACPI, APEI: make apei_resources_all static
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Jason Yan <[email protected]>
Reviewed-by: Borislav Petkov <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
  • Loading branch information
JasonYanHw authored and rafaeljw committed Sep 25, 2020
1 parent ba4f184 commit 8b62740
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/acpi/apei/apei-base.c
Original file line number Diff line number Diff line change
Expand Up @@ -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),
};
Expand Down

0 comments on commit 8b62740

Please sign in to comment.