]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
c6x: Makefile: Add -D__linux__
authorChen Gang <762976180@qq.com>
Mon, 2 Mar 2015 22:33:42 +0000 (06:33 +0800)
committerMark Salter <msalter@redhat.com>
Thu, 26 Mar 2015 14:31:47 +0000 (10:31 -0400)
For gcc5 c6x raw compiler, at present, it may not define __linux__, so
c6x kernel still needs to define __linux__ just like another archs have
done. The related error:

  CC [M]  fs/coda/psdev.o
In file included from include/linux/coda.h:64:0,
                 from fs/coda/psdev.c:45:
include/uapi/linux/coda.h:221:2: error: unknown type name 'u_quad_t'
  u_quad_t va_size; /* file size in bytes */
  ^
include/uapi/linux/coda.h:229:2: error: unknown type name 'u_quad_t'
  u_quad_t va_bytes; /* bytes of disk space held by file */
  ^
include/uapi/linux/coda.h:230:2: error: unknown type name 'u_quad_t'
  u_quad_t va_filerev; /* file modification number */
  ^

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

index e72eb3417239af97b51a857e3021d48eeea2c255..6b0be670ddfabc5c49c64320f8be1fe455ba9acf 100644 (file)
@@ -8,7 +8,7 @@
 
 KBUILD_DEFCONFIG := dsk6455_defconfig
 
-cflags-y += -mno-dsbt -msdata=none
+cflags-y += -mno-dsbt -msdata=none -D__linux__
 
 cflags-$(CONFIG_C6X_BIG_KERNEL) += -mlong-calls