The previous approaches to turning off the objtool warnings did not
work for x86_64 RHEL9. The systemtap generated code is not on the
whitelist to use certain kernel functions. The additional objtool
warning output mentioning the systemtap code using those functions
with UACCESS enabled caused a number of the tests in the testsuite to
fail. The generated Makefile now includes a line to turn off running
objtool on the systemtap generated module and eliminates those
warnings.
if (s.verbose > 6)
redirecterrors = "";
+ // PR30716 Turn off objtool
+ o << "OBJECT_FILES_NON_STANDARD:=y" << endl;
// Support O= (or KBUILD_OUTPUT) option
// but flags= filter was removed from kernel scripts/Kbuild.include mid-2019
o << "_KBUILD_CFLAGS := $(call flags,KBUILD_CFLAGS) $(KBUILD_CFLAGS)" << endl;