Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [axboe-block:io_uring-ring-resize 5/5] io_uring/memmap.c:340:19: error: incomplete definition of type 'struct io_uring_ctx'
@ 2024-10-25  9:35 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-10-25  9:35 UTC (permalink / raw)
  To: Jens Axboe; +Cc: llvm, oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git io_uring-ring-resize
head:   a33a9152eb06cc15d20dc9d1def2a33b3ff88d81
commit: a33a9152eb06cc15d20dc9d1def2a33b3ff88d81 [5/5] io_uring/register: add IORING_REGISTER_RESIZE_RINGS
config: arm-allnoconfig (https://download.01.org/0day-ci/archive/20241025/202410251733.6jfoIXCQ-lkp@intel.com/config)
compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project 5886454669c3c9026f7f27eab13509dd0241f2d6)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241025/202410251733.6jfoIXCQ-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/202410251733.6jfoIXCQ-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from io_uring/memmap.c:5:
   In file included from include/linux/mm.h:2213:
   include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
     518 |         return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
         |                               ~~~~~~~~~~~ ^ ~~~
>> io_uring/memmap.c:340:19: error: incomplete definition of type 'struct io_uring_ctx'
     340 |         guard(mutex)(&ctx->resize_lock);
         |                       ~~~^
   io_uring/memmap.c:337:9: note: forward declaration of 'struct io_uring_ctx'
     337 |         struct io_uring_ctx *ctx = file->private_data;
         |                ^
   1 warning and 1 error generated.


vim +340 io_uring/memmap.c

   332	
   333	unsigned long io_uring_get_unmapped_area(struct file *file, unsigned long addr,
   334						 unsigned long len, unsigned long pgoff,
   335						 unsigned long flags)
   336	{
   337		struct io_uring_ctx *ctx = file->private_data;
   338		void *ptr;
   339	
 > 340		guard(mutex)(&ctx->resize_lock);
   341	
   342		ptr = io_uring_validate_mmap_request(file, pgoff, len);
   343		if (IS_ERR(ptr))
   344			return PTR_ERR(ptr);
   345	
   346		return (unsigned long) ptr;
   347	}
   348	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

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

only message in thread, other threads:[~2024-10-25  9:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-25  9:35 [axboe-block:io_uring-ring-resize 5/5] io_uring/memmap.c:340:19: error: incomplete definition of type 'struct io_uring_ctx' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox