* [hch-misc:remove-ide 1/11] block/blk-mq-debugfs.c:293:44: error: 'RQF_ALLOCED' undeclared here (not in a function)
@ 2021-03-17 11:54 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-03-17 11:54 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 4444 bytes --]
tree: git://git.infradead.org/users/hch/misc.git remove-ide
head: 0c48559a863f1782d3ee2d77adf3a7740b43f39f
commit: 10455e3e7e8a75cef5bac97611bf82a0a116a85e [1/11] block: remove RQF_ALLOCED
config: m68k-randconfig-r031-20210317 (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.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
git remote add hch-misc git://git.infradead.org/users/hch/misc.git
git fetch --no-tags hch-misc remove-ide
git checkout 10455e3e7e8a75cef5bac97611bf82a0a116a85e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/kernel.h:12,
from block/blk-mq-debugfs.c:6:
>> block/blk-mq-debugfs.c:293:44: error: 'RQF_ALLOCED' undeclared here (not in a function)
293 | #define RQF_NAME(name) [ilog2((__force u32)RQF_##name)] = #name
| ^~~~
include/linux/log2.h:158:23: note: in definition of macro 'ilog2'
158 | __builtin_constant_p(n) ? \
| ^
block/blk-mq-debugfs.c:305:2: note: in expansion of macro 'RQF_NAME'
305 | RQF_NAME(ALLOCED),
| ^~~~~~~~
>> include/linux/log2.h:157:1: error: array index in initializer not of integer type
157 | ( \
| ^
block/blk-mq-debugfs.c:293:25: note: in expansion of macro 'ilog2'
293 | #define RQF_NAME(name) [ilog2((__force u32)RQF_##name)] = #name
| ^~~~~
block/blk-mq-debugfs.c:305:2: note: in expansion of macro 'RQF_NAME'
305 | RQF_NAME(ALLOCED),
| ^~~~~~~~
include/linux/log2.h:157:1: note: (near initialization for 'rqf_name')
157 | ( \
| ^
block/blk-mq-debugfs.c:293:25: note: in expansion of macro 'ilog2'
293 | #define RQF_NAME(name) [ilog2((__force u32)RQF_##name)] = #name
| ^~~~~
block/blk-mq-debugfs.c:305:2: note: in expansion of macro 'RQF_NAME'
305 | RQF_NAME(ALLOCED),
| ^~~~~~~~
vim +/RQF_ALLOCED +293 block/blk-mq-debugfs.c
8658dca8bd5666 Bart Van Assche 2017-04-26 292
1a435111f8eb30 Omar Sandoval 2017-05-04 @293 #define RQF_NAME(name) [ilog2((__force u32)RQF_##name)] = #name
8658dca8bd5666 Bart Van Assche 2017-04-26 294 static const char *const rqf_name[] = {
85ba3effc5a083 Jens Axboe 2018-01-12 295 RQF_NAME(STARTED),
1a435111f8eb30 Omar Sandoval 2017-05-04 296 RQF_NAME(SOFTBARRIER),
1a435111f8eb30 Omar Sandoval 2017-05-04 297 RQF_NAME(FLUSH_SEQ),
1a435111f8eb30 Omar Sandoval 2017-05-04 298 RQF_NAME(MIXED_MERGE),
1a435111f8eb30 Omar Sandoval 2017-05-04 299 RQF_NAME(MQ_INFLIGHT),
1a435111f8eb30 Omar Sandoval 2017-05-04 300 RQF_NAME(DONTPREP),
1a435111f8eb30 Omar Sandoval 2017-05-04 301 RQF_NAME(FAILED),
1a435111f8eb30 Omar Sandoval 2017-05-04 302 RQF_NAME(QUIET),
1a435111f8eb30 Omar Sandoval 2017-05-04 303 RQF_NAME(ELVPRIV),
1a435111f8eb30 Omar Sandoval 2017-05-04 304 RQF_NAME(IO_STAT),
1a435111f8eb30 Omar Sandoval 2017-05-04 305 RQF_NAME(ALLOCED),
1a435111f8eb30 Omar Sandoval 2017-05-04 306 RQF_NAME(PM),
1a435111f8eb30 Omar Sandoval 2017-05-04 307 RQF_NAME(HASHED),
1a435111f8eb30 Omar Sandoval 2017-05-04 308 RQF_NAME(STATS),
1a435111f8eb30 Omar Sandoval 2017-05-04 309 RQF_NAME(SPECIAL_PAYLOAD),
5d75d3f2e736d6 Jens Axboe 2018-01-10 310 RQF_NAME(ZONE_WRITE_LOCKED),
76a86f9d027b34 Jens Axboe 2018-01-10 311 RQF_NAME(MQ_POLL_SLEPT),
8658dca8bd5666 Bart Van Assche 2017-04-26 312 };
1a435111f8eb30 Omar Sandoval 2017-05-04 313 #undef RQF_NAME
8658dca8bd5666 Bart Van Assche 2017-04-26 314
:::::: The code at line 293 was first introduced by commit
:::::: 1a435111f8eb30b370e3891caebb1d1ca61f41ec blk-mq-debugfs: clean up flag definitions
:::::: TO: Omar Sandoval <osandov@fb.com>
:::::: CC: Jens Axboe <axboe@fb.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 24964 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-03-17 11:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-17 11:54 [hch-misc:remove-ide 1/11] block/blk-mq-debugfs.c:293:44: error: 'RQF_ALLOCED' undeclared here (not in a function) kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.