diff options
author | Alan Cox <alan@lxorguk.ukuu.org.uk> | 2005-09-10 03:25:49 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-10 13:06:21 -0400 |
commit | 4327edf6b8a7ac7dce144313947995538842d8fd (patch) | |
tree | e814f19d6f2ec8887ad590bfd67cd89d3d9f1002 /drivers/pci/probe.c | |
parent | b4012a9895b3e28e3bff3aa534d58c7827af6d4f (diff) |
[PATCH] Subject: PATCH: fix numa caused compile warnings
pcibus_to_cpumask expands into more than just an initialiser so gcc
moans about code before variable declarations.
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/pci/probe.c')
-rw-r--r-- | drivers/pci/probe.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index 35caec13023a..26a55d08b506 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c | |||
@@ -72,11 +72,13 @@ void pci_remove_legacy_files(struct pci_bus *bus) { return; } | |||
72 | /* | 72 | /* |
73 | * PCI Bus Class Devices | 73 | * PCI Bus Class Devices |
74 | */ | 74 | */ |
75 | static ssize_t pci_bus_show_cpuaffinity(struct class_device *class_dev, char *buf) | 75 | static ssize_t pci_bus_show_cpuaffinity(struct class_device *class_dev, |
76 | char *buf) | ||
76 | { | 77 | { |
77 | cpumask_t cpumask = pcibus_to_cpumask(to_pci_bus(class_dev)); | ||
78 | int ret; | 78 | int ret; |
79 | cpumask_t cpumask; | ||
79 | 80 | ||
81 | cpumask = pcibus_to_cpumask(to_pci_bus(class_dev)); | ||
80 | ret = cpumask_scnprintf(buf, PAGE_SIZE, cpumask); | 82 | ret = cpumask_scnprintf(buf, PAGE_SIZE, cpumask); |
81 | if (ret < PAGE_SIZE) | 83 | if (ret < PAGE_SIZE) |
82 | buf[ret++] = '\n'; | 84 | buf[ret++] = '\n'; |