aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/pci-sysfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci/pci-sysfs.c')
-rw-r--r--drivers/pci/pci-sysfs.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/pci/pci-sysfs.c b/drivers/pci/pci-sysfs.c
index c23619fb6c4b..db7ec14fa719 100644
--- a/drivers/pci/pci-sysfs.c
+++ b/drivers/pci/pci-sysfs.c
@@ -71,11 +71,11 @@ static ssize_t broken_parity_status_store(struct device *dev,
71static ssize_t local_cpus_show(struct device *dev, 71static ssize_t local_cpus_show(struct device *dev,
72 struct device_attribute *attr, char *buf) 72 struct device_attribute *attr, char *buf)
73{ 73{
74 cpumask_t mask; 74 const struct cpumask *mask;
75 int len; 75 int len;
76 76
77 mask = pcibus_to_cpumask(to_pci_dev(dev)->bus); 77 mask = cpumask_of_pcibus(to_pci_dev(dev)->bus);
78 len = cpumask_scnprintf(buf, PAGE_SIZE-2, &mask); 78 len = cpumask_scnprintf(buf, PAGE_SIZE-2, mask);
79 buf[len++] = '\n'; 79 buf[len++] = '\n';
80 buf[len] = '\0'; 80 buf[len] = '\0';
81 return len; 81 return len;
@@ -85,11 +85,11 @@ static ssize_t local_cpus_show(struct device *dev,
85static ssize_t local_cpulist_show(struct device *dev, 85static ssize_t local_cpulist_show(struct device *dev,
86 struct device_attribute *attr, char *buf) 86 struct device_attribute *attr, char *buf)
87{ 87{
88 cpumask_t mask; 88 const struct cpumask *mask;
89 int len; 89 int len;
90 90
91 mask = pcibus_to_cpumask(to_pci_dev(dev)->bus); 91 mask = cpumask_of_pcibus(to_pci_dev(dev)->bus);
92 len = cpulist_scnprintf(buf, PAGE_SIZE-2, &mask); 92 len = cpulist_scnprintf(buf, PAGE_SIZE-2, mask);
93 buf[len++] = '\n'; 93 buf[len++] = '\n';
94 buf[len] = '\0'; 94 buf[len] = '\0';
95 return len; 95 return len;