Explorar o código

[ARM] 4496/1: elf_hwcap: fix up #include misplacement

While bisecting an iop13xx compile failure I noticed that
include/asm-arm/hwcap.h should be included from include/asm-arm/elf.h
outside #ifndef __ASSEMBLY__ since hwcap.h has its own __ASSEMBLY__
protections.

Cc: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Dan Williams %!s(int64=18) %!d(string=hai) anos
pai
achega
f393e99d9e
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      include/asm-arm/elf.h

+ 2 - 1
include/asm-arm/elf.h

@@ -1,13 +1,14 @@
 #ifndef __ASMARM_ELF_H
 #ifndef __ASMARM_ELF_H
 #define __ASMARM_ELF_H
 #define __ASMARM_ELF_H
 
 
+#include <asm/hwcap.h>
+
 #ifndef __ASSEMBLY__
 #ifndef __ASSEMBLY__
 /*
 /*
  * ELF register definitions..
  * ELF register definitions..
  */
  */
 #include <asm/ptrace.h>
 #include <asm/ptrace.h>
 #include <asm/user.h>
 #include <asm/user.h>
-#include <asm/hwcap.h>
 
 
 typedef unsigned long elf_greg_t;
 typedef unsigned long elf_greg_t;
 typedef unsigned long elf_freg_t[3];
 typedef unsigned long elf_freg_t[3];