From: tip-bot for Suresh Siddha <suresh.b.siddha@intel.com>
To: linux-tip-commits@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, hpa@zytor.com, mingo@kernel.org,
joerg.roedel@amd.com, suresh.b.siddha@intel.com,
tglx@linutronix.de
Subject: [tip:core/iommu] irq_remap: Fix the 'sub_handle' uninitialized warning
Date: Tue, 8 May 2012 03:03:22 -0700 [thread overview]
Message-ID: <tip-c558df4a01a9ec7b02303aba808d1e5044822add@git.kernel.org> (raw)
In-Reply-To: <1336460934-23592-3-git-send-email-suresh.b.siddha@intel.com>
Commit-ID: c558df4a01a9ec7b02303aba808d1e5044822add
Gitweb: http://git.kernel.org/tip/c558df4a01a9ec7b02303aba808d1e5044822add
Author: Suresh Siddha <suresh.b.siddha@intel.com>
AuthorDate: Tue, 8 May 2012 00:08:54 -0700
Committer: Ingo Molnar <mingo@kernel.org>
CommitDate: Tue, 8 May 2012 11:17:30 +0200
irq_remap: Fix the 'sub_handle' uninitialized warning
Fix this uninitialized variable warning:
drivers/iommu/intel_irq_remapping.c:986:12: warning: ‘sub_handle’ may be used uninitialized in this function [-Wuninitialized]
GCC is wrong, help it out.
Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
Cc: joro@8bytes.org
Cc: iommu@lists.linux-foundation.org
Cc: Joerg Roedel <joerg.roedel@amd.com>
Link: http://lkml.kernel.org/r/1336460934-23592-3-git-send-email-suresh.b.siddha@intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
---
drivers/iommu/intel_irq_remapping.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/iommu/intel_irq_remapping.c b/drivers/iommu/intel_irq_remapping.c
index 1c0255e..6d34706 100644
--- a/drivers/iommu/intel_irq_remapping.c
+++ b/drivers/iommu/intel_irq_remapping.c
@@ -964,7 +964,7 @@ static void intel_compose_msi_msg(struct pci_dev *pdev,
{
struct irq_cfg *cfg;
struct irte irte;
- u16 sub_handle;
+ u16 sub_handle = 0;
int ir_index;
cfg = irq_get_chip_data(irq);
prev parent reply other threads:[~2012-05-08 10:03 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-07 13:54 [git pull] irq remapping ops for x86 Joerg Roedel
2012-05-07 13:54 ` Joerg Roedel
2012-05-08 3:51 ` Ingo Molnar
[not found] ` <20120508035153.GA30652-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2012-05-08 7:08 ` [PATCH 1/3] irq_remap: fix compiler warning with !CONFIG_IRQ_REMAP Suresh Siddha
2012-05-08 7:08 ` Suresh Siddha
2012-05-08 10:01 ` [tip:core/iommu] irq_remap: Fix compiler warning with CONFIG_IRQ_REMAP=y tip-bot for Suresh Siddha
2012-05-08 7:08 ` [PATCH 2/3] irq_remap: fix the UP build failure Suresh Siddha
2012-05-08 7:08 ` Suresh Siddha
2012-05-08 9:09 ` Ingo Molnar
[not found] ` <20120508090945.GC27323-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2012-05-09 2:37 ` Suresh Siddha
2012-05-09 2:37 ` Suresh Siddha
2012-05-09 9:30 ` Ingo Molnar
2012-05-09 9:30 ` Ingo Molnar
2012-05-09 18:46 ` [PATCH 1/2] kconfig: change config_enabled() to accept X instead of CONFIG_X Suresh Siddha
2012-05-09 18:46 ` [PATCH 2/2] irq: use config_enabled(SMP) checks to cleanup irq_set_affinity() for UP Suresh Siddha
2012-05-09 19:58 ` Suresh Siddha
2012-05-10 7:50 ` Ingo Molnar
2012-05-10 18:19 ` Suresh Siddha
2012-06-06 23:29 ` [patch] " Suresh Siddha
2012-06-07 1:36 ` Yinghai Lu
2012-06-07 20:31 ` Suresh Siddha
2012-06-07 20:36 ` Yinghai Lu
2012-06-07 20:56 ` Suresh Siddha
2012-06-07 13:03 ` Paul Gortmaker
2012-06-07 22:34 ` Suresh Siddha
2012-06-15 1:28 ` [patch] irq: use config_enabled(CONFIG_SMP) " Suresh Siddha
2012-06-15 14:23 ` [tip:x86/apic] irq/apic: Use config_enabled(CONFIG_SMP) checks to clean up " tip-bot for Suresh Siddha
2012-05-09 18:56 ` [PATCH 1/2] kconfig: change config_enabled() to accept X instead of CONFIG_X Sam Ravnborg
2012-05-09 19:29 ` Suresh Siddha
2012-05-09 20:05 ` Sam Ravnborg
2012-05-10 6:05 ` Geert Uytterhoeven
2012-05-09 19:05 ` Linus Torvalds
2012-05-08 10:02 ` [tip:core/iommu] irq_remap: Fix UP build failure tip-bot for Suresh Siddha
2012-05-08 7:08 ` [PATCH 3/3] irq_remap: fix the 'sub_handle' uninitialized warning Suresh Siddha
2012-05-08 7:08 ` Suresh Siddha
2012-05-08 9:15 ` Ingo Molnar
2012-05-08 10:03 ` tip-bot for Suresh Siddha [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-c558df4a01a9ec7b02303aba808d1e5044822add@git.kernel.org \
--to=suresh.b.siddha@intel.com \
--cc=hpa@zytor.com \
--cc=joerg.roedel@amd.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=mingo@kernel.org \
--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.