summaryrefslogtreecommitdiff
path: root/drivers/edac
diff options
context:
space:
mode:
authorTom Rix <trix@redhat.com>2022-04-21 16:53:19 +0300
committerBorislav Petkov <bp@suse.de>2022-04-29 12:23:09 +0300
commit815fad6e4f9c7dcd3336b989d84ee02fd912d29e (patch)
tree66e24063566273d0b301b200693f058720f07d2e /drivers/edac
parent2f58783c5d8882273eb0c872d19bb89954d466e8 (diff)
downloadlinux-815fad6e4f9c7dcd3336b989d84ee02fd912d29e.tar.xz
EDAC/ghes: Change ghes_hw from global to static
Smatch reports this issue ghes_edac.c:44:3: warning: symbol 'ghes_hw' was not declared. Should it be static? ghes_hw is used only in ghes_edac.c so change its storage-class specifier to static. Signed-off-by: Tom Rix <trix@redhat.com> Signed-off-by: Borislav Petkov <bp@suse.de> Link: https://lore.kernel.org/r/20220421135319.1508754-1-trix@redhat.com
Diffstat (limited to 'drivers/edac')
-rw-r--r--drivers/edac/ghes_edac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/edac/ghes_edac.c b/drivers/edac/ghes_edac.c
index 2805d5610300..59b0bedc9c24 100644
--- a/drivers/edac/ghes_edac.c
+++ b/drivers/edac/ghes_edac.c
@@ -38,7 +38,7 @@ static struct ghes_pvt *ghes_pvt;
* This driver's representation of the system hardware, as collected
* from DMI.
*/
-struct ghes_hw_desc {
+static struct ghes_hw_desc {
int num_dimms;
struct dimm_info *dimms;
} ghes_hw;