* [isilence:zc/rx-pp-provider 19/31] io_uring/zc_rx.h:31:2: warning: void function 'io_unregister_zc_rx_ifq' should not return a value
@ 2023-12-10 17:31 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-12-10 17:31 UTC (permalink / raw)
To: David Wei; +Cc: llvm, oe-kbuild-all, Pavel Begunkov
tree: https://github.com/isilence/linux zc/rx-pp-provider
head: 4b8de8977565096e38b6da993c68da6f2ef9b89c
commit: a637a9b59d1de6a86ea926ae416dd7bc1f4b6da1 [19/31] io_uring: add interface queue
config: i386-randconfig-012-20231210 (https://download.01.org/0day-ci/archive/20231211/202312110113.8edLMeAh-lkp@intel.com/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231211/202312110113.8edLMeAh-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/202312110113.8edLMeAh-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from io_uring/io_uring.c:98:
>> io_uring/zc_rx.h:31:2: warning: void function 'io_unregister_zc_rx_ifq' should not return a value [-Wreturn-type]
return -EOPNOTSUPP;
^ ~~~~~~~~~~~
io_uring/io_uring.c:2923:2: error: call to undeclared function 'io_unregister_zc_rx_ifqs'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
io_unregister_zc_rx_ifqs(ctx);
^
io_uring/io_uring.c:2923:2: note: did you mean 'io_unregister_zc_rx_ifq'?
io_uring/zc_rx.h:29:20: note: 'io_unregister_zc_rx_ifq' declared here
static inline void io_unregister_zc_rx_ifq(struct io_ring_ctx *ctx)
^
io_uring/io_uring.c:3116:4: error: call to undeclared function 'io_shut_zc_rx_ifqs'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
io_shut_zc_rx_ifqs(ctx);
^
1 warning and 2 errors generated.
--
In file included from io_uring/zc_rx.c:12:
>> io_uring/zc_rx.h:31:2: warning: void function 'io_unregister_zc_rx_ifq' should not return a value [-Wreturn-type]
return -EOPNOTSUPP;
^ ~~~~~~~~~~~
>> io_uring/zc_rx.c:14:5: warning: no previous prototype for function 'io_allocate_rbuf_ring' [-Wmissing-prototypes]
int io_allocate_rbuf_ring(struct io_zc_rx_ifq *ifq,
^
io_uring/zc_rx.c:14:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int io_allocate_rbuf_ring(struct io_zc_rx_ifq *ifq,
^
static
>> io_uring/zc_rx.c:34:6: warning: no previous prototype for function 'io_free_rbuf_ring' [-Wmissing-prototypes]
void io_free_rbuf_ring(struct io_zc_rx_ifq *ifq)
^
io_uring/zc_rx.c:34:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void io_free_rbuf_ring(struct io_zc_rx_ifq *ifq)
^
static
io_uring/zc_rx.c:59:5: error: redefinition of 'io_register_zc_rx_ifq'
int io_register_zc_rx_ifq(struct io_ring_ctx *ctx,
^
io_uring/zc_rx.h:24:19: note: previous definition is here
static inline int io_register_zc_rx_ifq(struct io_ring_ctx *ctx,
^
>> io_uring/zc_rx.c:98:6: warning: no previous prototype for function 'io_unregister_zc_rx_ifqs' [-Wmissing-prototypes]
void io_unregister_zc_rx_ifqs(struct io_ring_ctx *ctx)
^
io_uring/zc_rx.c:98:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void io_unregister_zc_rx_ifqs(struct io_ring_ctx *ctx)
^
static
>> io_uring/zc_rx.c:111:6: warning: no previous prototype for function 'io_shut_zc_rx_ifqs' [-Wmissing-prototypes]
void io_shut_zc_rx_ifqs(struct io_ring_ctx *ctx)
^
io_uring/zc_rx.c:111:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void io_shut_zc_rx_ifqs(struct io_ring_ctx *ctx)
^
static
5 warnings and 1 error generated.
vim +/io_unregister_zc_rx_ifq +31 io_uring/zc_rx.h
17
18 #if defined(CONFIG_PAGE_POOL)
19 int io_register_zc_rx_ifq(struct io_ring_ctx *ctx,
20 struct io_uring_zc_rx_ifq_reg __user *arg);
21 void io_unregister_zc_rx_ifqs(struct io_ring_ctx *ctx);
22 void io_shut_zc_rx_ifqs(struct io_ring_ctx *ctx);
23 #else
24 static inline int io_register_zc_rx_ifq(struct io_ring_ctx *ctx,
25 struct io_uring_zc_rx_ifq_reg __user *arg)
26 {
27 return -EOPNOTSUPP;
28 }
29 static inline void io_unregister_zc_rx_ifq(struct io_ring_ctx *ctx)
30 {
> 31 return -EOPNOTSUPP;
32 }
33 #endif
34
--
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:[~2023-12-10 17:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-10 17:31 [isilence:zc/rx-pp-provider 19/31] io_uring/zc_rx.h:31:2: warning: void function 'io_unregister_zc_rx_ifq' should not return a value 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.