|
@@ -51,12 +51,12 @@ static ssize_t pci_bus_show_cpuaffinity(struct device *dev,
|
|
char *buf)
|
|
char *buf)
|
|
{
|
|
{
|
|
int ret;
|
|
int ret;
|
|
- cpumask_t cpumask;
|
|
|
|
|
|
+ const struct cpumask *cpumask;
|
|
|
|
|
|
- cpumask = pcibus_to_cpumask(to_pci_bus(dev));
|
|
|
|
|
|
+ cpumask = cpumask_of_pcibus(to_pci_bus(dev));
|
|
ret = type?
|
|
ret = type?
|
|
- cpulist_scnprintf(buf, PAGE_SIZE-2, &cpumask) :
|
|
|
|
- cpumask_scnprintf(buf, PAGE_SIZE-2, &cpumask);
|
|
|
|
|
|
+ cpulist_scnprintf(buf, PAGE_SIZE-2, cpumask) :
|
|
|
|
+ cpumask_scnprintf(buf, PAGE_SIZE-2, cpumask);
|
|
buf[ret++] = '\n';
|
|
buf[ret++] = '\n';
|
|
buf[ret] = '\0';
|
|
buf[ret] = '\0';
|
|
return ret;
|
|
return ret;
|