Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mips: asm-offsets: add missing prototypes

Building with -Werror and W=1 fails entirely because of warnings in
asm-offsets.c:

arch/mips/kernel/asm-offsets.c:26:6: error: no previous prototype for 'output_ptreg_defines' [-Werror=missing-prototypes]
arch/mips/kernel/asm-offsets.c:78:6: error: no previous prototype for 'output_task_defines' [-Werror=missing-prototypes]
arch/mips/kernel/asm-offsets.c:92:6: error: no previous prototype for 'output_thread_info_defines' [-Werror=missing-prototypes]
arch/mips/kernel/asm-offsets.c:108:6: error: no previous prototype for 'output_thread_defines' [-Werror=missing-prototypes]
arch/mips/kernel/asm-offsets.c:136:6: error: no previous prototype for 'output_thread_fpu_defines' [-Werror=missing-prototypes]

Nothing actually calls these functions, so just add prototypes to shut
up the warnings.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>

authored by

Arnd Bergmann and committed by
Thomas Bogendoerfer
dfbd992e 5487a7b6

+14
+14
arch/mips/kernel/asm-offsets.c
··· 23 23 24 24 #include <linux/kvm_host.h> 25 25 26 + void output_ptreg_defines(void); 26 27 void output_ptreg_defines(void) 27 28 { 28 29 COMMENT("MIPS pt_regs offsets."); ··· 76 75 BLANK(); 77 76 } 78 77 78 + void output_task_defines(void); 79 79 void output_task_defines(void) 80 80 { 81 81 COMMENT("MIPS task_struct offsets."); ··· 91 89 BLANK(); 92 90 } 93 91 92 + void output_thread_info_defines(void); 94 93 void output_thread_info_defines(void) 95 94 { 96 95 COMMENT("MIPS thread_info offsets."); ··· 108 105 BLANK(); 109 106 } 110 107 108 + void output_thread_defines(void); 111 109 void output_thread_defines(void) 112 110 { 113 111 COMMENT("MIPS specific thread_struct offsets."); ··· 137 133 } 138 134 139 135 #ifdef CONFIG_MIPS_FP_SUPPORT 136 + void output_thread_fpu_defines(void); 140 137 void output_thread_fpu_defines(void) 141 138 { 142 139 OFFSET(THREAD_FPU, task_struct, thread.fpu); ··· 181 176 } 182 177 #endif 183 178 179 + void output_mm_defines(void); 184 180 void output_mm_defines(void) 185 181 { 186 182 COMMENT("Size of struct page"); ··· 216 210 } 217 211 218 212 #ifdef CONFIG_32BIT 213 + void output_sc_defines(void); 219 214 void output_sc_defines(void) 220 215 { 221 216 COMMENT("Linux sigcontext offsets."); ··· 239 232 #endif 240 233 241 234 #ifdef CONFIG_64BIT 235 + void output_sc_defines(void); 242 236 void output_sc_defines(void) 243 237 { 244 238 COMMENT("Linux sigcontext offsets."); ··· 253 245 } 254 246 #endif 255 247 248 + void output_signal_defined(void); 256 249 void output_signal_defined(void) 257 250 { 258 251 COMMENT("Linux signal numbers."); ··· 293 284 } 294 285 295 286 #ifdef CONFIG_CPU_CAVIUM_OCTEON 287 + void output_octeon_cop2_state_defines(void); 296 288 void output_octeon_cop2_state_defines(void) 297 289 { 298 290 COMMENT("Octeon specific octeon_cop2_state offsets."); ··· 325 315 #endif 326 316 327 317 #ifdef CONFIG_HIBERNATION 318 + void output_pbe_defines(void); 328 319 void output_pbe_defines(void) 329 320 { 330 321 COMMENT(" Linux struct pbe offsets. "); ··· 338 327 #endif 339 328 340 329 #ifdef CONFIG_CPU_PM 330 + void output_pm_defines(void); 341 331 void output_pm_defines(void) 342 332 { 343 333 COMMENT(" PM offsets. "); ··· 353 341 #endif 354 342 355 343 #ifdef CONFIG_MIPS_FP_SUPPORT 344 + void output_kvm_defines(void); 356 345 void output_kvm_defines(void) 357 346 { 358 347 COMMENT(" KVM/MIPS Specific offsets. "); ··· 398 385 #endif 399 386 400 387 #ifdef CONFIG_MIPS_CPS 388 + void output_cps_defines(void); 401 389 void output_cps_defines(void) 402 390 { 403 391 COMMENT(" MIPS CPS offsets. ");