public inbox for linux-next@vger.kernel.org
 help / color / mirror / Atom feed
* linux-next: build failure after merge of the kunit-fixes tree
@ 2021-06-25  9:52 Stephen Rothwell
  2021-06-25 17:53 ` Daniel Latypov
  0 siblings, 1 reply; 11+ messages in thread
From: Stephen Rothwell @ 2021-06-25  9:52 UTC (permalink / raw)
  To: Shuah Khan, Brendan Higgins
  Cc: Daniel Latypov, Linux Kernel Mailing List,
	Linux Next Mailing List

[-- Attachment #1: Type: text/plain, Size: 606 bytes --]

Hi all,

After merging the kunit-fixes tree, today's linux-next build (powerpc
allyesconfig) failed like this:

lib/kunit/executor.c:26:1: error: expected identifier or '(' before '+' token
   26 | +kunit_filter_subsuite(struct kunit_suite * const * const subsuite,
      | ^
lib/kunit/executor.c: At top level:
lib/kunit/executor.c:140:10: fatal error: executor_test.c: No such file or directory
  140 | #include "executor_test.c"
      |          ^~~~~~~~~~~~~~~~~

Caused by commit

  c9d80ffc5a0a ("kunit: add unit test for filtering suites by names")

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread
* linux-next: build failure after merge of the kunit-fixes tree
@ 2021-06-25 10:05 Stephen Rothwell
  2021-06-25 11:31 ` David Gow
  2021-06-25 15:48 ` Shuah Khan
  0 siblings, 2 replies; 11+ messages in thread
From: Stephen Rothwell @ 2021-06-25 10:05 UTC (permalink / raw)
  To: Shuah Khan, Brendan Higgins
  Cc: David Gow, Linux Kernel Mailing List, Linux Next Mailing List

[-- Attachment #1: Type: text/plain, Size: 25299 bytes --]

Hi all,

After merging the kunit-fixes tree, today's linux-next build (powerpc
allyesconfig) failed like this:

In file included from drivers/thunderbolt/test.c:9:
drivers/thunderbolt/test.c: In function 'tb_test_path_single_hop_walk':
drivers/thunderbolt/test.c:455:25: error: 'typeof' applied to a bit-field
  455 |   KUNIT_EXPECT_EQ(test, p->config.type, test_data[i].type);
      |                         ^
include/kunit/test.h:804:9: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
  804 |  typeof(left) __left = (left);            \
      |         ^~~~
include/kunit/test.h:918:2: note: in expansion of macro 'KUNIT_BASE_EQ_MSG_ASSERTION'
  918 |  KUNIT_BASE_EQ_MSG_ASSERTION(test,           \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:928:2: note: in expansion of macro 'KUNIT_BINARY_EQ_MSG_ASSERTION'
  928 |  KUNIT_BINARY_EQ_MSG_ASSERTION(test,           \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:1291:2: note: in expansion of macro 'KUNIT_BINARY_EQ_ASSERTION'
 1291 |  KUNIT_BINARY_EQ_ASSERTION(test, KUNIT_EXPECTATION, left, right)
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/thunderbolt/test.c:455:3: note: in expansion of macro 'KUNIT_EXPECT_EQ'
  455 |   KUNIT_EXPECT_EQ(test, p->config.type, test_data[i].type);
      |   ^~~~~~~~~~~~~~~
drivers/thunderbolt/test.c:466:25: error: 'typeof' applied to a bit-field
  466 |   KUNIT_EXPECT_EQ(test, p->config.type, test_data[i].type);
      |                         ^
include/kunit/test.h:804:9: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
  804 |  typeof(left) __left = (left);            \
      |         ^~~~
include/kunit/test.h:918:2: note: in expansion of macro 'KUNIT_BASE_EQ_MSG_ASSERTION'
  918 |  KUNIT_BASE_EQ_MSG_ASSERTION(test,           \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:928:2: note: in expansion of macro 'KUNIT_BINARY_EQ_MSG_ASSERTION'
  928 |  KUNIT_BINARY_EQ_MSG_ASSERTION(test,           \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:1291:2: note: in expansion of macro 'KUNIT_BINARY_EQ_ASSERTION'
 1291 |  KUNIT_BINARY_EQ_ASSERTION(test, KUNIT_EXPECTATION, left, right)
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/thunderbolt/test.c:466:3: note: in expansion of macro 'KUNIT_EXPECT_EQ'
  466 |   KUNIT_EXPECT_EQ(test, p->config.type, test_data[i].type);
      |   ^~~~~~~~~~~~~~~
drivers/thunderbolt/test.c: In function 'tb_test_path_daisy_chain_walk':
drivers/thunderbolt/test.c:512:25: error: 'typeof' applied to a bit-field
  512 |   KUNIT_EXPECT_EQ(test, p->config.type, test_data[i].type);
      |                         ^
include/kunit/test.h:804:9: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
  804 |  typeof(left) __left = (left);            \
      |         ^~~~
include/kunit/test.h:918:2: note: in expansion of macro 'KUNIT_BASE_EQ_MSG_ASSERTION'
  918 |  KUNIT_BASE_EQ_MSG_ASSERTION(test,           \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:928:2: note: in expansion of macro 'KUNIT_BINARY_EQ_MSG_ASSERTION'
  928 |  KUNIT_BINARY_EQ_MSG_ASSERTION(test,           \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:1291:2: note: in expansion of macro 'KUNIT_BINARY_EQ_ASSERTION'
 1291 |  KUNIT_BINARY_EQ_ASSERTION(test, KUNIT_EXPECTATION, left, right)
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/thunderbolt/test.c:512:3: note: in expansion of macro 'KUNIT_EXPECT_EQ'
  512 |   KUNIT_EXPECT_EQ(test, p->config.type, test_data[i].type);
      |   ^~~~~~~~~~~~~~~
drivers/thunderbolt/test.c:523:25: error: 'typeof' applied to a bit-field
  523 |   KUNIT_EXPECT_EQ(test, p->config.type, test_data[i].type);
      |                         ^
include/kunit/test.h:804:9: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
  804 |  typeof(left) __left = (left);            \
      |         ^~~~
include/kunit/test.h:918:2: note: in expansion of macro 'KUNIT_BASE_EQ_MSG_ASSERTION'
  918 |  KUNIT_BASE_EQ_MSG_ASSERTION(test,           \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:928:2: note: in expansion of macro 'KUNIT_BINARY_EQ_MSG_ASSERTION'
  928 |  KUNIT_BINARY_EQ_MSG_ASSERTION(test,           \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:1291:2: note: in expansion of macro 'KUNIT_BINARY_EQ_ASSERTION'
 1291 |  KUNIT_BINARY_EQ_ASSERTION(test, KUNIT_EXPECTATION, left, right)
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/thunderbolt/test.c:523:3: note: in expansion of macro 'KUNIT_EXPECT_EQ'
  523 |   KUNIT_EXPECT_EQ(test, p->config.type, test_data[i].type);
      |   ^~~~~~~~~~~~~~~
drivers/thunderbolt/test.c: In function 'tb_test_path_simple_tree_walk':
drivers/thunderbolt/test.c:573:25: error: 'typeof' applied to a bit-field
  573 |   KUNIT_EXPECT_EQ(test, p->config.type, test_data[i].type);
      |                         ^
include/kunit/test.h:804:9: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
  804 |  typeof(left) __left = (left);            \
      |         ^~~~
include/kunit/test.h:918:2: note: in expansion of macro 'KUNIT_BASE_EQ_MSG_ASSERTION'
  918 |  KUNIT_BASE_EQ_MSG_ASSERTION(test,           \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:928:2: note: in expansion of macro 'KUNIT_BINARY_EQ_MSG_ASSERTION'
  928 |  KUNIT_BINARY_EQ_MSG_ASSERTION(test,           \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:1291:2: note: in expansion of macro 'KUNIT_BINARY_EQ_ASSERTION'
 1291 |  KUNIT_BINARY_EQ_ASSERTION(test, KUNIT_EXPECTATION, left, right)
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/thunderbolt/test.c:573:3: note: in expansion of macro 'KUNIT_EXPECT_EQ'
  573 |   KUNIT_EXPECT_EQ(test, p->config.type, test_data[i].type);
      |   ^~~~~~~~~~~~~~~
drivers/thunderbolt/test.c:584:25: error: 'typeof' applied to a bit-field
  584 |   KUNIT_EXPECT_EQ(test, p->config.type, test_data[i].type);
      |                         ^
include/kunit/test.h:804:9: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
  804 |  typeof(left) __left = (left);            \
      |         ^~~~
include/kunit/test.h:918:2: note: in expansion of macro 'KUNIT_BASE_EQ_MSG_ASSERTION'
  918 |  KUNIT_BASE_EQ_MSG_ASSERTION(test,           \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:928:2: note: in expansion of macro 'KUNIT_BINARY_EQ_MSG_ASSERTION'
  928 |  KUNIT_BINARY_EQ_MSG_ASSERTION(test,           \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:1291:2: note: in expansion of macro 'KUNIT_BINARY_EQ_ASSERTION'
 1291 |  KUNIT_BINARY_EQ_ASSERTION(test, KUNIT_EXPECTATION, left, right)
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/thunderbolt/test.c:584:3: note: in expansion of macro 'KUNIT_EXPECT_EQ'
  584 |   KUNIT_EXPECT_EQ(test, p->config.type, test_data[i].type);
      |   ^~~~~~~~~~~~~~~
drivers/thunderbolt/test.c: In function 'tb_test_path_complex_tree_walk':
drivers/thunderbolt/test.c:655:25: error: 'typeof' applied to a bit-field
  655 |   KUNIT_EXPECT_EQ(test, p->config.type, test_data[i].type);
      |                         ^
include/kunit/test.h:804:9: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
  804 |  typeof(left) __left = (left);            \
      |         ^~~~
include/kunit/test.h:918:2: note: in expansion of macro 'KUNIT_BASE_EQ_MSG_ASSERTION'
  918 |  KUNIT_BASE_EQ_MSG_ASSERTION(test,           \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:928:2: note: in expansion of macro 'KUNIT_BINARY_EQ_MSG_ASSERTION'
  928 |  KUNIT_BINARY_EQ_MSG_ASSERTION(test,           \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:1291:2: note: in expansion of macro 'KUNIT_BINARY_EQ_ASSERTION'
 1291 |  KUNIT_BINARY_EQ_ASSERTION(test, KUNIT_EXPECTATION, left, right)
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/thunderbolt/test.c:655:3: note: in expansion of macro 'KUNIT_EXPECT_EQ'
  655 |   KUNIT_EXPECT_EQ(test, p->config.type, test_data[i].type);
      |   ^~~~~~~~~~~~~~~
drivers/thunderbolt/test.c:666:25: error: 'typeof' applied to a bit-field
  666 |   KUNIT_EXPECT_EQ(test, p->config.type, test_data[i].type);
      |                         ^
include/kunit/test.h:804:9: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
  804 |  typeof(left) __left = (left);            \
      |         ^~~~
include/kunit/test.h:918:2: note: in expansion of macro 'KUNIT_BASE_EQ_MSG_ASSERTION'
  918 |  KUNIT_BASE_EQ_MSG_ASSERTION(test,           \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:928:2: note: in expansion of macro 'KUNIT_BINARY_EQ_MSG_ASSERTION'
  928 |  KUNIT_BINARY_EQ_MSG_ASSERTION(test,           \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:1291:2: note: in expansion of macro 'KUNIT_BINARY_EQ_ASSERTION'
 1291 |  KUNIT_BINARY_EQ_ASSERTION(test, KUNIT_EXPECTATION, left, right)
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/thunderbolt/test.c:666:3: note: in expansion of macro 'KUNIT_EXPECT_EQ'
  666 |   KUNIT_EXPECT_EQ(test, p->config.type, test_data[i].type);
      |   ^~~~~~~~~~~~~~~
drivers/thunderbolt/test.c: In function 'tb_test_path_max_length_walk':
drivers/thunderbolt/test.c:756:25: error: 'typeof' applied to a bit-field
  756 |   KUNIT_EXPECT_EQ(test, p->config.type, test_data[i].type);
      |                         ^
include/kunit/test.h:804:9: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
  804 |  typeof(left) __left = (left);            \
      |         ^~~~
include/kunit/test.h:918:2: note: in expansion of macro 'KUNIT_BASE_EQ_MSG_ASSERTION'
  918 |  KUNIT_BASE_EQ_MSG_ASSERTION(test,           \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:928:2: note: in expansion of macro 'KUNIT_BINARY_EQ_MSG_ASSERTION'
  928 |  KUNIT_BINARY_EQ_MSG_ASSERTION(test,           \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:1291:2: note: in expansion of macro 'KUNIT_BINARY_EQ_ASSERTION'
 1291 |  KUNIT_BINARY_EQ_ASSERTION(test, KUNIT_EXPECTATION, left, right)
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/thunderbolt/test.c:756:3: note: in expansion of macro 'KUNIT_EXPECT_EQ'
  756 |   KUNIT_EXPECT_EQ(test, p->config.type, test_data[i].type);
      |   ^~~~~~~~~~~~~~~
drivers/thunderbolt/test.c:767:25: error: 'typeof' applied to a bit-field
  767 |   KUNIT_EXPECT_EQ(test, p->config.type, test_data[i].type);
      |                         ^
include/kunit/test.h:804:9: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
  804 |  typeof(left) __left = (left);            \
      |         ^~~~
include/kunit/test.h:918:2: note: in expansion of macro 'KUNIT_BASE_EQ_MSG_ASSERTION'
  918 |  KUNIT_BASE_EQ_MSG_ASSERTION(test,           \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:928:2: note: in expansion of macro 'KUNIT_BINARY_EQ_MSG_ASSERTION'
  928 |  KUNIT_BINARY_EQ_MSG_ASSERTION(test,           \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:1291:2: note: in expansion of macro 'KUNIT_BINARY_EQ_ASSERTION'
 1291 |  KUNIT_BINARY_EQ_ASSERTION(test, KUNIT_EXPECTATION, left, right)
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/thunderbolt/test.c:767:3: note: in expansion of macro 'KUNIT_EXPECT_EQ'
  767 |   KUNIT_EXPECT_EQ(test, p->config.type, test_data[i].type);
      |   ^~~~~~~~~~~~~~~
drivers/thunderbolt/test.c: In function 'tb_test_path_not_bonded_lane0':
drivers/thunderbolt/test.c:850:25: error: 'typeof' applied to a bit-field
  850 |   KUNIT_EXPECT_EQ(test, in_port->config.type, test_data[i].in_type);
      |                         ^~~~~~~
include/kunit/test.h:804:9: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
  804 |  typeof(left) __left = (left);            \
      |         ^~~~
include/kunit/test.h:918:2: note: in expansion of macro 'KUNIT_BASE_EQ_MSG_ASSERTION'
  918 |  KUNIT_BASE_EQ_MSG_ASSERTION(test,           \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:928:2: note: in expansion of macro 'KUNIT_BINARY_EQ_MSG_ASSERTION'
  928 |  KUNIT_BINARY_EQ_MSG_ASSERTION(test,           \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:1291:2: note: in expansion of macro 'KUNIT_BINARY_EQ_ASSERTION'
 1291 |  KUNIT_BINARY_EQ_ASSERTION(test, KUNIT_EXPECTATION, left, right)
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/thunderbolt/test.c:850:3: note: in expansion of macro 'KUNIT_EXPECT_EQ'
  850 |   KUNIT_EXPECT_EQ(test, in_port->config.type, test_data[i].in_type);
      |   ^~~~~~~~~~~~~~~
drivers/thunderbolt/test.c:853:25: error: 'typeof' applied to a bit-field
  853 |   KUNIT_EXPECT_EQ(test, out_port->config.type, test_data[i].out_type);
      |                         ^~~~~~~~
include/kunit/test.h:804:9: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
  804 |  typeof(left) __left = (left);            \
      |         ^~~~
include/kunit/test.h:918:2: note: in expansion of macro 'KUNIT_BASE_EQ_MSG_ASSERTION'
  918 |  KUNIT_BASE_EQ_MSG_ASSERTION(test,           \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:928:2: note: in expansion of macro 'KUNIT_BINARY_EQ_MSG_ASSERTION'
  928 |  KUNIT_BINARY_EQ_MSG_ASSERTION(test,           \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:1291:2: note: in expansion of macro 'KUNIT_BINARY_EQ_ASSERTION'
 1291 |  KUNIT_BINARY_EQ_ASSERTION(test, KUNIT_EXPECTATION, left, right)
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/thunderbolt/test.c:853:3: note: in expansion of macro 'KUNIT_EXPECT_EQ'
  853 |   KUNIT_EXPECT_EQ(test, out_port->config.type, test_data[i].out_type);
      |   ^~~~~~~~~~~~~~~
drivers/thunderbolt/test.c: In function 'tb_test_path_not_bonded_lane1':
drivers/thunderbolt/test.c:910:25: error: 'typeof' applied to a bit-field
  910 |   KUNIT_EXPECT_EQ(test, in_port->config.type, test_data[i].in_type);
      |                         ^~~~~~~
include/kunit/test.h:804:9: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
  804 |  typeof(left) __left = (left);            \
      |         ^~~~
include/kunit/test.h:918:2: note: in expansion of macro 'KUNIT_BASE_EQ_MSG_ASSERTION'
  918 |  KUNIT_BASE_EQ_MSG_ASSERTION(test,           \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:928:2: note: in expansion of macro 'KUNIT_BINARY_EQ_MSG_ASSERTION'
  928 |  KUNIT_BINARY_EQ_MSG_ASSERTION(test,           \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:1291:2: note: in expansion of macro 'KUNIT_BINARY_EQ_ASSERTION'
 1291 |  KUNIT_BINARY_EQ_ASSERTION(test, KUNIT_EXPECTATION, left, right)
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/thunderbolt/test.c:910:3: note: in expansion of macro 'KUNIT_EXPECT_EQ'
  910 |   KUNIT_EXPECT_EQ(test, in_port->config.type, test_data[i].in_type);
      |   ^~~~~~~~~~~~~~~
drivers/thunderbolt/test.c:913:25: error: 'typeof' applied to a bit-field
  913 |   KUNIT_EXPECT_EQ(test, out_port->config.type, test_data[i].out_type);
      |                         ^~~~~~~~
include/kunit/test.h:804:9: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
  804 |  typeof(left) __left = (left);            \
      |         ^~~~
include/kunit/test.h:918:2: note: in expansion of macro 'KUNIT_BASE_EQ_MSG_ASSERTION'
  918 |  KUNIT_BASE_EQ_MSG_ASSERTION(test,           \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:928:2: note: in expansion of macro 'KUNIT_BINARY_EQ_MSG_ASSERTION'
  928 |  KUNIT_BINARY_EQ_MSG_ASSERTION(test,           \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:1291:2: note: in expansion of macro 'KUNIT_BINARY_EQ_ASSERTION'
 1291 |  KUNIT_BINARY_EQ_ASSERTION(test, KUNIT_EXPECTATION, left, right)
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/thunderbolt/test.c:913:3: note: in expansion of macro 'KUNIT_EXPECT_EQ'
  913 |   KUNIT_EXPECT_EQ(test, out_port->config.type, test_data[i].out_type);
      |   ^~~~~~~~~~~~~~~
drivers/thunderbolt/test.c: In function 'tb_test_path_not_bonded_lane1_chain':
drivers/thunderbolt/test.c:988:25: error: 'typeof' applied to a bit-field
  988 |   KUNIT_EXPECT_EQ(test, in_port->config.type, test_data[i].in_type);
      |                         ^~~~~~~
include/kunit/test.h:804:9: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
  804 |  typeof(left) __left = (left);            \
      |         ^~~~
include/kunit/test.h:918:2: note: in expansion of macro 'KUNIT_BASE_EQ_MSG_ASSERTION'
  918 |  KUNIT_BASE_EQ_MSG_ASSERTION(test,           \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:928:2: note: in expansion of macro 'KUNIT_BINARY_EQ_MSG_ASSERTION'
  928 |  KUNIT_BINARY_EQ_MSG_ASSERTION(test,           \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:1291:2: note: in expansion of macro 'KUNIT_BINARY_EQ_ASSERTION'
 1291 |  KUNIT_BINARY_EQ_ASSERTION(test, KUNIT_EXPECTATION, left, right)
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/thunderbolt/test.c:988:3: note: in expansion of macro 'KUNIT_EXPECT_EQ'
  988 |   KUNIT_EXPECT_EQ(test, in_port->config.type, test_data[i].in_type);
      |   ^~~~~~~~~~~~~~~
drivers/thunderbolt/test.c:991:25: error: 'typeof' applied to a bit-field
  991 |   KUNIT_EXPECT_EQ(test, out_port->config.type, test_data[i].out_type);
      |                         ^~~~~~~~
include/kunit/test.h:804:9: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
  804 |  typeof(left) __left = (left);            \
      |         ^~~~
include/kunit/test.h:918:2: note: in expansion of macro 'KUNIT_BASE_EQ_MSG_ASSERTION'
  918 |  KUNIT_BASE_EQ_MSG_ASSERTION(test,           \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:928:2: note: in expansion of macro 'KUNIT_BINARY_EQ_MSG_ASSERTION'
  928 |  KUNIT_BINARY_EQ_MSG_ASSERTION(test,           \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:1291:2: note: in expansion of macro 'KUNIT_BINARY_EQ_ASSERTION'
 1291 |  KUNIT_BINARY_EQ_ASSERTION(test, KUNIT_EXPECTATION, left, right)
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/thunderbolt/test.c:991:3: note: in expansion of macro 'KUNIT_EXPECT_EQ'
  991 |   KUNIT_EXPECT_EQ(test, out_port->config.type, test_data[i].out_type);
      |   ^~~~~~~~~~~~~~~
drivers/thunderbolt/test.c: In function 'tb_test_path_not_bonded_lane1_chain_reverse':
drivers/thunderbolt/test.c:1066:25: error: 'typeof' applied to a bit-field
 1066 |   KUNIT_EXPECT_EQ(test, in_port->config.type, test_data[i].in_type);
      |                         ^~~~~~~
include/kunit/test.h:804:9: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
  804 |  typeof(left) __left = (left);            \
      |         ^~~~
include/kunit/test.h:918:2: note: in expansion of macro 'KUNIT_BASE_EQ_MSG_ASSERTION'
  918 |  KUNIT_BASE_EQ_MSG_ASSERTION(test,           \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:928:2: note: in expansion of macro 'KUNIT_BINARY_EQ_MSG_ASSERTION'
  928 |  KUNIT_BINARY_EQ_MSG_ASSERTION(test,           \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:1291:2: note: in expansion of macro 'KUNIT_BINARY_EQ_ASSERTION'
 1291 |  KUNIT_BINARY_EQ_ASSERTION(test, KUNIT_EXPECTATION, left, right)
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/thunderbolt/test.c:1066:3: note: in expansion of macro 'KUNIT_EXPECT_EQ'
 1066 |   KUNIT_EXPECT_EQ(test, in_port->config.type, test_data[i].in_type);
      |   ^~~~~~~~~~~~~~~
drivers/thunderbolt/test.c:1069:25: error: 'typeof' applied to a bit-field
 1069 |   KUNIT_EXPECT_EQ(test, out_port->config.type, test_data[i].out_type);
      |                         ^~~~~~~~
include/kunit/test.h:804:9: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
  804 |  typeof(left) __left = (left);            \
      |         ^~~~
include/kunit/test.h:918:2: note: in expansion of macro 'KUNIT_BASE_EQ_MSG_ASSERTION'
  918 |  KUNIT_BASE_EQ_MSG_ASSERTION(test,           \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:928:2: note: in expansion of macro 'KUNIT_BINARY_EQ_MSG_ASSERTION'
  928 |  KUNIT_BINARY_EQ_MSG_ASSERTION(test,           \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:1291:2: note: in expansion of macro 'KUNIT_BINARY_EQ_ASSERTION'
 1291 |  KUNIT_BINARY_EQ_ASSERTION(test, KUNIT_EXPECTATION, left, right)
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/thunderbolt/test.c:1069:3: note: in expansion of macro 'KUNIT_EXPECT_EQ'
 1069 |   KUNIT_EXPECT_EQ(test, out_port->config.type, test_data[i].out_type);
      |   ^~~~~~~~~~~~~~~
drivers/thunderbolt/test.c: In function 'tb_test_path_mixed_chain':
drivers/thunderbolt/test.c:1156:25: error: 'typeof' applied to a bit-field
 1156 |   KUNIT_EXPECT_EQ(test, in_port->config.type, test_data[i].in_type);
      |                         ^~~~~~~
include/kunit/test.h:804:9: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
  804 |  typeof(left) __left = (left);            \
      |         ^~~~
include/kunit/test.h:918:2: note: in expansion of macro 'KUNIT_BASE_EQ_MSG_ASSERTION'
  918 |  KUNIT_BASE_EQ_MSG_ASSERTION(test,           \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:928:2: note: in expansion of macro 'KUNIT_BINARY_EQ_MSG_ASSERTION'
  928 |  KUNIT_BINARY_EQ_MSG_ASSERTION(test,           \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:1291:2: note: in expansion of macro 'KUNIT_BINARY_EQ_ASSERTION'
 1291 |  KUNIT_BINARY_EQ_ASSERTION(test, KUNIT_EXPECTATION, left, right)
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/thunderbolt/test.c:1156:3: note: in expansion of macro 'KUNIT_EXPECT_EQ'
 1156 |   KUNIT_EXPECT_EQ(test, in_port->config.type, test_data[i].in_type);
      |   ^~~~~~~~~~~~~~~
drivers/thunderbolt/test.c:1159:25: error: 'typeof' applied to a bit-field
 1159 |   KUNIT_EXPECT_EQ(test, out_port->config.type, test_data[i].out_type);
      |                         ^~~~~~~~
include/kunit/test.h:804:9: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
  804 |  typeof(left) __left = (left);            \
      |         ^~~~
include/kunit/test.h:918:2: note: in expansion of macro 'KUNIT_BASE_EQ_MSG_ASSERTION'
  918 |  KUNIT_BASE_EQ_MSG_ASSERTION(test,           \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:928:2: note: in expansion of macro 'KUNIT_BINARY_EQ_MSG_ASSERTION'
  928 |  KUNIT_BINARY_EQ_MSG_ASSERTION(test,           \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:1291:2: note: in expansion of macro 'KUNIT_BINARY_EQ_ASSERTION'
 1291 |  KUNIT_BINARY_EQ_ASSERTION(test, KUNIT_EXPECTATION, left, right)
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/thunderbolt/test.c:1159:3: note: in expansion of macro 'KUNIT_EXPECT_EQ'
 1159 |   KUNIT_EXPECT_EQ(test, out_port->config.type, test_data[i].out_type);
      |   ^~~~~~~~~~~~~~~
drivers/thunderbolt/test.c: In function 'tb_test_path_mixed_chain_reverse':
drivers/thunderbolt/test.c:1246:25: error: 'typeof' applied to a bit-field
 1246 |   KUNIT_EXPECT_EQ(test, in_port->config.type, test_data[i].in_type);
      |                         ^~~~~~~
include/kunit/test.h:804:9: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
  804 |  typeof(left) __left = (left);            \
      |         ^~~~
include/kunit/test.h:918:2: note: in expansion of macro 'KUNIT_BASE_EQ_MSG_ASSERTION'
  918 |  KUNIT_BASE_EQ_MSG_ASSERTION(test,           \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:928:2: note: in expansion of macro 'KUNIT_BINARY_EQ_MSG_ASSERTION'
  928 |  KUNIT_BINARY_EQ_MSG_ASSERTION(test,           \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:1291:2: note: in expansion of macro 'KUNIT_BINARY_EQ_ASSERTION'
 1291 |  KUNIT_BINARY_EQ_ASSERTION(test, KUNIT_EXPECTATION, left, right)
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/thunderbolt/test.c:1246:3: note: in expansion of macro 'KUNIT_EXPECT_EQ'
 1246 |   KUNIT_EXPECT_EQ(test, in_port->config.type, test_data[i].in_type);
      |   ^~~~~~~~~~~~~~~
drivers/thunderbolt/test.c:1249:25: error: 'typeof' applied to a bit-field
 1249 |   KUNIT_EXPECT_EQ(test, out_port->config.type, test_data[i].out_type);
      |                         ^~~~~~~~
include/kunit/test.h:804:9: note: in definition of macro 'KUNIT_BASE_BINARY_ASSERTION'
  804 |  typeof(left) __left = (left);            \
      |         ^~~~
include/kunit/test.h:918:2: note: in expansion of macro 'KUNIT_BASE_EQ_MSG_ASSERTION'
  918 |  KUNIT_BASE_EQ_MSG_ASSERTION(test,           \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:928:2: note: in expansion of macro 'KUNIT_BINARY_EQ_MSG_ASSERTION'
  928 |  KUNIT_BINARY_EQ_MSG_ASSERTION(test,           \
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:1291:2: note: in expansion of macro 'KUNIT_BINARY_EQ_ASSERTION'
 1291 |  KUNIT_BINARY_EQ_ASSERTION(test, KUNIT_EXPECTATION, left, right)
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/thunderbolt/test.c:1249:3: note: in expansion of macro 'KUNIT_EXPECT_EQ'
 1249 |   KUNIT_EXPECT_EQ(test, out_port->config.type, test_data[i].out_type);
      |   ^~~~~~~~~~~~~~~

Caused by commit

  8f0877c26e4b ("thunderbolt: test: Remove some casts which are no longer required")

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread
* linux-next: build failure after merge of the kunit-fixes tree
@ 2024-08-05 23:18 Stephen Rothwell
  2024-08-06  2:06 ` David Gow
  0 siblings, 1 reply; 11+ messages in thread
From: Stephen Rothwell @ 2024-08-05 23:18 UTC (permalink / raw)
  To: Shuah Khan, Brendan Higgins
  Cc: David Gow, Linux Kernel Mailing List, Linux Next Mailing List

[-- Attachment #1: Type: text/plain, Size: 446 bytes --]

Hi all,

After merging the kunit-fixes tree, today's linux-next build (powerpc
ppc64_defconfig) failed like this:

ERROR: modpost: "__start_rodata" [lib/kunit/kunit.ko] undefined!
ERROR: modpost: "__end_rodata" [lib/kunit/kunit.ko] undefined!

Caused by commit

  7d3c33b290b1 ("kunit: Device wrappers should also manage driver name")

I have used the kunit-fixes tree from next-20240805 for today.

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2024-08-06 22:29 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-25  9:52 linux-next: build failure after merge of the kunit-fixes tree Stephen Rothwell
2021-06-25 17:53 ` Daniel Latypov
2021-06-25 18:12   ` Shuah Khan
2021-06-25 18:46     ` Brendan Higgins
  -- strict thread matches above, loose matches on Subject: below --
2021-06-25 10:05 Stephen Rothwell
2021-06-25 11:31 ` David Gow
2021-06-25 15:48 ` Shuah Khan
2024-08-05 23:18 Stephen Rothwell
2024-08-06  2:06 ` David Gow
2024-08-06 19:20   ` Shuah Khan
2024-08-06 22:29     ` Shuah Khan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox