* [hare-nvme:configfs-ns 1/9] drivers/nvme/target/../target/bpf.h:26:9: error: call to undeclared function 'nvmet_bpf_req_complete'; ISO C99 and later do not support implicit function declarations
@ 2026-05-08 19:17 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-05-08 19:17 UTC (permalink / raw)
To: Hannes Reinecke; +Cc: llvm, oe-kbuild-all
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-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20260508/202605082159.6BFSLR4U-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
rustc: rustc 1.88.0 (6b00bc388 2025-06-23)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260508/202605082159.6BFSLR4U-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/202605082159.6BFSLR4U-lkp@intel.com/
All error/warnings (new ones prefixed by >>):
In file included from drivers/nvme/target/fcloop.c:11:
In file included from drivers/nvme/target/../target/nvmet.h:26:
>> drivers/nvme/target/../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/../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/../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/../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/../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/../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/../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/../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.
vim +/nvmet_bpf_req_complete +26 drivers/nvme/target/../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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-05-08 19:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-08 19:17 [hare-nvme:configfs-ns 1/9] drivers/nvme/target/../target/bpf.h:26:9: error: call to undeclared function 'nvmet_bpf_req_complete'; ISO C99 and later do not support implicit function declarations kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox