[PATCH] powerpc: include setup.h header file to fix warnings

From: Mathieu Malaterre
Date: Fri Jun 22 2018 - 15:27:09 EST


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â [-Werror=missing-prototypes]
arch/powerpc/kernel/setup_32.c:238:13: error: no previous prototype for âsetup_power_saveâ [-Werror=missing-prototypes]
arch/powerpc/kernel/setup_32.c:253:13: error: no previous prototype for âinitialize_cache_infoâ [-Werror=missing-prototypes]

Signed-off-by: Mathieu Malaterre <malat@xxxxxxxxxx>
---
arch/powerpc/kernel/setup_32.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/arch/powerpc/kernel/setup_32.c b/arch/powerpc/kernel/setup_32.c
index 74457485574b..9827b6b3aaaa 100644
--- a/arch/powerpc/kernel/setup_32.c
+++ b/arch/powerpc/kernel/setup_32.c
@@ -41,6 +41,8 @@
#include <asm/cpu_has_feature.h>
#include <asm/asm-prototypes.h>

+#include "setup.h"
+
#define DBG(fmt...)

extern void bootx_init(unsigned long r4, unsigned long phys);
--
2.11.0