]> git.baikalelectronics.ru Git - kernel.git/commitdiff
powerpc: Move prom_init() out of asm-prototypes.h
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Sat, 11 Jun 2022 16:55:16 +0000 (18:55 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 20 Jun 2022 01:29:49 +0000 (11:29 +1000)
This is the end of the work started with commit d7d9e972fe02 ("powerpc:
Move C prototypes out of asm-prototypes.h")

Now that asm/machdep.h doesn't include asm/setup.h anymore, there are
no conflicts anymore with the function prom_init() defined in
drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowrom.o

So we can move it to asm/setup.h

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/e111e4f0addb0fa810d5f6a71d3b8e62c0b53492.1654966508.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/asm-prototypes.h
arch/powerpc/include/asm/setup.h

index d995c65d18ab30f474bc8b3baca1e0c109ae5d33..3b2bbc273055388f471e4821bdd2ae813be6b4eb 100644 (file)
@@ -34,12 +34,6 @@ int64_t __opal_call(int64_t a0, int64_t a1, int64_t a2, int64_t a3,
                    int64_t a4, int64_t a5, int64_t a6, int64_t a7,
                    int64_t opcode, uint64_t msr);
 
-/* prom_init (OpenFirmware) */
-unsigned long __init prom_init(unsigned long r3, unsigned long r4,
-                              unsigned long pp,
-                              unsigned long r6, unsigned long r7,
-                              unsigned long kbase);
-
 /* misc runtime */
 extern u64 __bswapdi2(u64);
 extern s64 __lshrdi3(s64, int);
index 8fa37ef5da4d177cc80e9c425a16aec31edb5a88..14a0b8af738e443beb3a0b994c42205e0ef8f33f 100644 (file)
@@ -85,6 +85,11 @@ void __init machine_init(u64 dt_ptr);
 void __init early_setup(unsigned long dt_ptr);
 void early_setup_secondary(void);
 
+/* prom_init (OpenFirmware) */
+unsigned long __init prom_init(unsigned long r3, unsigned long r4,
+                              unsigned long pp, unsigned long r6,
+                              unsigned long r7, unsigned long kbase);
+
 #endif /* !__ASSEMBLY__ */
 
 #endif /* _ASM_POWERPC_SETUP_H */