From: kernel test robot <lkp@intel.com>
To: Jens Axboe <axboe@kernel.dk>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [axboe-block:io_uring-ring-resize 5/5] io_uring/memmap.c:340:26: error: invalid use of undefined type 'struct io_uring_ctx'
Date: Fri, 25 Oct 2024 17:56:09 +0800 [thread overview]
Message-ID: <202410251729.DfclLBp9-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: m68k-randconfig-r071-20241025 (https://download.01.org/0day-ci/archive/20241025/202410251729.DfclLBp9-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241025/202410251729.DfclLBp9-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/202410251729.DfclLBp9-lkp@intel.com/
All errors (new ones prefixed by >>):
io_uring/memmap.c: In function 'io_uring_get_unmapped_area':
>> io_uring/memmap.c:340:26: error: invalid use of undefined type 'struct io_uring_ctx'
340 | guard(mutex)(&ctx->resize_lock);
| ^~
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for GET_FREE_REGION
Depends on [n]: SPARSEMEM [=n]
Selected by [m]:
- RESOURCE_KUNIT_TEST [=m] && RUNTIME_TESTING_MENU [=y] && KUNIT [=m]
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:56 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=202410251729.DfclLBp9-lkp@intel.com \
--to=lkp@intel.com \
--cc=axboe@kernel.dk \
--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 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.