[tip:core/iommu] irq_remap: Fix the 'sub_handle' uninitialized warning
From: tip-bot for Suresh Siddha
Date: Tue May 08 2012 - 06:03:31 EST
Commit-ID: c558df4a01a9ec7b02303aba808d1e5044822add
Gitweb: http://git.kernel.org/tip/c558df4a01a9ec7b02303aba808d1e5044822add
Author: Suresh Siddha <suresh.b.siddha@xxxxxxxxx>
AuthorDate: Tue, 8 May 2012 00:08:54 -0700
Committer: Ingo Molnar <mingo@xxxxxxxxxx>
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@xxxxxxxxx>
Cc: joro@xxxxxxxxxx
Cc: iommu@xxxxxxxxxxxxxxxxxxxxxxxxxx
Cc: Joerg Roedel <joerg.roedel@xxxxxxx>
Link: http://lkml.kernel.org/r/1336460934-23592-3-git-send-email-suresh.b.siddha@xxxxxxxxx
Signed-off-by: Ingo Molnar <mingo@xxxxxxxxxx>
---
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/