[linux-next:master 10918/12321] ../kselftest_harness.h:851:26: error: '_ip_local_port_range_late_bind_object' undeclared here (not in a function); did you mean 'ip_local_port_range_late_bind'?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   704ba27ac55579704ba1289392448b0c66b56258
commit: 8a25c905ae398bdd40f75cffed170516c749e7db [10918/12321] selftests/harness: Share _metadata between forked processes
compiler: gcc-13 (Ubuntu 13.2.0-4ubuntu3) 13.2.0

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <yujie.liu@xxxxxxxxx>
| Closes: https://lore.kernel.org/r/202405100339.vfBe0t9C-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

   linux/tools/testing/selftests/net$ make
   ...
   gcc -Wall -Wl,--no-as-needed -O2 -g -I../../../../usr/include/ -isystem tools/testing/selftests/../../../usr/include -I../     ip_local_port_range.c  -o tools/testing/selftests/net/ip_local_port_range
   In file included from ip_local_port_range.c:13:
>> ../kselftest_harness.h:851:26: error: '_ip_local_port_range_late_bind_object' undeclared here (not in a function); did you mean 'ip_local_port_range_late_bind'?
     851 |                 .test = &_##fixture_name##_##test_name##_object, \
         |                          ^
   ip_local_port_range.c:414:1: note: in expansion of macro 'XFAIL_ADD'
     414 | XFAIL_ADD(ip_local_port_range, ip4_stcp, late_bind);
         | ^~~~~~~~~
   make: *** [../lib.mk:179: tools/testing/selftests/net/ip_local_port_range] Error 1

vim +851 tools/testing/selftests/net/../kselftest_harness.h

2709473c938602 Jakub Kicinski 2024-02-28  834  
2709473c938602 Jakub Kicinski 2024-02-28  835  /**
2709473c938602 Jakub Kicinski 2024-02-28  836   * XFAIL_ADD() - mark variant + test case combination as expected to fail
2709473c938602 Jakub Kicinski 2024-02-28  837   * @fixture_name: name of the fixture
2709473c938602 Jakub Kicinski 2024-02-28  838   * @variant_name: name of the variant
2709473c938602 Jakub Kicinski 2024-02-28  839   * @test_name: name of the test case
2709473c938602 Jakub Kicinski 2024-02-28  840   *
2709473c938602 Jakub Kicinski 2024-02-28  841   * Mark a combination of variant + test case for a given fixture as expected
2709473c938602 Jakub Kicinski 2024-02-28  842   * to fail. Tests marked this way will report XPASS / XFAIL return codes,
2709473c938602 Jakub Kicinski 2024-02-28  843   * instead of PASS / FAIL,and use respective counters.
2709473c938602 Jakub Kicinski 2024-02-28  844   */
2709473c938602 Jakub Kicinski 2024-02-28  845  #define XFAIL_ADD(fixture_name, variant_name, test_name) \
2709473c938602 Jakub Kicinski 2024-02-28  846  	static struct __test_xfail \
2709473c938602 Jakub Kicinski 2024-02-28  847  		_##fixture_name##_##variant_name##_##test_name##_xfail = \
2709473c938602 Jakub Kicinski 2024-02-28  848  	{ \
2709473c938602 Jakub Kicinski 2024-02-28  849  		.fixture = &_##fixture_name##_fixture_object, \
2709473c938602 Jakub Kicinski 2024-02-28  850  		.variant = &_##fixture_name##_##variant_name##_object, \
2709473c938602 Jakub Kicinski 2024-02-28 @851  		.test = &_##fixture_name##_##test_name##_object, \
2709473c938602 Jakub Kicinski 2024-02-28  852  	}; \
2709473c938602 Jakub Kicinski 2024-02-28  853  	static void __attribute__((constructor)) \
2709473c938602 Jakub Kicinski 2024-02-28  854  		_register_##fixture_name##_##variant_name##_##test_name##_xfail(void) \
2709473c938602 Jakub Kicinski 2024-02-28  855  	{ \
2709473c938602 Jakub Kicinski 2024-02-28  856  		__register_xfail(&_##fixture_name##_##variant_name##_##test_name##_xfail); \
2709473c938602 Jakub Kicinski 2024-02-28  857  	}
2709473c938602 Jakub Kicinski 2024-02-28  858  

:::::: The code at line 851 was first introduced by commit
:::::: 2709473c938602c3955b87000009e9bf3cd9bb32 selftests: kselftest_harness: support using xfail

:::::: TO: Jakub Kicinski <kuba@xxxxxxxxxx>
:::::: CC: David S. Miller <davem@xxxxxxxxxxxxx>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux