Messages in this thread Patch in this message | | | Date | Tue, 18 Dec 2018 03:51:54 -0800 | From | tip-bot for MogerBabu <> | Subject | [tip:x86/cache] x86/resctrl: Fix the uninitialized variable warning |
| |
Commit-ID: 0858ea05ee8b424e7776237b06bdfc7d6de0e014 Gitweb: https://git.kernel.org/tip/0858ea05ee8b424e7776237b06bdfc7d6de0e014 Author: MogerBabu <Babu.Moger@amd.com> AuthorDate: Wed, 28 Nov 2018 20:15:02 +0000 Committer: Thomas Gleixner <tglx@linutronix.de> 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.
Fixes: a36c5ff560fb ("x86/resctrl: Bring cbm_validate() into the resource structure") Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Babu Moger <babu.moger@amd.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: "bp@alien8.de" <bp@alien8.de> Cc: "hpa@zytor.com" <hpa@zytor.com> Cc: "fenghua.yu@intel.com" <fenghua.yu@intel.com> Cc: "reinette.chatre@intel.com" <reinette.chatre@intel.com> Link: https://lkml.kernel.org/r/20181128201450.31820-1-babu.moger@amd.com
--- arch/x86/kernel/cpu/resctrl/ctrlmondata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/kernel/cpu/resctrl/ctrlmondata.c b/arch/x86/kernel/cpu/resctrl/ctrlmondata.c index 3b943ace786c..4b47ae76cccb 100644 --- a/arch/x86/kernel/cpu/resctrl/ctrlmondata.c +++ b/arch/x86/kernel/cpu/resctrl/ctrlmondata.c @@ -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);
| |