All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Gabriel Krisman Bertazi <krisman@suse.de>
Cc: oe-kbuild-all@lists.linux.dev, Jens Axboe <axboe@kernel.dk>
Subject: [linux-next:master 3610/5236] io_uring/io_uring.h:229:27: error: implicit declaration of function 'io_cache_alloc'; did you mean 'kmem_cache_alloc'?
Date: Thu, 26 Dec 2024 21:13:19 +0800	[thread overview]
Message-ID: <202412262106.bjOOaZcE-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   8155b4ef3466f0e289e8fcc9e6e62f3f4dceeac2
commit: 694022b01368387cc1ed8485e279dfe27939ee43 [3610/5236] io_uring: Add generic helper to allocate async data
config: x86_64-rhel-9.4 (https://download.01.org/0day-ci/archive/20241226/202412262106.bjOOaZcE-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241226/202412262106.bjOOaZcE-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/202412262106.bjOOaZcE-lkp@intel.com/

Note: the linux-next/master HEAD 8155b4ef3466f0e289e8fcc9e6e62f3f4dceeac2 builds fine.
      It may have been fixed somewhere.

All errors (new ones prefixed by >>):

   In file included from io_uring/io_uring.c:82:
   io_uring/io_uring.h: In function 'io_uring_alloc_async_data':
>> io_uring/io_uring.h:229:27: error: implicit declaration of function 'io_cache_alloc'; did you mean 'kmem_cache_alloc'? [-Werror=implicit-function-declaration]
     229 |         req->async_data = io_cache_alloc(cache, GFP_KERNEL, init_once);
         |                           ^~~~~~~~~~~~~~
         |                           kmem_cache_alloc
   io_uring/io_uring.h:229:25: warning: assignment to 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
     229 |         req->async_data = io_cache_alloc(cache, GFP_KERNEL, init_once);
         |                         ^
   In file included from io_uring/io_uring.c:104:
   io_uring/alloc_cache.h: At top level:
>> io_uring/alloc_cache.h:33:21: error: conflicting types for 'io_cache_alloc'; have 'void *(struct io_alloc_cache *, gfp_t,  void (*)(void *))' {aka 'void *(struct io_alloc_cache *, unsigned int,  void (*)(void *))'}
      33 | static inline void *io_cache_alloc(struct io_alloc_cache *cache, gfp_t gfp,
         |                     ^~~~~~~~~~~~~~
   io_uring/io_uring.h:229:27: note: previous implicit declaration of 'io_cache_alloc' with type 'int()'
     229 |         req->async_data = io_cache_alloc(cache, GFP_KERNEL, init_once);
         |                           ^~~~~~~~~~~~~~
   cc1: some warnings being treated as errors
--
   In file included from io_uring/opdef.c:11:
   io_uring/io_uring.h: In function 'io_uring_alloc_async_data':
>> io_uring/io_uring.h:229:27: error: implicit declaration of function 'io_cache_alloc'; did you mean 'kmem_cache_alloc'? [-Werror=implicit-function-declaration]
     229 |         req->async_data = io_cache_alloc(cache, GFP_KERNEL, init_once);
         |                           ^~~~~~~~~~~~~~
         |                           kmem_cache_alloc
   io_uring/io_uring.h:229:25: warning: assignment to 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
     229 |         req->async_data = io_cache_alloc(cache, GFP_KERNEL, init_once);
         |                         ^
   cc1: some warnings being treated as errors


vim +229 io_uring/io_uring.h

   224	
   225	static inline void *io_uring_alloc_async_data(struct io_alloc_cache *cache,
   226						      struct io_kiocb *req,
   227						      void (*init_once)(void *obj))
   228	{
 > 229		req->async_data = io_cache_alloc(cache, GFP_KERNEL, init_once);
   230		if (req->async_data)
   231			req->flags |= REQ_F_ASYNC_DATA;
   232		return req->async_data;
   233	}
   234	

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

             reply	other threads:[~2024-12-26 13:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-26 13:13 kernel test robot [this message]
2024-12-27 17:10 ` [linux-next:master 3610/5236] io_uring/io_uring.h:229:27: error: implicit declaration of function 'io_cache_alloc'; did you mean 'kmem_cache_alloc'? Jens Axboe
2024-12-30 23:05   ` Gabriel Krisman Bertazi
2024-12-31  0:13     ` Jens Axboe

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=202412262106.bjOOaZcE-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=axboe@kernel.dk \
    --cc=krisman@suse.de \
    --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.