Re: [PATCH] More PCI fixes for 2.6.10-rc2
From: Greg KH
Date: Tue Nov 30 2004 - 19:31:04 EST
ChangeSet 1.2223.2.5, 2004/11/30 11:54:13-08:00, greg@xxxxxxxxx
PCI: fix build warning in pci-sysfs.c
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <greg@xxxxxxxxx>
drivers/pci/pci-sysfs.c | 3 +--
1 files changed, 1 insertion(+), 2 deletions(-)
diff -Nru a/drivers/pci/pci-sysfs.c b/drivers/pci/pci-sysfs.c
--- a/drivers/pci/pci-sysfs.c 2004-11-30 15:47:05 -08:00
+++ b/drivers/pci/pci-sysfs.c 2004-11-30 15:47:05 -08:00
@@ -45,8 +45,7 @@
static ssize_t local_cpus_show(struct device *dev, char *buf)
{
- struct pci_dev *pdev = to_pci_dev(dev);
- cpumask_t mask = pcibus_to_cpumask(pdev->bus->number);
+ cpumask_t mask = pcibus_to_cpumask(to_pci_dev(dev)->bus->number);
int len = cpumask_scnprintf(buf, PAGE_SIZE-2, mask);
strcat(buf,"\n");
return 1+len;
-
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/