]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
c6x: include: asm: setup: Include "linux/types.h"
authorChen Gang <xili_gchen_5257@hotmail.com>
Tue, 3 Mar 2015 22:06:26 +0000 (06:06 +0800)
committerMark Salter <msalter@redhat.com>
Thu, 26 Mar 2015 14:39:46 +0000 (10:39 -0400)
Some modules may assume "asm/setup.h" already include all headers which
needed by itself. So need let "asm/setup.h" include "linux/types.h", the
related error:

  C [M]  drivers/input/joydev.o
  In file included from include/asm-generic/page.h:23:0,
                   from ./arch/c6x/include/asm/page.h:9,
                   from include/asm-generic/io.h:14,
                   from arch/c6x/include/generated/asm/io.h:1,
                   from drivers/input/joydev.c:15:
  ./arch/c6x/include/asm/setup.h:17:27: error: unknown type name 'phys_addr_t'
   extern int c6x_add_memory(phys_addr_t start, unsigned long size);
                             ^

Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
Signed-off-by: Mark Salter <msalter@redhat.com>
arch/c6x/include/asm/setup.h

index 696804475f551034c48a81ca1e81b8c9d355d55a..852afb209afbc2505d0bb7c6b6e39819297b646e 100644 (file)
@@ -12,6 +12,7 @@
 #define _ASM_C6X_SETUP_H
 
 #include <uapi/asm/setup.h>
+#include <linux/types.h>
 
 #ifndef __ASSEMBLY__
 extern int c6x_add_memory(phys_addr_t start, unsigned long size);