Hi,
I check to upgrade latest 5.10 kernel (5.10.213), issue on build :
CC fs/hfsplus/xattr_user.o
arch/x86/kernel/paravirt.c: In function 'paravirt_patch_call':
arch/x86/kernel/paravirt.c:65:2: error: implicit declaration of function '__text_gen_insn'; did you mean 'get_gendisk'? [-Werror=implicit-function-declaration]
__text_gen_insn(insn_buff, CALL_INSN_OPCODE,
^~~~~~~~~~~~~~~
get_gendisk
arch/x86/kernel/paravirt.c:65:29: error: 'CALL_INSN_OPCODE' undeclared (first use in this function)
__text_gen_insn(insn_buff, CALL_INSN_OPCODE,
^~~~~~~~~~~~~~~~
arch/x86/kernel/paravirt.c:65:29: note: each undeclared identifier is reported only once for each function it appears in
arch/x86/kernel/paravirt.c:66:26: error: 'CALL_INSN_SIZE' undeclared (first use in this function); did you mean 'ARG_CONST_SIZE'?
(void *)addr, target, CALL_INSN_SIZE);
^~~~~~~~~~~~~~
ARG_CONST_SIZE
arch/x86/kernel/paravirt.c:68:1: error: control reaches end of non-void function [-Werror=return-type]
}
^
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:286: arch/x86/kernel/paravirt.o] Error 1
make[1]: *** [scripts/Makefile.build:503: arch/x86/kernel] Error 2
make: *** [Makefile:1832: arch/x86] Error 2
make: *** Waiting for unfinished jobs....
Found that change come on 5.10.211 about paravirt
"x86/ibt,paravirt: Use text_gen_insn() for paravirt_patch()"
https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.10.211
I try to build 5.15.152, seem ok, need check why 5.15.152 is ok but 5.10.211 no.