Browse Source

common: Drop asm/ptrace.h from common header

Move this uncommon header out of the common header.

Signed-off-by: Simon Glass <sjg@chromium.org>
Simon Glass 4 years ago
parent
commit
25a5818ff8
39 changed files with 38 additions and 1 deletions
  1. 1 0
      arch/arm/cpu/arm1136/mx35/timer.c
  2. 1 0
      arch/arm/cpu/arm926ejs/mx25/timer.c
  3. 1 0
      arch/arm/cpu/arm926ejs/mx27/timer.c
  4. 1 0
      arch/arm/cpu/arm926ejs/spear/spl.c
  5. 1 0
      arch/arm/cpu/arm926ejs/spear/timer.c
  6. 1 0
      arch/arm/cpu/armv8/fsl-layerscape/cpu.c
  7. 1 0
      arch/arm/cpu/armv8/sec_firmware.c
  8. 1 0
      arch/arm/lib/interrupts.c
  9. 1 0
      arch/arm/lib/interrupts_64.c
  10. 1 0
      arch/arm/mach-imx/sip.c
  11. 1 0
      arch/arm/mach-meson/board-common.c
  12. 1 0
      arch/arm/mach-meson/sm.c
  13. 1 0
      arch/arm/mach-mvebu/arm64-common.c
  14. 1 0
      arch/arm/mach-mvebu/armada8k/dram.c
  15. 1 0
      arch/m68k/lib/interrupts.c
  16. 1 0
      arch/m68k/lib/traps.c
  17. 1 0
      arch/mips/lib/traps.c
  18. 1 0
      arch/powerpc/cpu/mpc83xx/interrupts.c
  19. 1 0
      arch/powerpc/cpu/mpc83xx/traps.c
  20. 1 0
      arch/powerpc/cpu/mpc85xx/interrupts.c
  21. 1 0
      arch/powerpc/cpu/mpc85xx/traps.c
  22. 1 0
      arch/powerpc/cpu/mpc86xx/interrupts.c
  23. 1 0
      arch/powerpc/cpu/mpc86xx/traps.c
  24. 1 0
      arch/powerpc/cpu/mpc8xx/interrupts.c
  25. 1 0
      arch/powerpc/cpu/mpc8xx/traps.c
  26. 1 0
      arch/powerpc/lib/interrupts.c
  27. 1 0
      arch/powerpc/lib/kgdb.c
  28. 1 0
      arch/x86/cpu/i386/interrupt.c
  29. 1 0
      arch/xtensa/cpu/exceptions.c
  30. 1 0
      board/cavium/thunderx/atf.c
  31. 1 0
      board/xilinx/zynqmp/zynqmp.c
  32. 1 0
      cmd/bedbug.c
  33. 1 0
      common/bedbug.c
  34. 1 0
      common/kgdb.c
  35. 1 0
      common/kgdb_stubs.c
  36. 1 0
      drivers/clk/clk_versal.c
  37. 1 0
      drivers/firmware/firmware-zynqmp.c
  38. 1 0
      drivers/timer/mpc83xx_timer.c
  39. 0 1
      include/common.h

+ 1 - 0
arch/arm/cpu/arm1136/mx35/timer.c

@@ -11,6 +11,7 @@
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/crm_regs.h>
+#include <asm/ptrace.h>
 
 /* General purpose timers bitfields */
 #define GPTCR_SWR       (1<<15)	/* Software reset */

+ 1 - 0
arch/arm/cpu/arm926ejs/mx25/timer.c

@@ -23,6 +23,7 @@
 #include <init.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
+#include <asm/ptrace.h>
 
 /* nothing really to do with interrupts, just starts up a counter. */
 /* The 32KHz 32-bit timer overruns in 134217 seconds */

+ 1 - 0
arch/arm/cpu/arm926ejs/mx27/timer.c

@@ -21,6 +21,7 @@
 #include <time.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
+#include <asm/ptrace.h>
 
 /* General purpose timers bitfields */
 #define GPTCR_SWR		(1 << 15)	/* Software reset	*/

+ 1 - 0
arch/arm/cpu/arm926ejs/spear/spl.c

@@ -11,6 +11,7 @@
 #include <spl.h>
 #include <version.h>
 #include <asm/io.h>
+#include <asm/ptrace.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/spr_defs.h>
 #include <asm/arch/spr_misc.h>

+ 1 - 0
arch/arm/cpu/arm926ejs/spear/timer.c

@@ -11,6 +11,7 @@
 #include <asm/arch/hardware.h>
 #include <asm/arch/spr_gpt.h>
 #include <asm/arch/spr_misc.h>
+#include <asm/ptrace.h>
 
 #define GPT_RESOLUTION	(CONFIG_SPEAR_HZ_CLOCK / CONFIG_SPEAR_HZ)
 #define READ_TIMER()	(readl(&gpt_regs_p->count) & GPT_FREE_RUNNING)

+ 1 - 0
arch/arm/cpu/armv8/fsl-layerscape/cpu.c

@@ -15,6 +15,7 @@
 #include <vsprintf.h>
 #include <asm/cache.h>
 #include <asm/io.h>
+#include <asm/ptrace.h>
 #include <linux/errno.h>
 #include <asm/system.h>
 #include <fm_eth.h>

+ 1 - 0
arch/arm/cpu/armv8/sec_firmware.c

@@ -10,6 +10,7 @@
 #include <image.h>
 #include <log.h>
 #include <asm/cache.h>
+#include <asm/ptrace.h>
 #include <linux/kernel.h>
 #include <asm/io.h>
 #include <asm/system.h>

+ 1 - 0
arch/arm/lib/interrupts.c

@@ -23,6 +23,7 @@
 #include <efi_loader.h>
 #include <irq_func.h>
 #include <asm/proc-armv/ptrace.h>
+#include <asm/ptrace.h>
 #include <asm/u-boot-arm.h>
 
 DECLARE_GLOBAL_DATA_PTR;

+ 1 - 0
arch/arm/lib/interrupts_64.c

@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <asm/ptrace.h>
 #include <irq_func.h>
 #include <linux/compiler.h>
 #include <efi_loader.h>

+ 1 - 0
arch/arm/mach-imx/sip.c

@@ -6,6 +6,7 @@
 #include <common.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/cache.h>
+#include <asm/ptrace.h>
 
 unsigned long call_imx_sip(unsigned long id, unsigned long reg0,
 			   unsigned long reg1, unsigned long reg2,

+ 1 - 0
arch/arm/mach-meson/board-common.c

@@ -10,6 +10,7 @@
 #include <asm/arch/boot.h>
 #include <env.h>
 #include <asm/cache.h>
+#include <asm/ptrace.h>
 #include <linux/libfdt.h>
 #include <linux/err.h>
 #include <asm/arch/mem.h>

+ 1 - 0
arch/arm/mach-meson/sm.c

@@ -11,6 +11,7 @@
 #include <log.h>
 #include <asm/arch/sm.h>
 #include <asm/cache.h>
+#include <asm/ptrace.h>
 #include <linux/err.h>
 #include <linux/kernel.h>
 #include <dm.h>

+ 1 - 0
arch/arm/mach-mvebu/arm64-common.c

@@ -8,6 +8,7 @@
 #include <fdtdec.h>
 #include <init.h>
 #include <asm/cache.h>
+#include <asm/ptrace.h>
 #include <linux/libfdt.h>
 #include <linux/sizes.h>
 #include <pci.h>

+ 1 - 0
arch/arm/mach-mvebu/armada8k/dram.c

@@ -6,6 +6,7 @@
 #include <common.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
+#include <asm/ptrace.h>
 #include <asm/system.h>
 #include <linux/sizes.h>
 

+ 1 - 0
arch/m68k/lib/interrupts.c

@@ -12,6 +12,7 @@
 #include <watchdog.h>
 #include <asm/processor.h>
 #include <asm/immap.h>
+#include <asm/ptrace.h>
 
 #define	NR_IRQS		(CONFIG_SYS_NUM_IRQS)
 

+ 1 - 0
arch/m68k/lib/traps.c

@@ -12,6 +12,7 @@
 #include <watchdog.h>
 #include <command.h>
 #include <asm/processor.h>
+#include <asm/ptrace.h>
 
 
 extern void _exc_handler(void);

+ 1 - 0
arch/mips/lib/traps.c

@@ -11,6 +11,7 @@
  */
 
 #include <common.h>
+#include <asm/ptrace.h>
 #include <cpu_func.h>
 #include <hang.h>
 #include <init.h>

+ 1 - 0
arch/powerpc/cpu/mpc83xx/interrupts.c

@@ -11,6 +11,7 @@
 #include <irq_func.h>
 #include <mpc83xx.h>
 #include <asm/processor.h>
+#include <asm/ptrace.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 

+ 1 - 0
arch/powerpc/cpu/mpc83xx/traps.c

@@ -12,6 +12,7 @@
  */
 
 #include <common.h>
+#include <asm/ptrace.h>
 #include <command.h>
 #include <kgdb.h>
 #include <asm/processor.h>

+ 1 - 0
arch/powerpc/cpu/mpc85xx/interrupts.c

@@ -21,6 +21,7 @@
 #ifdef CONFIG_POST
 #include <post.h>
 #endif
+#include <asm/ptrace.h>
 
 void interrupt_init_cpu(unsigned *decrementer_count)
 {

+ 1 - 0
arch/powerpc/cpu/mpc85xx/traps.c

@@ -20,6 +20,7 @@
  */
 
 #include <common.h>
+#include <asm/ptrace.h>
 #include <command.h>
 #include <init.h>
 #include <irq_func.h>

+ 1 - 0
arch/powerpc/cpu/mpc86xx/interrupts.c

@@ -24,6 +24,7 @@
 #ifdef CONFIG_POST
 #include <post.h>
 #endif
+#include <asm/ptrace.h>
 
 void interrupt_init_cpu(unsigned *decrementer_count)
 {

+ 1 - 0
arch/powerpc/cpu/mpc86xx/traps.c

@@ -14,6 +14,7 @@
  */
 
 #include <common.h>
+#include <asm/ptrace.h>
 #include <command.h>
 #include <init.h>
 #include <kgdb.h>

+ 1 - 0
arch/powerpc/cpu/mpc8xx/interrupts.c

@@ -12,6 +12,7 @@
 #include <asm/cpm_8xx.h>
 #include <asm/processor.h>
 #include <asm/io.h>
+#include <asm/ptrace.h>
 
 /************************************************************************/
 

+ 1 - 0
arch/powerpc/cpu/mpc8xx/traps.c

@@ -16,6 +16,7 @@
  */
 
 #include <common.h>
+#include <asm/ptrace.h>
 #include <command.h>
 #include <asm/processor.h>
 

+ 1 - 0
arch/powerpc/lib/interrupts.c

@@ -14,6 +14,7 @@
 #ifdef CONFIG_LED_STATUS
 #include <status_led.h>
 #endif
+#include <asm/ptrace.h>
 
 #ifndef CONFIG_MPC83XX_TIMER
 #ifndef CONFIG_SYS_WATCHDOG_FREQ

+ 1 - 0
arch/powerpc/lib/kgdb.c

@@ -1,6 +1,7 @@
 #include <common.h>
 #include <command.h>
 #include <kgdb.h>
+#include <asm/ptrace.h>
 #include <asm/signal.h>
 #include <asm/processor.h>
 

+ 1 - 0
arch/x86/cpu/i386/interrupt.c

@@ -23,6 +23,7 @@
 #include <asm/io.h>
 #include <asm/lapic.h>
 #include <asm/processor-flags.h>
+#include <asm/ptrace.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 

+ 1 - 0
arch/xtensa/cpu/exceptions.c

@@ -13,6 +13,7 @@
 #include <common.h>
 #include <command.h>
 #include <irq_func.h>
+#include <asm/ptrace.h>
 #include <asm/string.h>
 #include <asm/regs.h>
 

+ 1 - 0
board/cavium/thunderx/atf.c

@@ -7,6 +7,7 @@
 #include <command.h>
 #include <asm/cache.h>
 #include <asm/io.h>
+#include <asm/ptrace.h>
 
 #include <asm/system.h>
 #include <cavium/thunderx_svc.h>

+ 1 - 0
board/xilinx/zynqmp/zynqmp.c

@@ -23,6 +23,7 @@
 #include <asm/arch/psu_init_gpl.h>
 #include <asm/cache.h>
 #include <asm/io.h>
+#include <asm/ptrace.h>
 #include <dm/device.h>
 #include <dm/uclass.h>
 #include <usb.h>

+ 1 - 0
cmd/bedbug.c

@@ -6,6 +6,7 @@
 #include <cli.h>
 #include <command.h>
 #include <console.h>
+#include <asm/ptrace.h>
 #include <linux/ctype.h>
 #include <net.h>
 #include <bedbug/type.h>

+ 1 - 0
common/bedbug.c

@@ -1,6 +1,7 @@
 /* $Id$ */
 
 #include <common.h>
+#include <asm/ptrace.h>
 
 #include <linux/ctype.h>
 #include <bedbug/bedbug.h>

+ 1 - 0
common/kgdb.c

@@ -88,6 +88,7 @@
  ****************************************************************************/
 
 #include <common.h>
+#include <asm/ptrace.h>
 
 #include <kgdb.h>
 #include <command.h>

+ 1 - 0
common/kgdb_stubs.c

@@ -11,6 +11,7 @@
 #include <cpu_func.h>
 #include <kgdb.h>
 #include <serial.h>
+#include <asm/ptrace.h>
 
 int (*debugger_exception_handler)(struct pt_regs *);
 

+ 1 - 0
drivers/clk/clk_versal.c

@@ -7,6 +7,7 @@
 #include <common.h>
 #include <log.h>
 #include <asm/cache.h>
+#include <asm/ptrace.h>
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
 #include <linux/bitfield.h>

+ 1 - 0
drivers/firmware/firmware-zynqmp.c

@@ -10,6 +10,7 @@
 #include <log.h>
 #include <zynqmp_firmware.h>
 #include <asm/cache.h>
+#include <asm/ptrace.h>
 
 #if defined(CONFIG_ZYNQMP_IPI)
 #include <mailbox.h>

+ 1 - 0
drivers/timer/mpc83xx_timer.c

@@ -14,6 +14,7 @@
 #include <time.h>
 #include <timer.h>
 #include <watchdog.h>
+#include <asm/ptrace.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 

+ 0 - 1
include/common.h

@@ -24,7 +24,6 @@
 #include <linux/printk.h>
 #include <linux/string.h>
 #include <linux/stringify.h>
-#include <asm/ptrace.h>
 #include <stdarg.h>
 #include <stdio.h>
 #include <linux/kernel.h>