summaryrefslogtreecommitdiffstats
path: root/arch/c6x
diff options
context:
space:
mode:
authorChen Gang <762976180@qq.com>2015-03-03 06:33:42 +0800
committerMark Salter <msalter@redhat.com>2015-03-26 10:31:47 -0400
commit1d2a64bd2da6034036fff9ad9b41682516f79fa3 (patch)
tree4d79ec936185c586826bf96eb1aa7ecc4db21348 /arch/c6x
parentf4831605f2dacd12730fe73961c77253cc2ea425 (diff)
downloadlinux-stable-1d2a64bd2da6034036fff9ad9b41682516f79fa3.tar.gz
linux-stable-1d2a64bd2da6034036fff9ad9b41682516f79fa3.tar.bz2
linux-stable-1d2a64bd2da6034036fff9ad9b41682516f79fa3.zip
c6x: Makefile: Add -D__linux__
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>
Diffstat (limited to 'arch/c6x')
-rw-r--r--arch/c6x/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/c6x/Makefile b/arch/c6x/Makefile
index e72eb3417239..6b0be670ddfa 100644
--- a/arch/c6x/Makefile
+++ b/arch/c6x/Makefile
@@ -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