diff -drupN a/include/linux/compiler.h b/include/linux/compiler.h --- a/include/linux/compiler.h 2018-08-06 17:23:04.000000000 +0300 +++ b/include/linux/compiler.h 2022-06-12 05:28:14.000000000 +0300 @@ -451,6 +451,14 @@ static __always_inline void __write_once #define __visible #endif +#ifndef __norecordmcount +#define __norecordmcount +#endif + +#ifndef __nocfi +#define __nocfi +#endif + /* * Assume alignment of return value. */