Re: [PATCH] blackfin: Makefile: Add -D__linux__ flag for KBUILD_CFLAGS

2015-04-04 Thread Chen Gang
On 4/5/15 05:17, Richard Weinberger wrote: > Am 04.04.2015 um 23:13 schrieb Chen Gang: >> Is what I have done above correct? Or can we treate it as gcc's issue? > > At least ask gcc folks about that before you add a random hack to the kernel. > For the latest compiler, it should contents -D__lin

Re: [PATCH] blackfin: Makefile: Add -D__linux__ flag for KBUILD_CFLAGS

2015-04-04 Thread Richard Weinberger
Am 04.04.2015 um 23:13 schrieb Chen Gang: > Is what I have done above correct? Or can we treate it as gcc's issue? At least ask gcc folks about that before you add a random hack to the kernel. Thanks, //richard -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body

Re: [PATCH] blackfin: Makefile: Add -D__linux__ flag for KBUILD_CFLAGS

2015-04-04 Thread Chen Gang
On 4/4/15 06:56, Richard Weinberger wrote: > On Fri, Apr 3, 2015 at 10:19 PM, Chen Gang > wrote: >> The related error with allmodconfig: > > BTW: How do you generate this allmodconfig? > "make allmodconfig ARCH=blackfin" cannot work as you need to specify a > board... > [...] > Hmm, what compi

Re: [PATCH] blackfin: Makefile: Add -D__linux__ flag for KBUILD_CFLAGS

2015-04-03 Thread Richard Weinberger
On Fri, Apr 3, 2015 at 10:19 PM, Chen Gang wrote: > The related error with allmodconfig: BTW: How do you generate this allmodconfig? "make allmodconfig ARCH=blackfin" cannot work as you need to specify a board... > CC [M] fs/coda/psdev.o > In file included from include/linux/coda.h:64:0,

[PATCH] blackfin: Makefile: Add -D__linux__ flag for KBUILD_CFLAGS

2015-04-03 Thread Chen Gang
The related error with allmodconfig: 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