[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tip-c558df4a01a9ec7b02303aba808d1e5044822add@git.kernel.org>
Date: Tue, 8 May 2012 03:03:22 -0700
From: tip-bot for Suresh Siddha <suresh.b.siddha@...el.com>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, hpa@...or.com, mingo@...nel.org,
joerg.roedel@....com, suresh.b.siddha@...el.com, tglx@...utronix.de
Subject: [tip:core/iommu] irq_remap: Fix the 'sub_handle'
uninitialized warning
Commit-ID: c558df4a01a9ec7b02303aba808d1e5044822add
Gitweb: http://git.kernel.org/tip/c558df4a01a9ec7b02303aba808d1e5044822add
Author: Suresh Siddha <suresh.b.siddha@...el.com>
AuthorDate: Tue, 8 May 2012 00:08:54 -0700
Committer: Ingo Molnar <mingo@...nel.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@...el.com>
Cc: joro@...tes.org
Cc: iommu@...ts.linux-foundation.org
Cc: Joerg Roedel <joerg.roedel@....com>
Link: http://lkml.kernel.org/r/1336460934-23592-3-git-send-email-suresh.b.siddha@intel.com
Signed-off-by: Ingo Molnar <mingo@...nel.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);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists