From: tip-bot for MogerBabu <tipbot@zytor.com>
To: linux-tip-commits@vger.kernel.org
Cc: Babu.Moger@amd.com, reinette.chatre@intel.com, mingo@kernel.org,
babu.moger@amd.com, dan.carpenter@oracle.com, tglx@linutronix.de,
hpa@zytor.com, fenghua.yu@intel.com,
linux-kernel@vger.kernel.org, bp@alien8.de
Subject: [tip:x86/cache] x86/resctrl: Fix the uninitialized variable warning
Date: Tue, 18 Dec 2018 03:51:54 -0800 [thread overview]
Message-ID: <tip-0858ea05ee8b424e7776237b06bdfc7d6de0e014@git.kernel.org> (raw)
In-Reply-To: <20181128201450.31820-1-babu.moger@amd.com>
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);
prev parent reply other threads:[~2018-12-18 11:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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-bot for MogerBabu [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=tip-0858ea05ee8b424e7776237b06bdfc7d6de0e014@git.kernel.org \
--to=tipbot@zytor.com \
--cc=Babu.Moger@amd.com \
--cc=bp@alien8.de \
--cc=dan.carpenter@oracle.com \
--cc=fenghua.yu@intel.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=reinette.chatre@intel.com \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.