hardkernel / linux

Linux kernel source tree
Other
427 stars 408 forks source link

Bug on compilation #238

Open alphaonex86 opened 7 years ago

alphaonex86 commented 7 years ago

include/linux/dma-contiguous.h: In function 'dma_get_cma_size_int_byte': include/linux/dma-contiguous.h:147:70: error: expected ';' before '}' token unsigned long dma_get_cma_size_int_byte(struct device *dev) {return 0}; Fixed missing ";"

But now I have: arch/arm64/mm/init.o: In function dma_get_cma_size_int_byte': init.c:(.text+0x30): multiple definition ofdma_get_cma_size_int_byte' arch/arm64/mm/dma-mapping.o:dma-mapping.c:(.text+0x908): first defined here scripts/Makefile.build:387: recipe for target 'arch/arm64/mm/built-in.o' failed

mdrjr commented 7 years ago

More details please.. Provided defconfig? GCC ?

alphaonex86 commented 7 years ago

Not the def config (I need some config into =y not =m): http://pastebin.com/1gukuXDF Gcc version 5.4.0

f1vefour commented 7 years ago

That's the issue, GCC 5.y

alphaonex86 commented 7 years ago

Due to linux kernel or hardkernel patch?

bkrepo commented 7 years ago

No, not really. See f6a10cc commit. It is a ugly C syntax mistake.

alphaonex86 commented 7 years ago

Same with gcc version 4.9.3, seam I have already this patch