lkml.org 
[lkml]   [2004]   [Nov]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
SubjectRe: [PATCH] More PCI fixes for 2.6.10-rc2
Date
From
ChangeSet 1.2223.2.5, 2004/11/30 11:54:13-08:00, greg@kroah.com

PCI: fix build warning in pci-sysfs.c

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>


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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:08    [W:0.502 / U:0.384 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site