|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 24 of 45] gcc-4.6 compile fix: xen/arch/x86/msi.c
# HG changeset patch
# User Olaf Hering <olaf@xxxxxxxxx>
# Date 1305824409 -7200
# Node ID d657cd6182d517b8b5e0fffb0f34ea451f49c916
# Parent 452ca03a71814742f94213554399f6cfbf350046
gcc-4.6 compile fix: xen/arch/x86/msi.c
msi.c: In function '__pci_disable_msi':
msi.c:749:9: error: variable 'control' set but not used
[-Werror=unused-but-set-variable]
(Is this a dummy read before doing the disable?)
Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>
diff -r 452ca03a7181 -r d657cd6182d5 xen/arch/x86/msi.c
--- a/xen/arch/x86/msi.c Thu May 19 19:00:08 2011 +0200
+++ b/xen/arch/x86/msi.c Thu May 19 19:00:09 2011 +0200
@@ -745,17 +745,8 @@ static int __pci_enable_msi(struct msi_i
static void __pci_disable_msi(struct msi_desc *entry)
{
struct pci_dev *dev;
- int pos;
- u16 control;
- u8 bus, slot, func;
dev = entry->dev;
- bus = dev->bus;
- slot = PCI_SLOT(dev->devfn);
- func = PCI_FUNC(dev->devfn);
-
- pos = pci_find_cap_offset(bus, slot, func, PCI_CAP_ID_MSI);
- control = pci_conf_read16(bus, slot, func, msi_control_reg(pos));
msi_set_enable(dev, 0);
BUG_ON(list_empty(&dev->msi_list));
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH 15 of 45] gcc-4.6 compile fix: tools/debugger/gdbsx/gx/gx_comm.c, (continued)
- [Xen-devel] [PATCH 15 of 45] gcc-4.6 compile fix: tools/debugger/gdbsx/gx/gx_comm.c, Olaf Hering
- [Xen-devel] [PATCH 16 of 45] gcc-4.6 compile fix: tools/python/xen/lowlevel/checkpoint/libcheckpoint.c, Olaf Hering
- [Xen-devel] [PATCH 17 of 45] gcc-4.6 compile fix: tools/python/xen/lowlevel/netlink/libnetlink.c, Olaf Hering
- [Xen-devel] [PATCH 18 of 45] gcc-4.6 compile fix: xen/common/cpupool.c, Olaf Hering
- [Xen-devel] [PATCH 19 of 45] gcc-4.6 compile fix: xen/common/grant_table.c, Olaf Hering
- [Xen-devel] [PATCH 20 of 45] gcc-4.6 compile fix: xen/common/kexec.c, Olaf Hering
- [Xen-devel] [PATCH 21 of 45] gcc-4.6 compile fix: xen/common/sched_credit2.c, Olaf Hering
- [Xen-devel] [PATCH 22 of 45] gcc-4.6 compile fix: xen/common/unlzo.c, Olaf Hering
- [Xen-devel] [PATCH 23 of 45] gcc-4.6 compile fix: xen/drivers/passthrough/vtd/intremap.c, Olaf Hering
- [Xen-devel] [PATCH 24 of 45] gcc-4.6 compile fix: xen/arch/x86/msi.c,
Olaf Hering <=
- [Xen-devel] [PATCH 25 of 45] gcc-4.6 compile fix: xen/arch/x86/microcode_amd.c, Olaf Hering
- [Xen-devel] [PATCH 26 of 45] gcc-4.6 compile fix: xen/arch/x86/time.c, Olaf Hering
- [Xen-devel] [PATCH 27 of 45] gcc-4.6 compile fix: xen/arch/x86/acpi/cpu_idle.c, Olaf Hering
- [Xen-devel] [PATCH 28 of 45] gcc-4.6 compile fix: xen/arch/x86/cpu/amd.c, Olaf Hering
- [Xen-devel] [PATCH 29 of 45] gcc-4.6 compile fix: xen/arch/x86/cpu/intel.c, Olaf Hering
- [Xen-devel] [PATCH 30 of 45] gcc-4.6 compile fix: xen/arch/x86/cpu/intel_cacheinfo.c, Olaf Hering
- [Xen-devel] [PATCH 32 of 45] gcc-4.6 compile fix: xen/arch/x86/hvm/emulate.c, Olaf Hering
|
|
|
|
|