From: kernel test robot <lkp@intel.com>
Cc: oe-kbuild-all@lists.linux.dev, llvm@lists.linux.dev
Subject: [android-common:android16-6.12 0/1] Unable to generate bindings: clang diagnosed error: include/linux/blkdev.h:1699:17: error: field has incomplete type 'struct rq_list'
Date: Sat, 22 Nov 2025 15:21:47 +0800 [thread overview]
Message-ID: <202511221532.nBTygcY8-lkp@intel.com> (raw)
TO: cros-kernel-buildreports@googlegroups.com
tree: https://android.googlesource.com/kernel/common android16-6.12
head: c1902e025e9f61d6df517052ea698b429b1f6589
commit: 24f685a927c5a41df01d66069493bee40a5fb60e [0/1] UPSTREAM: block: add a rq_list type
config: x86_64-randconfig-001-20251122 (https://download.01.org/0day-ci/archive/20251122/202511221532.nBTygcY8-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
rustc: rustc 1.88.0 (6b00bc388 2025-06-23)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251122/202511221532.nBTygcY8-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202511221532.nBTygcY8-lkp@intel.com/
All errors (new ones prefixed by >>):
| ~~^
include/linux/blkdev.h:1699:9: note: forward declaration of 'struct rq_list'
1699 | struct rq_list req_list;
| ^
In file included from rust/helpers/helpers.c:11:
In file included from rust/helpers/blk.c:3:
include/linux/blk-mq.h:271:5: error: incomplete definition of type 'struct rq_list'
271 | rl->head = rl->head->rq_next;
| ~~^
include/linux/blkdev.h:1699:9: note: forward declaration of 'struct rq_list'
1699 | struct rq_list req_list;
| ^
In file included from rust/helpers/helpers.c:11:
In file included from rust/helpers/blk.c:3:
include/linux/blk-mq.h:271:16: error: incomplete definition of type 'struct rq_list'
271 | rl->head = rl->head->rq_next;
| ~~^
include/linux/blkdev.h:1699:9: note: forward declaration of 'struct rq_list'
1699 | struct rq_list req_list;
| ^
In file included from rust/helpers/helpers.c:11:
In file included from rust/helpers/blk.c:3:
include/linux/blk-mq.h:272:10: error: incomplete definition of type 'struct rq_list'
272 | if (!rl->head)
| ~~^
include/linux/blkdev.h:1699:9: note: forward declaration of 'struct rq_list'
1699 | struct rq_list req_list;
| ^
In file included from rust/helpers/helpers.c:11:
In file included from rust/helpers/blk.c:3:
include/linux/blk-mq.h:273:6: error: incomplete definition of type 'struct rq_list'
273 | rl->tail = NULL;
| ~~^
include/linux/blkdev.h:1699:9: note: forward declaration of 'struct rq_list'
1699 | struct rq_list req_list;
| ^
In file included from rust/helpers/helpers.c:11:
In file included from rust/helpers/blk.c:3:
include/linux/blk-mq.h:282:11: error: incomplete definition of type 'struct rq_list'
282 | return rl->head;
| ~~^
include/linux/blkdev.h:1699:9: note: forward declaration of 'struct rq_list'
1699 | struct rq_list req_list;
| ^
In file included from rust/helpers/helpers.c:21:
In file included from rust/helpers/mman.c:3:
include/linux/mman.h:159:9: warning: division by zero is undefined [-Wdivision-by-zero]
159 | _calc_vm_trans(flags, MAP_SYNC, VM_SYNC ) |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/mman.h:137:21: note: expanded from macro '_calc_vm_trans'
137 | : ((x) & (bit1)) / ((bit1) / (bit2))))
| ^ ~~~~~~~~~~~~~~~~~
include/linux/mman.h:160:9: warning: division by zero is undefined [-Wdivision-by-zero]
160 | _calc_vm_trans(flags, MAP_STACK, VM_NOHUGEPAGE) |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/mman.h:137:21: note: expanded from macro '_calc_vm_trans'
137 | : ((x) & (bit1)) / ((bit1) / (bit2))))
| ^ ~~~~~~~~~~~~~~~~~
2 warnings and 18 errors generated.
make[3]: *** [rust/Makefile:431: rust/helpers/helpers.o] Error 1 shuffle=4150035346
include/linux/blkdev.h:1699:17: error: field has incomplete type 'struct rq_list'
include/linux/blkdev.h:1699:9: note: forward declaration of 'struct rq_list'
include/linux/blk-mq.h:239:11: error: incomplete definition of type 'const struct rq_list'
include/linux/blkdev.h:1699:9: note: forward declaration of 'struct rq_list'
include/linux/blk-mq.h:244:4: error: incomplete definition of type 'struct rq_list'
include/linux/blkdev.h:1699:9: note: forward declaration of 'struct rq_list'
include/linux/blk-mq.h:245:4: error: incomplete definition of type 'struct rq_list'
include/linux/blkdev.h:1699:9: note: forward declaration of 'struct rq_list'
include/linux/blk-mq.h:251:8: error: incomplete definition of type 'struct rq_list'
include/linux/blkdev.h:1699:9: note: forward declaration of 'struct rq_list'
include/linux/blk-mq.h:252:5: error: incomplete definition of type 'struct rq_list'
include/linux/blkdev.h:1699:9: note: forward declaration of 'struct rq_list'
include/linux/blk-mq.h:254:5: error: incomplete definition of type 'struct rq_list'
include/linux/blkdev.h:1699:9: note: forward declaration of 'struct rq_list'
include/linux/blk-mq.h:255:4: error: incomplete definition of type 'struct rq_list'
include/linux/blkdev.h:1699:9: note: forward declaration of 'struct rq_list'
include/linux/blk-mq.h:260:18: error: incomplete definition of type 'struct rq_list'
include/linux/blkdev.h:1699:9: note: forward declaration of 'struct rq_list'
include/linux/blk-mq.h:261:4: error: incomplete definition of type 'struct rq_list'
include/linux/blkdev.h:1699:9: note: forward declaration of 'struct rq_list'
include/linux/blk-mq.h:262:9: error: incomplete definition of type 'struct rq_list'
include/linux/blkdev.h:1699:9: note: forward declaration of 'struct rq_list'
include/linux/blk-mq.h:263:5: error: incomplete definition of type 'struct rq_list'
include/linux/blkdev.h:1699:9: note: forward declaration of 'struct rq_list'
include/linux/blk-mq.h:268:25: error: incomplete definition of type 'struct rq_list'
include/linux/blkdev.h:1699:9: note: forward declaration of 'struct rq_list'
include/linux/blk-mq.h:271:5: error: incomplete definition of type 'struct rq_list'
include/linux/blkdev.h:1699:9: note: forward declaration of 'struct rq_list'
include/linux/blk-mq.h:271:16: error: incomplete definition of type 'struct rq_list'
include/linux/blkdev.h:1699:9: note: forward declaration of 'struct rq_list'
include/linux/blk-mq.h:272:10: error: incomplete definition of type 'struct rq_list'
include/linux/blkdev.h:1699:9: note: forward declaration of 'struct rq_list'
include/linux/blk-mq.h:273:6: error: incomplete definition of type 'struct rq_list'
include/linux/blkdev.h:1699:9: note: forward declaration of 'struct rq_list'
include/linux/blk-mq.h:282:11: error: incomplete definition of type 'struct rq_list'
include/linux/blkdev.h:1699:9: note: forward declaration of 'struct rq_list'
include/linux/mman.h:137:21: warning: division by zero is undefined [-Wdivision-by-zero]
include/linux/mman.h:137:21: warning: division by zero is undefined [-Wdivision-by-zero]
clang diag: include/linux/mman.h:137:21: warning: division by zero is undefined [-Wdivision-by-zero]
clang diag: include/linux/mman.h:137:21: warning: division by zero is undefined [-Wdivision-by-zero]
>> Unable to generate bindings: clang diagnosed error: include/linux/blkdev.h:1699:17: error: field has incomplete type 'struct rq_list'
include/linux/blk-mq.h:239:11: error: incomplete definition of type 'const struct rq_list'
include/linux/blk-mq.h:244:4: error: incomplete definition of type 'struct rq_list'
include/linux/blk-mq.h:245:4: error: incomplete definition of type 'struct rq_list'
include/linux/blk-mq.h:251:8: error: incomplete definition of type 'struct rq_list'
include/linux/blk-mq.h:252:5: error: incomplete definition of type 'struct rq_list'
include/linux/blk-mq.h:254:5: error: incomplete definition of type 'struct rq_list'
include/linux/blk-mq.h:255:4: error: incomplete definition of type 'struct rq_list'
include/linux/blk-mq.h:260:18: error: incomplete definition of type 'struct rq_list'
include/linux/blk-mq.h:261:4: error: incomplete definition of type 'struct rq_list'
include/linux/blk-mq.h:262:9: error: incomplete definition of type 'struct rq_list'
include/linux/blk-mq.h:263:5: error: incomplete definition of type 'struct rq_list'
include/linux/blk-mq.h:268:25: error: incomplete definition of type 'struct rq_list'
include/linux/blk-mq.h:271:5: error: incomplete definition of type 'struct rq_list'
include/linux/blk-mq.h:271:16: error: incomplete definition of type 'struct rq_list'
include/linux/blk-mq.h:272:10: error: incomplete definition of type 'struct rq_list'
include/linux/blk-mq.h:273:6: error: incomplete definition of type 'struct rq_list'
include/linux/blk-mq.h:282:11: error: incomplete definition of type 'struct rq_list'
--
make[3]: *** [rust/Makefile:332: rust/bindings/bindings_helpers_generated.rs] Error 1 shuffle=4150035346
make[3]: *** Deleting file 'rust/bindings/bindings_helpers_generated.rs'
include/linux/blkdev.h:1699:17: error: field has incomplete type 'struct rq_list'
include/linux/blkdev.h:1699:9: note: forward declaration of 'struct rq_list'
include/linux/blk-mq.h:239:11: error: incomplete definition of type 'const struct rq_list'
include/linux/blkdev.h:1699:9: note: forward declaration of 'struct rq_list'
include/linux/blk-mq.h:244:4: error: incomplete definition of type 'struct rq_list'
include/linux/blkdev.h:1699:9: note: forward declaration of 'struct rq_list'
include/linux/blk-mq.h:245:4: error: incomplete definition of type 'struct rq_list'
include/linux/blkdev.h:1699:9: note: forward declaration of 'struct rq_list'
include/linux/blk-mq.h:251:8: error: incomplete definition of type 'struct rq_list'
include/linux/blkdev.h:1699:9: note: forward declaration of 'struct rq_list'
include/linux/blk-mq.h:252:5: error: incomplete definition of type 'struct rq_list'
include/linux/blkdev.h:1699:9: note: forward declaration of 'struct rq_list'
include/linux/blk-mq.h:254:5: error: incomplete definition of type 'struct rq_list'
include/linux/blkdev.h:1699:9: note: forward declaration of 'struct rq_list'
include/linux/blk-mq.h:255:4: error: incomplete definition of type 'struct rq_list'
include/linux/blkdev.h:1699:9: note: forward declaration of 'struct rq_list'
include/linux/blk-mq.h:260:18: error: incomplete definition of type 'struct rq_list'
include/linux/blkdev.h:1699:9: note: forward declaration of 'struct rq_list'
include/linux/blk-mq.h:261:4: error: incomplete definition of type 'struct rq_list'
include/linux/blkdev.h:1699:9: note: forward declaration of 'struct rq_list'
include/linux/blk-mq.h:262:9: error: incomplete definition of type 'struct rq_list'
include/linux/blkdev.h:1699:9: note: forward declaration of 'struct rq_list'
include/linux/blk-mq.h:263:5: error: incomplete definition of type 'struct rq_list'
include/linux/blkdev.h:1699:9: note: forward declaration of 'struct rq_list'
include/linux/blk-mq.h:268:25: error: incomplete definition of type 'struct rq_list'
include/linux/blkdev.h:1699:9: note: forward declaration of 'struct rq_list'
include/linux/blk-mq.h:271:5: error: incomplete definition of type 'struct rq_list'
include/linux/blkdev.h:1699:9: note: forward declaration of 'struct rq_list'
include/linux/blk-mq.h:271:16: error: incomplete definition of type 'struct rq_list'
include/linux/blkdev.h:1699:9: note: forward declaration of 'struct rq_list'
include/linux/blk-mq.h:272:10: error: incomplete definition of type 'struct rq_list'
include/linux/blkdev.h:1699:9: note: forward declaration of 'struct rq_list'
include/linux/blk-mq.h:273:6: error: incomplete definition of type 'struct rq_list'
include/linux/blkdev.h:1699:9: note: forward declaration of 'struct rq_list'
include/linux/blk-mq.h:282:11: error: incomplete definition of type 'struct rq_list'
include/linux/blkdev.h:1699:9: note: forward declaration of 'struct rq_list'
include/linux/mman.h:137:21: warning: division by zero is undefined [-Wdivision-by-zero]
include/linux/mman.h:137:21: warning: division by zero is undefined [-Wdivision-by-zero]
clang diag: include/linux/mman.h:137:21: warning: division by zero is undefined [-Wdivision-by-zero]
clang diag: include/linux/mman.h:137:21: warning: division by zero is undefined [-Wdivision-by-zero]
>> Unable to generate bindings: clang diagnosed error: include/linux/blkdev.h:1699:17: error: field has incomplete type 'struct rq_list'
include/linux/blk-mq.h:239:11: error: incomplete definition of type 'const struct rq_list'
include/linux/blk-mq.h:244:4: error: incomplete definition of type 'struct rq_list'
include/linux/blk-mq.h:245:4: error: incomplete definition of type 'struct rq_list'
include/linux/blk-mq.h:251:8: error: incomplete definition of type 'struct rq_list'
include/linux/blk-mq.h:252:5: error: incomplete definition of type 'struct rq_list'
include/linux/blk-mq.h:254:5: error: incomplete definition of type 'struct rq_list'
include/linux/blk-mq.h:255:4: error: incomplete definition of type 'struct rq_list'
include/linux/blk-mq.h:260:18: error: incomplete definition of type 'struct rq_list'
include/linux/blk-mq.h:261:4: error: incomplete definition of type 'struct rq_list'
include/linux/blk-mq.h:262:9: error: incomplete definition of type 'struct rq_list'
include/linux/blk-mq.h:263:5: error: incomplete definition of type 'struct rq_list'
include/linux/blk-mq.h:268:25: error: incomplete definition of type 'struct rq_list'
include/linux/blk-mq.h:271:5: error: incomplete definition of type 'struct rq_list'
include/linux/blk-mq.h:271:16: error: incomplete definition of type 'struct rq_list'
include/linux/blk-mq.h:272:10: error: incomplete definition of type 'struct rq_list'
include/linux/blk-mq.h:273:6: error: incomplete definition of type 'struct rq_list'
include/linux/blk-mq.h:282:11: error: incomplete definition of type 'struct rq_list'
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-11-22 7:22 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202511221532.nBTygcY8-lkp@intel.com \
--to=lkp@intel.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).