thunderbolt: test: Reinstate a few casts of bitfields
authorDavid Gow <davidgow@google.com>
Thu, 24 Jun 2021 08:48:23 +0000 (01:48 -0700)
committerShuah Khan <skhan@linuxfoundation.org>
Fri, 25 Jun 2021 17:31:03 +0000 (11:31 -0600)
commit824945a5b0ff8260a568b87968172d728446d8f7
tree8c10bea6e7818c9df45951ef5f88403131361ccd
parentb29b14f11d8803e59645644363d7b1cb314fff3f
thunderbolt: test: Reinstate a few casts of bitfields

Partially revert "thunderbolt: test: Remove some casts which are no
longer required". It turns out that typeof() doesn't support bitfields,
so these still need to be cast to the appropriate enum.

The only mention of typeof() and bitfields I can find is in the proposal
to standardise them:
http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2619.htm

This was caught by the kernel test robot:
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org/thread/FDKBHAV7QNLNFU5NBI2RKV56DWDSOLGM/

Fixes: 8f0877c26e4b ("thunderbolt: test: Remove some casts which are no longer required")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: David Gow <davidgow@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
drivers/thunderbolt/test.c