From: Tom Rix Date: Thu, 21 Apr 2022 13:53:19 +0000 (-0400) Subject: EDAC/ghes: Change ghes_hw from global to static X-Git-Tag: v5.19-rc1~234^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=815fad6e4f9c7dcd3336b989d84ee02fd912d29e;p=thirdparty%2Flinux.git 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 Signed-off-by: Borislav Petkov Link: https://lore.kernel.org/r/20220421135319.1508754-1-trix@redhat.com --- diff --git a/drivers/edac/ghes_edac.c b/drivers/edac/ghes_edac.c index 2805d56103009..59b0bedc9c242 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;