Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Jens Axboe <axboe@kernel.dk>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [axboe-block:io_uring-ring-resize 5/5] io_uring/memmap.c:340:19: error: incomplete definition of type 'struct io_uring_ctx'
Date: Fri, 25 Oct 2024 17:35:23 +0800	[thread overview]
Message-ID: <202410251733.6jfoIXCQ-lkp@intel.com> (raw)

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

                 reply	other threads:[~2024-10-25  9:35 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=202410251733.6jfoIXCQ-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=axboe@kernel.dk \
    --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