diff options
author | Mathieu Malaterre <malat@debian.org> | 2018-03-08 12:31:59 +0100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-03-13 05:50:42 +0100 |
commit | e82d70cf965072a3872ea97b7d8df4b6f29fc09f (patch) | |
tree | b6f6ffb1c69b6cdc51dd4b8acafcf5b69f6d4402 /arch/powerpc/kernel/setup_32.c | |
parent | powerpc/32: Make some functions static (diff) | |
download | linux-e82d70cf965072a3872ea97b7d8df4b6f29fc09f.tar.xz linux-e82d70cf965072a3872ea97b7d8df4b6f29fc09f.zip |
powerpc/32: Add missing prototypes for (early|machine)_init()
early_init() and machine_init() have no prototype, add one in
asm-prototypes.h.
Fixes the following warnings (treated as error in W=1):
arch/powerpc/kernel/setup_32.c:68:30: error: no previous prototype for ‘early_init’
arch/powerpc/kernel/setup_32.c:99:21: error: no previous prototype for ‘machine_init’
Signed-off-by: Mathieu Malaterre <malat@debian.org>
[mpe: Move them to asm-prototypes.h, drop other functions]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/kernel/setup_32.c')
-rw-r--r-- | arch/powerpc/kernel/setup_32.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/setup_32.c b/arch/powerpc/kernel/setup_32.c index 57b668412e9c..74457485574b 100644 --- a/arch/powerpc/kernel/setup_32.c +++ b/arch/powerpc/kernel/setup_32.c @@ -39,6 +39,7 @@ #include <asm/udbg.h> #include <asm/code-patching.h> #include <asm/cpu_has_feature.h> +#include <asm/asm-prototypes.h> #define DBG(fmt...) |