All of lore.kernel.org
 help / color / mirror / Atom feed
* [block:io_uring-bio-cache 5/8] fs/io_uring.c:1178:48: error: no member named 'bio_cache' in 'struct io_comp_state'
@ 2021-03-19  8:35 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-03-19  8:35 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 4541 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git io_uring-bio-cache
head:   02a7d585f8ec89e3022de62157180affb4aca7e3
commit: 12d0247e65530b9e4f601e97016e7c284cb537fc [5/8] io_uring: wire up bio allocation cache
config: powerpc-randconfig-r001-20210318 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project fcc1ce00931751ac02498986feb37744e9ace8de)
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
        # install powerpc cross compiling tool for clang build
        # apt-get install binutils-powerpc-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git/commit/?id=12d0247e65530b9e4f601e97016e7c284cb537fc
        git remote add block https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git
        git fetch --no-tags block io_uring-bio-cache
        git checkout 12d0247e65530b9e4f601e97016e7c284cb537fc
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc 

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 >>):

>> fs/io_uring.c:1178:48: error: no member named 'bio_cache' in 'struct io_comp_state'
                   bio_alloc_cache_init(&ctx->submit_state.comp.bio_cache);
                                         ~~~~~~~~~~~~~~~~~~~~~~ ^
   fs/io_uring.c:2794:49: error: no member named 'bio_cache' in 'struct io_comp_state'
                           kiocb->ki_bi_cache = &ctx->submit_state.comp.bio_cache;
                                                 ~~~~~~~~~~~~~~~~~~~~~~ ^
   fs/io_uring.c:8464:32: error: no member named 'bio_cache' in 'struct io_comp_state'
                   bio_alloc_cache_destroy(&cs->bio_cache);
                                            ~~  ^
   3 errors generated.


vim +1178 fs/io_uring.c

  1125	
  1126	static struct io_ring_ctx *io_ring_ctx_alloc(struct io_uring_params *p)
  1127	{
  1128		struct io_ring_ctx *ctx;
  1129		int hash_bits;
  1130	
  1131		ctx = kzalloc(sizeof(*ctx), GFP_KERNEL);
  1132		if (!ctx)
  1133			return NULL;
  1134	
  1135		/*
  1136		 * Use 5 bits less than the max cq entries, that should give us around
  1137		 * 32 entries per hash list if totally full and uniformly spread.
  1138		 */
  1139		hash_bits = ilog2(p->cq_entries);
  1140		hash_bits -= 5;
  1141		if (hash_bits <= 0)
  1142			hash_bits = 1;
  1143		ctx->cancel_hash_bits = hash_bits;
  1144		ctx->cancel_hash = kmalloc((1U << hash_bits) * sizeof(struct hlist_head),
  1145						GFP_KERNEL);
  1146		if (!ctx->cancel_hash)
  1147			goto err;
  1148		__hash_init(ctx->cancel_hash, 1U << hash_bits);
  1149	
  1150		if (percpu_ref_init(&ctx->refs, io_ring_ctx_ref_free,
  1151				    PERCPU_REF_ALLOW_REINIT, GFP_KERNEL))
  1152			goto err;
  1153	
  1154		ctx->flags = p->flags;
  1155		init_waitqueue_head(&ctx->sqo_sq_wait);
  1156		INIT_LIST_HEAD(&ctx->sqd_list);
  1157		init_waitqueue_head(&ctx->cq_wait);
  1158		INIT_LIST_HEAD(&ctx->cq_overflow_list);
  1159		init_completion(&ctx->ref_comp);
  1160		xa_init_flags(&ctx->io_buffers, XA_FLAGS_ALLOC1);
  1161		xa_init_flags(&ctx->personalities, XA_FLAGS_ALLOC1);
  1162		mutex_init(&ctx->uring_lock);
  1163		init_waitqueue_head(&ctx->wait);
  1164		spin_lock_init(&ctx->completion_lock);
  1165		INIT_LIST_HEAD(&ctx->iopoll_list);
  1166		INIT_LIST_HEAD(&ctx->defer_list);
  1167		INIT_LIST_HEAD(&ctx->timeout_list);
  1168		spin_lock_init(&ctx->inflight_lock);
  1169		INIT_LIST_HEAD(&ctx->inflight_list);
  1170		spin_lock_init(&ctx->rsrc_ref_lock);
  1171		INIT_LIST_HEAD(&ctx->rsrc_ref_list);
  1172		INIT_DELAYED_WORK(&ctx->rsrc_put_work, io_rsrc_put_work);
  1173		init_llist_head(&ctx->rsrc_put_llist);
  1174		INIT_LIST_HEAD(&ctx->tctx_list);
  1175		INIT_LIST_HEAD(&ctx->submit_state.comp.free_list);
  1176		INIT_LIST_HEAD(&ctx->submit_state.comp.locked_free_list);
  1177		if (IS_ENABLED(CONFIG_BLOCK))
> 1178			bio_alloc_cache_init(&ctx->submit_state.comp.bio_cache);
  1179		return ctx;
  1180	err:
  1181		kfree(ctx->cancel_hash);
  1182		kfree(ctx);
  1183		return NULL;
  1184	}
  1185	

---
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: 43570 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-03-19  8:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-19  8:35 [block:io_uring-bio-cache 5/8] fs/io_uring.c:1178:48: error: no member named 'bio_cache' in 'struct io_comp_state' 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.