diff options
author | Rolf Eike Beer <eike-kernel@sf-tec.de> | 2012-05-10 17:01:40 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-05-10 18:12:08 -0400 |
commit | 25fe853d2ce5cad4115a211c568b430b1e4080bc (patch) | |
tree | 69e0463291ac818d197e07276ec7972ea4d931ac /arch | |
parent | 1cab4201f00d06bd15c51cdfb12b233b588cdb61 (diff) |
parisc: add missing forward declarations in asm/hardware.h
Fixes this warnings:
In file included from arch/parisc/include/asm/processor.h:15:0,
from arch/parisc/include/asm/spinlock.h:4,
from arch/parisc/include/asm/atomic.h:20,
from include/linux/atomic.h:4,
from arch/parisc/include/asm/bitops.h:11,
from include/linux/bitops.h:22,
from include/linux/kernel.h:19,
from include/linux/sched.h:55,
from arch/parisc/kernel/asm-offsets.c:31:
arch/parisc/include/asm/hardware.h:106:10: warning: ‘struct hardware_path’ declared inside parameter list [enabled by default]
arch/parisc/include/asm/hardware.h:106:10: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
arch/parisc/include/asm/hardware.h:116:59: warning: ‘struct hardware_path’ declared inside parameter list [enabled by default]
arch/parisc/include/asm/hardware.h:118:47: warning: ‘struct hardware_path’ declared inside parameter list [enabled by default]
arch/parisc/include/asm/hardware.h:119:57: warning: ‘struct hardware_path’ declared inside parameter list [enabled by default]
Signed-off-by: Rolf Eike Beer <eike-kernel@sf-tec.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/parisc/include/asm/hardware.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/parisc/include/asm/hardware.h b/arch/parisc/include/asm/hardware.h index 4e9626836bab..036e70310fcd 100644 --- a/arch/parisc/include/asm/hardware.h +++ b/arch/parisc/include/asm/hardware.h | |||
@@ -95,12 +95,14 @@ struct bc_module { | |||
95 | #define HPHW_MC 15 | 95 | #define HPHW_MC 15 |
96 | #define HPHW_FAULTY 31 | 96 | #define HPHW_FAULTY 31 |
97 | 97 | ||
98 | struct parisc_device_id; | ||
98 | 99 | ||
99 | /* hardware.c: */ | 100 | /* hardware.c: */ |
100 | extern const char *parisc_hardware_description(struct parisc_device_id *id); | 101 | extern const char *parisc_hardware_description(struct parisc_device_id *id); |
101 | extern enum cpu_type parisc_get_cpu_type(unsigned long hversion); | 102 | extern enum cpu_type parisc_get_cpu_type(unsigned long hversion); |
102 | 103 | ||
103 | struct pci_dev; | 104 | struct pci_dev; |
105 | struct hardware_path; | ||
104 | 106 | ||
105 | /* drivers.c: */ | 107 | /* drivers.c: */ |
106 | extern struct parisc_device *alloc_pa_dev(unsigned long hpa, | 108 | extern struct parisc_device *alloc_pa_dev(unsigned long hpa, |