* [PATCH] EDAC/amd64: set variable gpu_node_map storage-class-specifier to static
@ 2023-06-10 21:09 Tom Rix
2023-06-14 15:21 ` Yazen Ghannam
0 siblings, 1 reply; 3+ messages in thread
From: Tom Rix @ 2023-06-10 21:09 UTC (permalink / raw)
To: yazen.ghannam, bp, tony.luck, james.morse, mchehab, rric
Cc: linux-edac, linux-kernel, Tom Rix
smatch reports
drivers/edac/amd64_edac.c:990:3: warning: symbol
'gpu_node_map' was not declared. Should it be static?
This variable is only used in its defining file, so it should be static.
Signed-off-by: Tom Rix <trix@redhat.com>
---
drivers/edac/amd64_edac.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c
index 5d7c080d96a2..597dae7692b1 100644
--- a/drivers/edac/amd64_edac.c
+++ b/drivers/edac/amd64_edac.c
@@ -984,7 +984,7 @@ static int sys_addr_to_csrow(struct mem_ctl_info *mci, u64 sys_addr)
* system and what the lowest AMD Node ID value is for the GPU nodes. Use this
* info to fixup the Linux logical "Node ID" value set in the AMD NB code and EDAC.
*/
-struct local_node_map {
+static struct local_node_map {
u16 node_count;
u16 base_node_id;
} gpu_node_map;
--
2.27.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] EDAC/amd64: set variable gpu_node_map storage-class-specifier to static
2023-06-10 21:09 [PATCH] EDAC/amd64: set variable gpu_node_map storage-class-specifier to static Tom Rix
@ 2023-06-14 15:21 ` Yazen Ghannam
2023-06-19 11:07 ` Borislav Petkov
0 siblings, 1 reply; 3+ messages in thread
From: Yazen Ghannam @ 2023-06-14 15:21 UTC (permalink / raw)
To: Tom Rix, bp, tony.luck, james.morse, mchehab, rric
Cc: yazen.ghannam, linux-edac, linux-kernel
On 6/10/2023 5:09 PM, Tom Rix wrote:
> smatch reports
> drivers/edac/amd64_edac.c:990:3: warning: symbol
> 'gpu_node_map' was not declared. Should it be static?
>
> This variable is only used in its defining file, so it should be static.
>
Hi Tom,
Please use "imperative mood" when describing the change.
"This variable is only used in its defining file, so add the 'static'
keyword to it."
or
"Make gpu_node_map static, since it's only used in its defining file."
Also, would a Fixes tag be appropriate?
Otherwise, looks good to me.
Reviewed-by: Yazen Ghannam <yazen.ghannam@amd.com>
Thanks,
Yazen
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] EDAC/amd64: set variable gpu_node_map storage-class-specifier to static
2023-06-14 15:21 ` Yazen Ghannam
@ 2023-06-19 11:07 ` Borislav Petkov
0 siblings, 0 replies; 3+ messages in thread
From: Borislav Petkov @ 2023-06-19 11:07 UTC (permalink / raw)
To: Yazen Ghannam
Cc: Tom Rix, tony.luck, james.morse, mchehab, rric, linux-edac,
linux-kernel
On Wed, Jun 14, 2023 at 11:21:46AM -0400, Yazen Ghannam wrote:
> Also, would a Fixes tag be appropriate?
No need. I've squashed this with the topmost commit in tip:ras/core
which introduced gpu_node_map in the first place.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-06-19 11:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-10 21:09 [PATCH] EDAC/amd64: set variable gpu_node_map storage-class-specifier to static Tom Rix
2023-06-14 15:21 ` Yazen Ghannam
2023-06-19 11:07 ` Borislav Petkov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox