x86/resctrl: fix the uninitialized variable warning
Subsystems (2)
Moger, Babu
reviewerPATCH 1/1 x86/resctrl: fix the uninitialized variable warning
Fix the compiler warning caused by a recent change.
--- arch/x86/kernel/cpu/resctrl/ctrlmondata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/cpu/resctrl/ctrlmondata.c +1 -1
@@ -202,7 +202,7 @@ int parse_cbm(struct rdt_parse_data *data, struct rdt_resource *r, struct rdt_domain *d) {struct rdtgroup *rdtgrp = data->rdtgrp; -u32 cbm_val; +u32 cbm_val =0 ;if (d->have_new_ctrl) {rdt_last_cmd_printf ("Duplicate domain %d\n" , d->id);
Signature · 1 line
2.17.1
Borislav Petkov
maintainerQuoted 1 line · Babu
Fix the compiler warning caused by a recent change.
Now take your time machine, send yourself 6 months into the future, look at that commit message and try to remember what it was fixing. Can you?
I can't.
IOW, please summarize what smatch - the static checker not the compiler
- was complaining about and why this is a good fix.
Thx.
Signature · 4 lines
Regards/Gruss,
Boris.
Good mailing practices for 400: avoid top-posting and trim the reply.Moger, Babu
reviewerBoris,
Quoted 12 lines
-----Original Message-----
From: Borislav Petkov <[email protected]>
Sent: Wednesday, November 28, 2018 2:30 PM
To: Moger, Babu <[email protected]>
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH] x86/resctrl: fix the uninitialized variable warningQuoted 1 line · Babu
Fix the compiler warning caused by a recent change.
Quoted 7 lines
Now take your time machine, send yourself 6 months into the future, look at that commit message and try to remember what it was fixing. Can you?
I can't.
IOW, please summarize what smatch - the static checker not the compiler
- was complaining about and why this is a good fix.
Yes. Forgot to mention. Sent v2. I will mention about static checker in v3.
Quoted 8 lines
Thx.
--
Regards/Gruss,
Boris.Good mailing practices for 400: avoid top-posting and trim the reply.
tip-bot for MogerBabu
merge bot[tip:x86/cache] x86/resctrl: Fix the uninitialized variable warning
In reply to Moger, Babux86/resctrl: Fix the uninitialized variable warning
Commit-ID: 0858ea05ee8b424e7776237b06bdfc7d6de0e014 Gitweb: https://git.kernel.org/tip/0858ea05ee8b424e7776237b06bdfc7d6de0e014 Author: MogerBabu <[email protected]> AuthorDate: Wed, 28 Nov 2018 20:15:02 +0000 Committer: Thomas Gleixner <[email protected]> CommitDate: Tue, 18 Dec 2018 12:47:07 +0100
x86/resctrl: Fix the uninitialized variable warning
Fix the compiler warning caused by a recent change.
--- arch/x86/kernel/cpu/resctrl/ctrlmondata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/cpu/resctrl/ctrlmondata.c +1 -1
@@ -202,7 +202,7 @@ int parse_cbm(struct rdt_parse_data *data, struct rdt_resource *r, struct rdt_domain *d) {struct rdtgroup *rdtgrp = data->rdtgrp; -u32 cbm_val; +u32 cbm_val =0 ;if (d->have_new_ctrl) {rdt_last_cmd_printf ("Duplicate domain %d\n" , d->id);