Commit-ID: 0858ea05ee8b424e7776237b06bdfc7d6de0e014 Gitweb: https://git.kernel.org/tip/0858ea05ee8b424e7776237b06bdfc7d6de0e014 Author: MogerBabu <babu.mo...@amd.com> AuthorDate: Wed, 28 Nov 2018 20:15:02 +0000 Committer: Thomas Gleixner <t...@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.carpen...@oracle.com> Signed-off-by: Babu Moger <babu.mo...@amd.com> Signed-off-by: Thomas Gleixner <t...@linutronix.de> Cc: "b...@alien8.de" <b...@alien8.de> Cc: "h...@zytor.com" <h...@zytor.com> Cc: "fenghua...@intel.com" <fenghua...@intel.com> Cc: "reinette.cha...@intel.com" <reinette.cha...@intel.com> Link: https://lkml.kernel.org/r/20181128201450.31820-1-babu.mo...@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);