Skip to content

Commit 815fad6

Browse files
Tom Rixsuryasaimadhu
authored andcommitted
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
1 parent 2f58783 commit 815fad6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/edac/ghes_edac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ static struct ghes_pvt *ghes_pvt;
3838
* This driver's representation of the system hardware, as collected
3939
* from DMI.
4040
*/
41-
struct ghes_hw_desc {
41+
static struct ghes_hw_desc {
4242
int num_dimms;
4343
struct dimm_info *dimms;
4444
} ghes_hw;

0 commit comments

Comments
 (0)