[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-0858ea05ee8b424e7776237b06bdfc7d6de0e014@git.kernel.org>
Date: Tue, 18 Dec 2018 03:51:54 -0800
From: tip-bot for MogerBabu <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: Babu.Moger@....com, reinette.chatre@...el.com, mingo@...nel.org,
babu.moger@....com, dan.carpenter@...cle.com, tglx@...utronix.de,
hpa@...or.com, fenghua.yu@...el.com, linux-kernel@...r.kernel.org,
bp@...en8.de
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@....com>
AuthorDate: Wed, 28 Nov 2018 20:15:02 +0000
Committer: Thomas Gleixner <tglx@...utronix.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@...cle.com>
Signed-off-by: Babu Moger <babu.moger@....com>
Signed-off-by: Thomas Gleixner <tglx@...utronix.de>
Cc: "bp@...en8.de" <bp@...en8.de>
Cc: "hpa@...or.com" <hpa@...or.com>
Cc: "fenghua.yu@...el.com" <fenghua.yu@...el.com>
Cc: "reinette.chatre@...el.com" <reinette.chatre@...el.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);
Powered by blists - more mailing lists