浏览代码

powerpc: fix includes in asm/processor.h

Remove superflous includes and add missing ones

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Christophe Leroy 7 年之前
父节点
当前提交
62b8426578
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 1 0
      arch/powerpc/include/asm/hw_breakpoint.h
  2. 2 3
      arch/powerpc/include/asm/processor.h

+ 1 - 0
arch/powerpc/include/asm/hw_breakpoint.h

@@ -55,6 +55,7 @@ struct arch_hw_breakpoint {
 struct perf_event;
 struct pmu;
 struct perf_sample_data;
+struct task_struct;
 
 #define HW_BREAKPOINT_ALIGN 0x7
 

+ 2 - 3
arch/powerpc/include/asm/processor.h

@@ -39,10 +39,9 @@
 #endif /* CONFIG_PPC64 */
 
 #ifndef __ASSEMBLY__
-#include <linux/compiler.h>
-#include <linux/cache.h>
+#include <linux/types.h>
+#include <asm/thread_info.h>
 #include <asm/ptrace.h>
-#include <asm/types.h>
 #include <asm/hw_breakpoint.h>
 
 /* We do _not_ want to define new machine types at all, those must die