]> git.baikalelectronics.ru Git - kernel.git/commitdiff
powerpc: Don't include asm/ppc_asm.h in other headers
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Fri, 6 May 2022 09:14:25 +0000 (11:14 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 29 Jun 2022 06:45:13 +0000 (16:45 +1000)
asm/ppc_asm.h is not needed in any of the header it is included.

It is only needed by irq.c. Include it there and remove it from
other headers.

word-at-a-time.h only need ex_table.h, so include it instead.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/e2d7b96547037f852c7ed164e4f79e8918c2607a.1651828453.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/io.h
arch/powerpc/include/asm/uaccess.h
arch/powerpc/include/asm/word-at-a-time.h
arch/powerpc/kernel/irq.c

index c5a5f7c9b231d6aff9c9c163f5f0e2a87fcb6d79..9b07133c3bd1c6bb43c6f67aa7234ec9a9e413c6 100644 (file)
@@ -33,7 +33,6 @@ extern struct pci_dev *isa_bridge_pcidev;
 #include <asm/delay.h>
 #include <asm/mmiowb.h>
 #include <asm/mmu.h>
-#include <asm/ppc_asm.h>
 
 #define SIO_CONFIG_RA  0x398
 #define SIO_CONFIG_RD  0x399
index 9b82b38ff867ba769826411685ab150d6627944d..14a08806f8e85a0652a6ccdeccf94cf350945e20 100644 (file)
@@ -2,7 +2,6 @@
 #ifndef _ARCH_POWERPC_UACCESS_H
 #define _ARCH_POWERPC_UACCESS_H
 
-#include <asm/ppc_asm.h>
 #include <asm/processor.h>
 #include <asm/page.h>
 #include <asm/extable.h>
index f3f4710d4ff522d562cc62085d814944d8b17639..46c31fb8748d554e084e8f383734da06d9e7a7eb 100644 (file)
@@ -7,7 +7,7 @@
 
 #include <linux/kernel.h>
 #include <asm/asm-compat.h>
-#include <asm/ppc_asm.h>
+#include <asm/extable.h>
 
 #ifdef __BIG_ENDIAN__
 
index dd09919c3c66844c61e431f81942cbabde9c34d7..4db27198b0024895d2e57dcf825cc0ec662f68ef 100644 (file)
@@ -65,6 +65,7 @@
 #include <asm/smp.h>
 #include <asm/hw_irq.h>
 #include <asm/softirq_stack.h>
+#include <asm/ppc_asm.h>
 
 #ifdef CONFIG_PPC64
 #include <asm/paca.h>