linux-kernel.vger.kernel.org archive mirror
 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; 7+ 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] 7+ messages in thread

* Re: linux-next: build failure after merge of the kunit-fixes tree
  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
  0 siblings, 1 reply; 7+ messages in thread
From: Daniel Latypov @ 2021-06-25 17:53 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: Shuah Khan, Brendan Higgins, Linux Kernel Mailing List,
	Linux Next Mailing List

On Fri, Jun 25, 2021 at 2:52 AM Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>
> 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")

For posterity, David sent out a patch addressing this here:
https://lore.kernel.org/linux-kselftest/20210625111603.358518-1-davidgow@google.com/

>
> --
> Cheers,
> Stephen Rothwell

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

* Re: linux-next: build failure after merge of the kunit-fixes tree
  2021-06-25 17:53 ` Daniel Latypov
@ 2021-06-25 18:12   ` Shuah Khan
  2021-06-25 18:46     ` Brendan Higgins
  0 siblings, 1 reply; 7+ messages in thread
From: Shuah Khan @ 2021-06-25 18:12 UTC (permalink / raw)
  To: Daniel Latypov, Stephen Rothwell
  Cc: Brendan Higgins, Linux Kernel Mailing List,
	Linux Next Mailing List, David Gow, Shuah Khan

On 6/25/21 11:53 AM, Daniel Latypov wrote:
> On Fri, Jun 25, 2021 at 2:52 AM Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>>
>> 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")
> 
> For posterity, David sent out a patch addressing this here:
> https://lore.kernel.org/linux-kselftest/20210625111603.358518-1-davidgow@google.com/
> 

It is all fixed now. When I applied this patch yesterday, I needed to
fix merge conflicts. When I did that the newly added file was left
behind.

Build didn't find it since the file was in the repo. Oh well. So much
for trying to save you a rebase.

Sorry for the trouble. It should all be squared away now. Build and
exec tested it for sanity.

https://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest.git/commit/?h=kunit-fixes&id=1d71307a6f94df3750f8f884545a769e227172fe

thanks,
-- Shuah

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

* Re: linux-next: build failure after merge of the kunit-fixes tree
  2021-06-25 18:12   ` Shuah Khan
@ 2021-06-25 18:46     ` Brendan Higgins
  0 siblings, 0 replies; 7+ messages in thread
From: Brendan Higgins @ 2021-06-25 18:46 UTC (permalink / raw)
  To: Shuah Khan
  Cc: Daniel Latypov, Stephen Rothwell, Linux Kernel Mailing List,
	Linux Next Mailing List, David Gow

On Fri, Jun 25, 2021 at 11:12 AM Shuah Khan <skhan@linuxfoundation.org> wrote:
>
> On 6/25/21 11:53 AM, Daniel Latypov wrote:
> > On Fri, Jun 25, 2021 at 2:52 AM Stephen Rothwell <sfr@canb.auug.org.au> wrote:
> >>
> >> 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")
> >
> > For posterity, David sent out a patch addressing this here:
> > https://lore.kernel.org/linux-kselftest/20210625111603.358518-1-davidgow@google.com/
> >
>
> It is all fixed now. When I applied this patch yesterday, I needed to
> fix merge conflicts. When I did that the newly added file was left
> behind.
>
> Build didn't find it since the file was in the repo. Oh well. So much
> for trying to save you a rebase.
>
> Sorry for the trouble. It should all be squared away now. Build and
> exec tested it for sanity.
>
> https://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest.git/commit/?h=kunit-fixes&id=1d71307a6f94df3750f8f884545a769e227172fe

I just pulled and tested and can confirm it is working for me now.

Thanks!

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

* Re: 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
  1 sibling, 0 replies; 7+ messages in thread
From: Shuah Khan @ 2021-06-25 15:48 UTC (permalink / raw)
  To: Stephen Rothwell, Brendan Higgins
  Cc: David Gow, Linux Kernel Mailing List, Linux Next Mailing List,
	Shuah Khan

On 6/25/21 4:05 AM, Stephen Rothwell wrote:
> 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")
> 

I am applying them now. Okay to add your Aked-by Brendan?

thanks,
-- Shuah

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

* Re: 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
  1 sibling, 0 replies; 7+ messages in thread
From: David Gow @ 2021-06-25 11:31 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: Shuah Khan, Brendan Higgins, Linux Kernel Mailing List,
	Linux Next Mailing List

On Fri, Jun 25, 2021 at 6:05 PM Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>
> 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:

[...snip...]

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

These are fixed by this patch, which hopefully will be in kunit-fixes soon:
https://lore.kernel.org/linux-kselftest/20210624084823.15031-1-davidgow@google.com/

There's also another issue which can cause a build failure, fixed here:
https://lore.kernel.org/linux-kselftest/20210625111603.358518-1-davidgow@google.com/

With those two patches applied, the kselftest/kunit-fixes branch
should build fine, and all of the thunderbolt tests pass.

Sorry about the fuss!

Cheers,
-- David

^ permalink raw reply	[flat|nested] 7+ 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; 7+ 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] 7+ messages in thread

end of thread, other threads:[~2021-06-25 18:47 UTC | newest]

Thread overview: 7+ 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
2021-06-25 10:05 Stephen Rothwell
2021-06-25 11:31 ` David Gow
2021-06-25 15:48 ` Shuah Khan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).