[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202107111747.4qfenPoL-lkp@intel.com>
Date: Sun, 11 Jul 2021 17:56:00 +0800
From: kernel test robot <lkp@...el.com>
To: Fenghua Yu <fenghua.yu@...el.com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Shuah Khan <skhan@...uxfoundation.org>,
Sasha Levin <sashal@...nel.org>
Subject: [linux-stable-rc:linux-5.10.y 4305/4974] resctrlfs.c:641:28: error:
'CMT_STR' undeclared; did you mean 'CAT_STR'?
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.10.y
head: 77806d1ee43e1bea3aa5095445eb7a69f02ec8d3
commit: 19eaad1400eab34e97ec4467cd2ab694d1caf20c [4305/4974] selftests/resctrl: Use resctrl/info for feature detection
config: x86_64-rhel-8.3-kselftests (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/commit/?id=19eaad1400eab34e97ec4467cd2ab694d1caf20c
git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git fetch --no-tags linux-stable-rc linux-5.10.y
git checkout 19eaad1400eab34e97ec4467cd2ab694d1caf20c
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash -C tools/testing/selftests/resctrl install
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
resctrlfs.c: In function 'validate_resctrl_feature_request':
>> resctrlfs.c:641:28: error: 'CMT_STR' undeclared (first use in this function); did you mean 'CAT_STR'?
641 | !strncmp(resctrl_val, CMT_STR, sizeof(CMT_STR))) {
| ^~~~~~~
| CAT_STR
resctrlfs.c:641:28: note: each undeclared identifier is reported only once for each function it appears in
--
/usr/bin/ld: /tmp/ccDCv7Po.o: warning: relocation against `tests_run' in read-only section `.text.startup'
/usr/bin/ld: /tmp/ccDCv7Po.o: in function `detect_amd':
>> tools/testing/selftests/resctrl/resctrl_tests.c:26: undefined reference to `fgrep'
/usr/bin/ld: /tmp/ccDCv7Po.o: in function `tests_cleanup':
>> tools/testing/selftests/resctrl/resctrl_tests.c:51: undefined reference to `mbm_test_cleanup'
>> /usr/bin/ld: tools/testing/selftests/resctrl/resctrl_tests.c:52: undefined reference to `mba_test_cleanup'
>> /usr/bin/ld: tools/testing/selftests/resctrl/resctrl_tests.c:53: undefined reference to `cqm_test_cleanup'
>> /usr/bin/ld: tools/testing/selftests/resctrl/resctrl_tests.c:54: undefined reference to `cat_test_cleanup'
/usr/bin/ld: /tmp/ccDCv7Po.o: in function `main':
>> tools/testing/selftests/resctrl/resctrl_tests.c:158: undefined reference to `check_resctrlfs_support'
>> /usr/bin/ld: tools/testing/selftests/resctrl/resctrl_tests.c:159: undefined reference to `filter_dmesg'
/usr/bin/ld: /tmp/ccDCv7Po.o: in function `printf':
>> /usr/include/x86_64-linux-gnu/bits/stdio2.h:107: undefined reference to `tests_run'
/usr/bin/ld: /tmp/ccDCv7Po.o: in function `main':
>> tools/testing/selftests/resctrl/resctrl_tests.c:158: undefined reference to `check_resctrlfs_support'
>> /usr/bin/ld: tools/testing/selftests/resctrl/resctrl_tests.c:159: undefined reference to `filter_dmesg'
>> /usr/bin/ld: tools/testing/selftests/resctrl/resctrl_tests.c:165: undefined reference to `mbm_bw_change'
>> /usr/bin/ld: tools/testing/selftests/resctrl/resctrl_tests.c:167: undefined reference to `mbm_test_cleanup'
>> /usr/bin/ld: tools/testing/selftests/resctrl/resctrl_tests.c:168: undefined reference to `tests_run'
>> /usr/bin/ld: tools/testing/selftests/resctrl/resctrl_tests.c:193: undefined reference to `cat_perf_miss_val'
/usr/bin/ld: tools/testing/selftests/resctrl/resctrl_tests.c:195: undefined reference to `tests_run'
/usr/bin/ld: tools/testing/selftests/resctrl/resctrl_tests.c:196: undefined reference to `cat_test_cleanup'
>> /usr/bin/ld: tools/testing/selftests/resctrl/resctrl_tests.c:185: undefined reference to `cqm_resctrl_val'
/usr/bin/ld: tools/testing/selftests/resctrl/resctrl_tests.c:187: undefined reference to `cqm_test_cleanup'
/usr/bin/ld: tools/testing/selftests/resctrl/resctrl_tests.c:188: undefined reference to `tests_run'
>> /usr/bin/ld: tools/testing/selftests/resctrl/resctrl_tests.c:175: undefined reference to `mba_schemata_change'
/usr/bin/ld: tools/testing/selftests/resctrl/resctrl_tests.c:177: undefined reference to `mba_test_cleanup'
/usr/bin/ld: tools/testing/selftests/resctrl/resctrl_tests.c:178: undefined reference to `tests_run'
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE
collect2: error: ld returned 1 exit status
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (41272 bytes)
Powered by blists - more mailing lists