zhangbbbb 发表于 2020-4-27 14:52:47

px30 内核aufs 打补丁,编译报错

AUFS打完补丁,内核重新编译出错如下:
fs/aufs/vdir.c: In function 'seek_vdir':
fs/aufs/debug.h:95:19: warning: comparison of constant '0' with boolean expression is always false [-Wbool-compare]
error, forbidden warning:debug.h:95
if (unlikely((e) < 0)) \
                   ^
include/linux/compiler.h:166:42: note: in definition of macro 'unlikely'
# define unlikely(x) __builtin_expect(!!(x), 0)
                                          ^
fs/aufs/vdir.c:843:2: note: in expansion of macro 'AuTraceErr'
AuTraceErr(!valid);
^~~~~~~~~~
scripts/Makefile.build:277: recipe for target 'fs/aufs/vdir.o' failed
make: *** Error 1
make: *** Waiting for unfinished jobs....
CC      security/commoncap.o
scripts/Makefile.build:484: recipe for target 'fs/aufs' failed
make: *** Error 2
Makefile:1034: recipe for target 'fs' failed
make: *** Error 2
页: [1]
查看完整版本: px30 内核aufs 打补丁,编译报错