From: kernel test robot <lkp@intel.com>
To: Hannes Reinecke <hare@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [hare-nvme:configfs-ns 1/9] drivers/nvme/target/bpf.h:26:9: error: call to undeclared function 'nvmet_bpf_req_complete'; ISO C99 and later do not support implicit function declarations
Date: Fri, 08 May 2026 20:16:20 +0200 [thread overview]
Message-ID: <202605082037.cGj85IJo-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/hare/nvme.git configfs-ns
head: 509cbb083b05db0f02a3ceea68bb093f8725a6a5
commit: 94040dcdf8d7b146f62dfb3e0156d93a9713880d [1/9] nvmet-bpf: eBPF struct_ops support for log pages
config: x86_64-kexec (https://download.01.org/0day-ci/archive/20260508/202605082037.cGj85IJo-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260508/202605082037.cGj85IJo-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/202605082037.cGj85IJo-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from drivers/nvme/target/core.c:17:
In file included from drivers/nvme/target/trace.h:19:
In file included from drivers/nvme/target/nvmet.h:26:
drivers/nvme/target/bpf.h:15:44: warning: declaration of 'struct nvmet_subsys_link' will not be visible outside of this function [-Wvisibility]
15 | static inline void nvmet_bpf_detach(struct nvmet_subsys_link *s) {}
| ^
drivers/nvme/target/bpf.h:16:47: warning: declaration of 'struct nvmet_subsys' will not be visible outside of this function [-Wvisibility]
16 | static inline bool nvmet_bpf_supported(struct nvmet_subsys *subsys, struct nvmet_port *port)
| ^
drivers/nvme/target/bpf.h:16:76: warning: declaration of 'struct nvmet_port' will not be visible outside of this function [-Wvisibility]
16 | static inline bool nvmet_bpf_supported(struct nvmet_subsys *subsys, struct nvmet_port *port)
| ^
drivers/nvme/target/bpf.h:20:56: warning: declaration of 'struct nvmet_req' will not be visible outside of this function [-Wvisibility]
20 | static inline bool nvmet_bpf_log_page_supported(struct nvmet_req *req, u8 lid)
| ^
drivers/nvme/target/bpf.h:24:50: warning: declaration of 'struct nvmet_subsys' will not be visible outside of this function [-Wvisibility]
24 | static inline void nvmet_bpf_get_log_page(struct nvmet_subsys *subsys, struct nvmet_req *req)
| ^
drivers/nvme/target/bpf.h:24:79: warning: declaration of 'struct nvmet_req' will not be visible outside of this function [-Wvisibility]
24 | static inline void nvmet_bpf_get_log_page(struct nvmet_subsys *subsys, struct nvmet_req *req)
| ^
>> drivers/nvme/target/bpf.h:26:9: error: call to undeclared function 'nvmet_bpf_req_complete'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
26 | return nvmet_bpf_req_complete(req, NVME_SC_INVALID_FIELD | NVME_SC_DNR);
| ^
>> drivers/nvme/target/bpf.h:26:61: error: use of undeclared identifier 'NVME_SC_DNR'
26 | return nvmet_bpf_req_complete(req, NVME_SC_INVALID_FIELD | NVME_SC_DNR);
| ^
6 warnings and 2 errors generated.
--
In file included from drivers/nvme/target/configfs.c:23:
In file included from drivers/nvme/target/nvmet.h:26:
drivers/nvme/target/bpf.h:15:44: warning: declaration of 'struct nvmet_subsys_link' will not be visible outside of this function [-Wvisibility]
15 | static inline void nvmet_bpf_detach(struct nvmet_subsys_link *s) {}
| ^
drivers/nvme/target/bpf.h:16:47: warning: declaration of 'struct nvmet_subsys' will not be visible outside of this function [-Wvisibility]
16 | static inline bool nvmet_bpf_supported(struct nvmet_subsys *subsys, struct nvmet_port *port)
| ^
drivers/nvme/target/bpf.h:16:76: warning: declaration of 'struct nvmet_port' will not be visible outside of this function [-Wvisibility]
16 | static inline bool nvmet_bpf_supported(struct nvmet_subsys *subsys, struct nvmet_port *port)
| ^
drivers/nvme/target/bpf.h:20:56: warning: declaration of 'struct nvmet_req' will not be visible outside of this function [-Wvisibility]
20 | static inline bool nvmet_bpf_log_page_supported(struct nvmet_req *req, u8 lid)
| ^
drivers/nvme/target/bpf.h:24:50: warning: declaration of 'struct nvmet_subsys' will not be visible outside of this function [-Wvisibility]
24 | static inline void nvmet_bpf_get_log_page(struct nvmet_subsys *subsys, struct nvmet_req *req)
| ^
drivers/nvme/target/bpf.h:24:79: warning: declaration of 'struct nvmet_req' will not be visible outside of this function [-Wvisibility]
24 | static inline void nvmet_bpf_get_log_page(struct nvmet_subsys *subsys, struct nvmet_req *req)
| ^
>> drivers/nvme/target/bpf.h:26:9: error: call to undeclared function 'nvmet_bpf_req_complete'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
26 | return nvmet_bpf_req_complete(req, NVME_SC_INVALID_FIELD | NVME_SC_DNR);
| ^
>> drivers/nvme/target/bpf.h:26:61: error: use of undeclared identifier 'NVME_SC_DNR'
26 | return nvmet_bpf_req_complete(req, NVME_SC_INVALID_FIELD | NVME_SC_DNR);
| ^
>> drivers/nvme/target/configfs.c:1114:19: error: incompatible pointer types passing 'struct nvmet_subsys_link *' to parameter of type 'struct nvmet_subsys_link *' [-Werror,-Wincompatible-pointer-types]
1114 | nvmet_bpf_detach(p);
| ^
drivers/nvme/target/bpf.h:15:63: note: passing argument to parameter 's' here
15 | static inline void nvmet_bpf_detach(struct nvmet_subsys_link *s) {}
| ^
6 warnings and 3 errors generated.
--
In file included from drivers/nvme/target/admin-cmd.c:13:
In file included from drivers/nvme/target/nvmet.h:26:
drivers/nvme/target/bpf.h:15:44: warning: declaration of 'struct nvmet_subsys_link' will not be visible outside of this function [-Wvisibility]
15 | static inline void nvmet_bpf_detach(struct nvmet_subsys_link *s) {}
| ^
drivers/nvme/target/bpf.h:16:47: warning: declaration of 'struct nvmet_subsys' will not be visible outside of this function [-Wvisibility]
16 | static inline bool nvmet_bpf_supported(struct nvmet_subsys *subsys, struct nvmet_port *port)
| ^
drivers/nvme/target/bpf.h:16:76: warning: declaration of 'struct nvmet_port' will not be visible outside of this function [-Wvisibility]
16 | static inline bool nvmet_bpf_supported(struct nvmet_subsys *subsys, struct nvmet_port *port)
| ^
drivers/nvme/target/bpf.h:20:56: warning: declaration of 'struct nvmet_req' will not be visible outside of this function [-Wvisibility]
20 | static inline bool nvmet_bpf_log_page_supported(struct nvmet_req *req, u8 lid)
| ^
drivers/nvme/target/bpf.h:24:50: warning: declaration of 'struct nvmet_subsys' will not be visible outside of this function [-Wvisibility]
24 | static inline void nvmet_bpf_get_log_page(struct nvmet_subsys *subsys, struct nvmet_req *req)
| ^
drivers/nvme/target/bpf.h:24:79: warning: declaration of 'struct nvmet_req' will not be visible outside of this function [-Wvisibility]
24 | static inline void nvmet_bpf_get_log_page(struct nvmet_subsys *subsys, struct nvmet_req *req)
| ^
>> drivers/nvme/target/bpf.h:26:9: error: call to undeclared function 'nvmet_bpf_req_complete'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
26 | return nvmet_bpf_req_complete(req, NVME_SC_INVALID_FIELD | NVME_SC_DNR);
| ^
>> drivers/nvme/target/bpf.h:26:61: error: use of undeclared identifier 'NVME_SC_DNR'
26 | return nvmet_bpf_req_complete(req, NVME_SC_INVALID_FIELD | NVME_SC_DNR);
| ^
>> drivers/nvme/target/admin-cmd.c:224:26: error: incompatible pointer types passing 'struct nvmet_subsys *' to parameter of type 'struct nvmet_subsys *' [-Werror,-Wincompatible-pointer-types]
224 | if (nvmet_bpf_supported(ctrl->subsys, req->port)) {
| ^~~~~~~~~~~~
drivers/nvme/target/bpf.h:16:61: note: passing argument to parameter 'subsys' here
16 | static inline bool nvmet_bpf_supported(struct nvmet_subsys *subsys, struct nvmet_port *port)
| ^
>> drivers/nvme/target/admin-cmd.c:224:40: error: incompatible pointer types passing 'struct nvmet_port *' to parameter of type 'struct nvmet_port *' [-Werror,-Wincompatible-pointer-types]
224 | if (nvmet_bpf_supported(ctrl->subsys, req->port)) {
| ^~~~~~~~~
drivers/nvme/target/bpf.h:16:88: note: passing argument to parameter 'port' here
16 | static inline bool nvmet_bpf_supported(struct nvmet_subsys *subsys, struct nvmet_port *port)
| ^
>> drivers/nvme/target/admin-cmd.c:228:37: error: incompatible pointer types passing 'struct nvmet_req *' to parameter of type 'struct nvmet_req *' [-Werror,-Wincompatible-pointer-types]
228 | if (nvmet_bpf_log_page_supported(req, i))
| ^~~
drivers/nvme/target/bpf.h:20:67: note: passing argument to parameter 'req' here
20 | static inline bool nvmet_bpf_log_page_supported(struct nvmet_req *req, u8 lid)
| ^
drivers/nvme/target/admin-cmd.c:626:26: error: incompatible pointer types passing 'struct nvmet_subsys *' to parameter of type 'struct nvmet_subsys *' [-Werror,-Wincompatible-pointer-types]
626 | if (nvmet_bpf_supported(ctrl->subsys, req->port) &&
| ^~~~~~~~~~~~
drivers/nvme/target/bpf.h:16:61: note: passing argument to parameter 'subsys' here
16 | static inline bool nvmet_bpf_supported(struct nvmet_subsys *subsys, struct nvmet_port *port)
| ^
drivers/nvme/target/admin-cmd.c:626:40: error: incompatible pointer types passing 'struct nvmet_port *' to parameter of type 'struct nvmet_port *' [-Werror,-Wincompatible-pointer-types]
626 | if (nvmet_bpf_supported(ctrl->subsys, req->port) &&
| ^~~~~~~~~
drivers/nvme/target/bpf.h:16:88: note: passing argument to parameter 'port' here
16 | static inline bool nvmet_bpf_supported(struct nvmet_subsys *subsys, struct nvmet_port *port)
| ^
drivers/nvme/target/admin-cmd.c:627:35: error: incompatible pointer types passing 'struct nvmet_req *' to parameter of type 'struct nvmet_req *' [-Werror,-Wincompatible-pointer-types]
627 | nvmet_bpf_log_page_supported(req, lid))
| ^~~
drivers/nvme/target/bpf.h:20:67: note: passing argument to parameter 'req' here
20 | static inline bool nvmet_bpf_log_page_supported(struct nvmet_req *req, u8 lid)
| ^
drivers/nvme/target/admin-cmd.c:628:33: error: incompatible pointer types passing 'struct nvmet_subsys *' to parameter of type 'struct nvmet_subsys *' [-Werror,-Wincompatible-pointer-types]
628 | return nvmet_bpf_get_log_page(ctrl->subsys, req);
| ^~~~~~~~~~~~
drivers/nvme/target/bpf.h:24:64: note: passing argument to parameter 'subsys' here
24 | static inline void nvmet_bpf_get_log_page(struct nvmet_subsys *subsys, struct nvmet_req *req)
| ^
drivers/nvme/target/admin-cmd.c:628:47: error: incompatible pointer types passing 'struct nvmet_req *' to parameter of type 'struct nvmet_req *' [-Werror,-Wincompatible-pointer-types]
628 | return nvmet_bpf_get_log_page(ctrl->subsys, req);
| ^~~
drivers/nvme/target/bpf.h:24:90: note: passing argument to parameter 'req' here
24 | static inline void nvmet_bpf_get_log_page(struct nvmet_subsys *subsys, struct nvmet_req *req)
| ^
6 warnings and 10 errors generated.
vim +/nvmet_bpf_req_complete +26 drivers/nvme/target/bpf.h
8
9 void nvmet_bpf_detach(struct nvmet_subsys_link *s);
10 bool nvmet_bpf_supported(struct nvmet_subsys *subsys, struct nvmet_port *port);
11 bool nvmet_bpf_log_page_supported(struct nvmet_req *req, u8 lid);
12 void nvmet_bpf_get_log_page(struct nvmet_subsys *subsys, struct nvmet_req *req);
13 int __init nvmet_bpf_struct_ops_init(void);
14 #else
15 static inline void nvmet_bpf_detach(struct nvmet_subsys_link *s) {}
16 static inline bool nvmet_bpf_supported(struct nvmet_subsys *subsys, struct nvmet_port *port)
17 {
18 return false;
19 }
20 static inline bool nvmet_bpf_log_page_supported(struct nvmet_req *req, u8 lid)
21 {
22 return false;
23 }
24 static inline void nvmet_bpf_get_log_page(struct nvmet_subsys *subsys, struct nvmet_req *req)
25 {
> 26 return nvmet_bpf_req_complete(req, NVME_SC_INVALID_FIELD | NVME_SC_DNR);
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-05-08 18:17 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=202605082037.cGj85IJo-lkp@intel.com \
--to=lkp@intel.com \
--cc=hare@kernel.org \
--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