WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [linux-2.6.18-xen] linux/PCI-MSI: fix compiler warnings

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [linux-2.6.18-xen] linux/PCI-MSI: fix compiler warnings resulting from c/s 790
From: "Xen patchbot-linux-2.6.18-xen" <patchbot-linux-2.6.18-xen@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 19 Mar 2009 10:05:10 -0700
Delivery-date: Thu, 19 Mar 2009 10:05:31 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1237457251 0
# Node ID 6a0fee3b8b7da9e2aec96ee6807df5684218d6e4
# Parent  158d62a67d4509a58b6f5940f55392a279a60c11
linux/PCI-MSI: fix compiler warnings resulting from c/s 790

The one in pci_enable_msix() is rather meaningful, as the
uninitialized inner msi_dev_entry was indeed hiding the initialized
outer one.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
---
 drivers/pci/msi-xen.c |    4 ----
 1 files changed, 4 deletions(-)

diff -r 158d62a67d45 -r 6a0fee3b8b7d drivers/pci/msi-xen.c
--- a/drivers/pci/msi-xen.c     Thu Mar 19 10:06:52 2009 +0000
+++ b/drivers/pci/msi-xen.c     Thu Mar 19 10:07:31 2009 +0000
@@ -719,7 +719,6 @@ int pci_enable_msix(struct pci_dev* dev,
 
 #ifdef CONFIG_XEN_PCIDEV_FRONTEND
        if (!is_initial_xendomain()) {
-               struct msi_dev_list *msi_dev_entry;
                struct msi_pirq_entry *pirq_entry;
                int ret, irq;
 
@@ -731,7 +730,6 @@ int pci_enable_msix(struct pci_dev* dev,
                }
                msi_dev_entry->default_irq = temp;
 
-               msi_dev_entry = get_msi_dev_pirq_list(dev);
                for (i = 0; i < nvec; i++) {
                        int mapped = 0;
 
@@ -802,8 +800,6 @@ void pci_disable_msix(struct pci_dev* de
 {
        int pos;
        u16 control;
-       struct msi_dev_list *msi_dev_entry = get_msi_dev_pirq_list(dev);
-
 
        if (!pci_msi_enable)
                return;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [linux-2.6.18-xen] linux/PCI-MSI: fix compiler warnings resulting from c/s 790, Xen patchbot-linux-2.6.18-xen <=