https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102952
--- Comment #12 from H.J. Lu <hjl.tools at gmail dot com> --- (In reply to peterz from comment #9) > Created attachment 51683 [details] > kernel patch to test -mharden-sls=all > > $ make O=defconfig CC=gcc-12.0.0 arch/x86/entry/common.o > ... > arch/x86/entry/common.o: warning: objtool: do_SYSENTER_32()+0x1b: > unreachable instruction Please try the v2 patch.