tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: f925116b24c0c42dc6d5ab5111c55fd7f74e8dc7 commit: 6d34dba468144e98d20f3e534cb2cd95b434f20e [14010/14039] Merge branch 'kunit' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest.git config: x86_64-rhel-8.3 compiler: gcc-11 (Debian 11.3.0-8) 11.3.0 reproduce (this is a W=1 build): # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=6d34dba468144e98d20f3e534cb2cd95b434f20e git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 6d34dba468144e98d20f3e534cb2cd95b434f20e # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All errors (new ones prefixed by >>): >> security/apparmor/policy_unpack.c:316:18: error: unknown type name 'tri' 316 | VISIBLE_IF_KUNIT tri aa_unpack_array(struct aa_ext *e, const char *name, u16 *size) | ^~~ security/apparmor/policy_unpack.c: In function 'aa_unpack_array': >> security/apparmor/policy_unpack.c:325:24: error: 'TRI_TRUE' undeclared (first use in this function) 325 | return TRI_TRUE; | ^~~~~~~~ security/apparmor/policy_unpack.c:325:24: note: each undeclared identifier is reported only once for each function it appears in >> security/apparmor/policy_unpack.c:328:16: error: 'TRI_NONE' undeclared (first use in this function); did you mean 'IRQ_NONE'? 328 | return TRI_NONE; | ^~~~~~~~ | IRQ_NONE >> security/apparmor/policy_unpack.c:331:16: error: 'TRI_FALSE' undeclared (first use in this function) 331 | return TRI_FALSE; | ^~~~~~~~~ security/apparmor/policy_unpack.c: In function 'unpack_trans_table': security/apparmor/policy_unpack.c:455:56: error: 'TRI_TRUE' undeclared (first use in this function) 455 | if (aa_unpack_array(e, NULL, &size) != TRI_TRUE) | ^~~~~~~~ security/apparmor/policy_unpack.c: In function 'unpack_xattrs': security/apparmor/policy_unpack.c:529:56: error: 'TRI_TRUE' undeclared (first use in this function) 529 | if (aa_unpack_array(e, NULL, &size) != TRI_TRUE) | ^~~~~~~~ security/apparmor/policy_unpack.c: In function 'unpack_secmark': security/apparmor/policy_unpack.c:559:56: error: 'TRI_TRUE' undeclared (first use in this function) 559 | if (aa_unpack_array(e, NULL, &size) != TRI_TRUE) | ^~~~~~~~ security/apparmor/policy_unpack.c: In function 'unpack_rlimits': security/apparmor/policy_unpack.c:611:56: error: 'TRI_TRUE' undeclared (first use in this function) 611 | if (aa_unpack_array(e, NULL, &size) != TRI_TRUE || | ^~~~~~~~ security/apparmor/policy_unpack.c: In function 'unpack_perms_table': security/apparmor/policy_unpack.c:674:56: error: 'TRI_TRUE' undeclared (first use in this function) 674 | if (aa_unpack_array(e, NULL, &size) != TRI_TRUE) | ^~~~~~~~ vim +/tri +316 security/apparmor/policy_unpack.c 315 > 316 VISIBLE_IF_KUNIT tri aa_unpack_array(struct aa_ext *e, const char *name, u16 *size) 317 { 318 void *pos = e->pos; 319 320 if (aa_unpack_nameX(e, AA_ARRAY, name)) { 321 if (!aa_inbounds(e, sizeof(u16))) 322 goto fail; 323 *size = le16_to_cpu(get_unaligned((__le16 *) e->pos)); 324 e->pos += sizeof(u16); > 325 return TRI_TRUE; 326 } 327 > 328 return TRI_NONE; 329 fail: 330 e->pos = pos; > 331 return TRI_FALSE; 332 } 333 EXPORT_SYMBOL_IF_KUNIT(aa_unpack_array); 334 -- 0-DAY CI Kernel Test Service https://01.org/lkp