public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86/resctrl: fix the uninitialized variable warning
@ 2018-11-28 20:15 Moger, Babu
  2018-11-28 20:29 ` Borislav Petkov
  2018-12-18 11:51 ` [tip:x86/cache] x86/resctrl: Fix " tip-bot for MogerBabu
  0 siblings, 2 replies; 4+ messages in thread
From: Moger, Babu @ 2018-11-28 20:15 UTC (permalink / raw)
  To: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de
  Cc: hpa@zytor.com, x86@kernel.org, fenghua.yu@intel.com,
	reinette.chatre@intel.com, Moger, Babu, dan.carpenter@oracle.com,
	linux-kernel@vger.kernel.org

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>
---
 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 03ee13235a45..2477cb196735 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);
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-12-18 11:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-28 20:15 [PATCH] x86/resctrl: fix the uninitialized variable warning Moger, Babu
2018-11-28 20:29 ` Borislav Petkov
2018-11-28 20:35   ` Moger, Babu
2018-12-18 11:51 ` [tip:x86/cache] x86/resctrl: Fix " tip-bot for MogerBabu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox