Follow-on #2:
[6/4] NUMA-Q: remove unused bus number conversion functions
This removes unused detritus left over from the conversion to the
standard PCI arch-private data mechanisms.
numa.c | 15 +++------------
1 files changed, 3 insertions(+), 12 deletions(-)
diff -urpN pci-2.5.47-5/arch/i386/pci/numa.c pci-2.5.47-6/arch/i386/pci/numa.c
--- pci-2.5.47-5/arch/i386/pci/numa.c 2002-11-12 12:06:22.000000000 -0800
+++ pci-2.5.47-6/arch/i386/pci/numa.c 2002-11-12 12:10:25.000000000 -0800
@@ -6,15 +6,8 @@
#include <linux/init.h>
#include "pci.h"
-#define BUS2NODE(global) (mp_bus_id_to_node[global])
-#define BUS2LOCAL(global) (mp_bus_id_to_local[global])
-#define NODELOCAL2BUS(node,local) (quad_local_to_mp_bus_id[node][local])
-
-#define __PCI_CONF1_MQ_ADDRESS(bus, dev, fn, reg) \
- (0x80000000 | (bus << 16) | (dev << 11) | (fn << 8) | (reg & ~3))
-
#define PCI_CONF1_MQ_ADDRESS(bus, dev, fn, reg) \
- __PCI_CONF1_MQ_ADDRESS(BUS2LOCAL(bus), dev, fn, reg)
+ (0x80000000 | (bus << 16) | (dev << 11) | (fn << 8) | (reg & ~3))
static int bus2node(struct pci_bus *bus)
{
@@ -30,7 +23,7 @@ static int __pci_conf1_mq_read (int seg,
spin_lock_irqsave(&pci_config_lock, flags);
- outl_quad(__PCI_CONF1_MQ_ADDRESS(bus, dev, fn, reg), 0xCF8, seg);
+ outl_quad(PCI_CONF1_MQ_ADDRESS(bus, dev, fn, reg), 0xCF8, seg);
switch (len) {
case 1:
@@ -58,7 +51,7 @@ static int __pci_conf1_mq_write (int seg
spin_lock_irqsave(&pci_config_lock, flags);
- outl_quad(__PCI_CONF1_MQ_ADDRESS(bus, dev, fn, reg), 0xCF8, seg);
+ outl_quad(PCI_CONF1_MQ_ADDRESS(bus, dev, fn, reg), 0xCF8, seg);
switch (len) {
case 1:
@@ -77,8 +70,6 @@ static int __pci_conf1_mq_write (int seg
return 0;
}
-#undef PCI_CONF1_MQ_ADDRESS
-
static int pci_conf1_mq_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *value)
{
return __pci_conf1_mq_read(bus2node(bus), bus->number, PCI_SLOT(devfn),
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/