]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
powerpc/32: Include setup.h header file to fix warnings
authorMathieu Malaterre <malat@debian.org>
Fri, 22 Jun 2018 19:26:53 +0000 (21:26 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 10 Aug 2018 12:12:38 +0000 (22:12 +1000)
Make sure to include setup.h to provide the following prototypes:

  - irqstack_early_init
  - setup_power_save
  - initialize_cache_info

Fix the following warnings (treated as error in W=1):

  arch/powerpc/kernel/setup_32.c:198:13: error: no previous prototype for ‘irqstack_early_init’
  arch/powerpc/kernel/setup_32.c:238:13: error: no previous prototype for ‘setup_power_save’
  arch/powerpc/kernel/setup_32.c:253:13: error: no previous prototype for ‘initialize_cache_info’

Signed-off-by: Mathieu Malaterre <malat@debian.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/setup_32.c

index ba969278bf4da194679c54ebb8084547c49cff61..8c507be12c3c342085bfe4c765b17725501f0a0a 100644 (file)
@@ -43,6 +43,8 @@
 #include <asm/kdump.h>
 #include <asm/feature-fixups.h>
 
+#include "setup.h"
+
 #define DBG(fmt...)
 
 extern void bootx_init(unsigned long r4, unsigned long phys);