On 2020/12/31 9:45, Hanjun Guo wrote:
On 2020/12/30 15:17, Hanjun Guo wrote:
On 2020/12/30 15:02, Bixuan Cui wrote:
On 2020/12/23 15:33, Zhengyuan Liu wrote:
MAP_PA32BIT was defined in uapi/asm-generic/mman.h, that was not automatically included by mm/mmap.c when building on mips platform, and result in following compiling error:
mm/mmap.c: In function ‘do_mmap’: mm/mmap.c:1450:14: error: ‘MAP_PA32BIT’ undeclared (first use in this function); did you mean ‘MAP_32BIT’? if (flags & MAP_PA32BIT) ^~~~~~~~~~~ MAP_32BIT mm/mmap.c:1450:14: note: each undeclared identifier is reported only once for each function it appears in make[1]: *** [scripts/Makefile.build:303: mm/mmap.o] Error 1
hello, The compile error also occurs on the xtensa/alpha/powerpc/parisc/sparc platform. can you fix it?
Can we just use MAP_PA32BIT for ARM64 and x86 only? then we don't need to update multi platforms.
I think we need fix this issue as Zhengyuan did, withdraw my comments above.
I agree, we just apply this patch for mips. And, could Bixuan give a fix for other archs?
Thanks Hanjun .