lkml.org 
[lkml]   [2022]   [Jun]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[bvanassche:block-bitwise-opf 15/15] include/linux/compiler_types.h:352:45: error: call to '__compiletime_assert_300' declared with attribute error: BUILD_BUG_ON failed: !__same_type(op, blk_mq_opf_t) && !__same_type(op, enum req_op)
tree:   https://github.com/bvanassche/linux block-bitwise-opf
head: 031ccdd616b11c4e774e56aa7eae906188ab24cc
commit: 031ccdd616b11c4e774e56aa7eae906188ab24cc [15/15] block: Introduce the type blk_mq_opf_t
config: parisc-allyesconfig (https://download.01.org/0day-ci/archive/20220617/202206171554.MBCHaiNR-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 11.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/bvanassche/linux/commit/031ccdd616b11c4e774e56aa7eae906188ab24cc
git remote add bvanassche https://github.com/bvanassche/linux
git fetch --no-tags bvanassche block-bitwise-opf
git checkout 031ccdd616b11c4e774e56aa7eae906188ab24cc
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=parisc SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>

All error/warnings (new ones prefixed by >>):

drivers/block/paride/pd.c: In function 'do_pd_io_start':
>> drivers/block/paride/pd.c:487:9: warning: enumeration value 'REQ_OP_FLUSH' not handled in switch [-Wswitch]
487 | switch (req_op(pd_req)) {
| ^~~~~~
>> drivers/block/paride/pd.c:487:9: warning: enumeration value 'REQ_OP_DISCARD' not handled in switch [-Wswitch]
>> drivers/block/paride/pd.c:487:9: warning: enumeration value 'REQ_OP_SECURE_ERASE' not handled in switch [-Wswitch]
>> drivers/block/paride/pd.c:487:9: warning: enumeration value 'REQ_OP_WRITE_ZEROES' not handled in switch [-Wswitch]
>> drivers/block/paride/pd.c:487:9: warning: enumeration value 'REQ_OP_ZONE_OPEN' not handled in switch [-Wswitch]
>> drivers/block/paride/pd.c:487:9: warning: enumeration value 'REQ_OP_ZONE_CLOSE' not handled in switch [-Wswitch]
>> drivers/block/paride/pd.c:487:9: warning: enumeration value 'REQ_OP_ZONE_FINISH' not handled in switch [-Wswitch]
>> drivers/block/paride/pd.c:487:9: warning: enumeration value 'REQ_OP_ZONE_APPEND' not handled in switch [-Wswitch]
>> drivers/block/paride/pd.c:487:9: warning: enumeration value 'REQ_OP_ZONE_RESET' not handled in switch [-Wswitch]
>> drivers/block/paride/pd.c:487:9: warning: enumeration value 'REQ_OP_ZONE_RESET_ALL' not handled in switch [-Wswitch]
>> drivers/block/paride/pd.c:487:9: warning: enumeration value 'REQ_OP_DRV_OUT' not handled in switch [-Wswitch]
>> drivers/block/paride/pd.c:487:9: warning: enumeration value 'REQ_OP_LAST' not handled in switch [-Wswitch]
--
In file included from <command-line>:
block/blk-wbt.c: In function 'wbt_data_dir':
>> include/linux/compiler_types.h:352:45: error: call to '__compiletime_assert_300' declared with attribute error: BUILD_BUG_ON failed: !__same_type(op, blk_mq_opf_t) && !__same_type(op, enum req_op)
352 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:333:25: note: in definition of macro '__compiletime_assert'
333 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:352:9: note: in expansion of macro '_compiletime_assert'
352 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
include/linux/blk_types.h:487:17: note: in expansion of macro 'BUILD_BUG_ON'
487 | BUILD_BUG_ON(!__same_type(op, blk_mq_opf_t) && \
| ^~~~~~~~~~~~
block/blk-wbt.c:677:18: note: in expansion of macro 'op_is_write'
677 | else if (op_is_write(op))
| ^~~~~~~~~~~


vim +/__compiletime_assert_300 +352 include/linux/compiler_types.h

eb5c2d4b45e3d2 Will Deacon 2020-07-21 338
eb5c2d4b45e3d2 Will Deacon 2020-07-21 339 #define _compiletime_assert(condition, msg, prefix, suffix) \
eb5c2d4b45e3d2 Will Deacon 2020-07-21 340 __compiletime_assert(condition, msg, prefix, suffix)
eb5c2d4b45e3d2 Will Deacon 2020-07-21 341
eb5c2d4b45e3d2 Will Deacon 2020-07-21 342 /**
eb5c2d4b45e3d2 Will Deacon 2020-07-21 343 * compiletime_assert - break build and emit msg if condition is false
eb5c2d4b45e3d2 Will Deacon 2020-07-21 344 * @condition: a compile-time constant condition to check
eb5c2d4b45e3d2 Will Deacon 2020-07-21 345 * @msg: a message to emit if condition is false
eb5c2d4b45e3d2 Will Deacon 2020-07-21 346 *
eb5c2d4b45e3d2 Will Deacon 2020-07-21 347 * In tradition of POSIX assert, this macro will break the build if the
eb5c2d4b45e3d2 Will Deacon 2020-07-21 348 * supplied condition is *false*, emitting the supplied error message if the
eb5c2d4b45e3d2 Will Deacon 2020-07-21 349 * compiler has support to do so.
eb5c2d4b45e3d2 Will Deacon 2020-07-21 350 */
eb5c2d4b45e3d2 Will Deacon 2020-07-21 351 #define compiletime_assert(condition, msg) \
eb5c2d4b45e3d2 Will Deacon 2020-07-21 @352 _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
eb5c2d4b45e3d2 Will Deacon 2020-07-21 353

:::::: The code at line 352 was first introduced by commit
:::::: eb5c2d4b45e3d2d5d052ea6b8f1463976b1020d5 compiler.h: Move compiletime_assert() macros into compiler_types.h

:::::: TO: Will Deacon <will@kernel.org>
:::::: CC: Will Deacon <will@kernel.org>

--
0-DAY CI Kernel Test Service
https://01.org/lkp

\
 
 \ /
  Last update: 2022-06-17 09:09    [W:0.039 / U:0.208 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site