编译出错 --- -Werror=format=
./include/linux/kern_levels.h:5:18: error: format '%llx' expects argument of type 'long long unsigned int',
but argument 3 has type 'phys_addr_t' {aka 'unsigned int'} [-Werror=format=]
可以通过修改编译选项,加上 -Wno-format 即可,如:
KBUILD_CFLAGS := -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs \ -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE \ -Werror=implicit-function-declaration -Werror=implicit-int \ -Werror=return-type -Wno-format \ -std=gnu89

浙公网安备 33010602011771号