【华为Share】多屏协同和一碰传踩坑分享

linhahanb:

编译驱动文件报错了:

In file included from ./arch/x86/include/asm/preempt.h:6:0,

from ./include/linux/preempt.h:59,

from ./include/linux/spinlock.h:50,

from ./include/linux/seqlock.h:35,

from ./include/linux/time.h:5,

from ./include/linux/stat.h:18,

from ./include/linux/module.h:10,

from /home/book/hello/hello.c:1:

./arch/x86/include/asm/elf.h: In function ‘mmap_is_ia32’:

./include/linux/thread_info.h:108:22: error: implicit declaration of function ‘current_thread_info’; did you mean ‘current_text_addr’? [-Werror=implicit-function-declaration]

test_ti_thread_flag(current_thread_info(), flag)

^

./arch/x86/include/asm/elf.h:351:3: note: in expansion of macro ‘test_thread_flag’

test_thread_flag(TIF_ADDR32));

^~~~~~~~~~~~~~~~

./include/linux/thread_info.h:108:22: warning: passing argument 1 of ‘test_ti_thread_flag’ makes pointer from integer without a c