* [jlayton:exportd-netlink 3/3] fs/nfsd/export.c:381:7: error: call to undeclared function 'genl_has_listeners'; ISO C99 and later do not support implicit function declarations
@ 2026-02-07 2:24 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-02-07 2:24 UTC (permalink / raw)
To: Jeff Layton; +Cc: llvm, oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git exportd-netlink
head: aef82be579c01a1995f0e0c98313f23e7e4893a0
commit: aef82be579c01a1995f0e0c98313f23e7e4893a0 [3/3] nfsd: send nl_notfiy when a svc_export upcall is queued
config: x86_64-kexec (https://download.01.org/0day-ci/archive/20260207/202602070301.HBYXAjMT-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/20260207/202602070301.HBYXAjMT-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/202602070301.HBYXAjMT-lkp@intel.com/
All errors (new ones prefixed by >>):
>> fs/nfsd/export.c:381:7: error: call to undeclared function 'genl_has_listeners'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
381 | if (!genl_has_listeners(&exportd_nl_family, cd->net, EXPORTD_NLGRP_EXPORTD))
| ^
fs/nfsd/export.c:381:7: note: did you mean 'rtnl_has_listeners'?
include/linux/rtnetlink.h:221:19: note: 'rtnl_has_listeners' declared here
221 | static inline int rtnl_has_listeners(const struct net *net, u32 group)
| ^
>> fs/nfsd/export.c:381:27: error: use of undeclared identifier 'exportd_nl_family'
381 | if (!genl_has_listeners(&exportd_nl_family, cd->net, EXPORTD_NLGRP_EXPORTD))
| ^
>> fs/nfsd/export.c:381:55: error: use of undeclared identifier 'EXPORTD_NLGRP_EXPORTD'
381 | if (!genl_has_listeners(&exportd_nl_family, cd->net, EXPORTD_NLGRP_EXPORTD))
| ^
>> fs/nfsd/export.c:384:8: error: call to undeclared function 'genlmsg_new'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
384 | msg = genlmsg_new(GENLMSG_DEFAULT_SIZE, flags);
| ^
fs/nfsd/export.c:384:8: note: did you mean 'nlmsg_new'?
include/net/netlink.h:1053:31: note: 'nlmsg_new' declared here
1053 | static inline struct sk_buff *nlmsg_new(size_t payload, gfp_t flags)
| ^
>> fs/nfsd/export.c:384:20: error: use of undeclared identifier 'GENLMSG_DEFAULT_SIZE'
384 | msg = genlmsg_new(GENLMSG_DEFAULT_SIZE, flags);
| ^
>> fs/nfsd/export.c:384:42: error: use of undeclared identifier 'flags'
384 | msg = genlmsg_new(GENLMSG_DEFAULT_SIZE, flags);
| ^
6 errors generated.
vim +/genl_has_listeners +381 fs/nfsd/export.c
376
377 static int svc_export_genl_notify(struct cache_detail *cd, struct cache_head *h)
378 {
379 struct sk_buff *msg;
380
> 381 if (!genl_has_listeners(&exportd_nl_family, cd->net, EXPORTD_NLGRP_EXPORTD))
382 return -ESRCH;
383
> 384 msg = genlmsg_new(GENLMSG_DEFAULT_SIZE, flags);
385 if (!msg)
386 return -ENOMEM;
387
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
* [jlayton:exportd-netlink 3/3] fs/nfsd/export.c:381:7: error: call to undeclared function 'genl_has_listeners'; ISO C99 and later do not support implicit function declarations
@ 2026-02-07 4:31 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-02-07 4:31 UTC (permalink / raw)
To: Jeff Layton; +Cc: llvm, oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git exportd-netlink
head: aef82be579c01a1995f0e0c98313f23e7e4893a0
commit: aef82be579c01a1995f0e0c98313f23e7e4893a0 [3/3] nfsd: send nl_notfiy when a svc_export upcall is queued
config: x86_64-kexec (https://download.01.org/0day-ci/archive/20260207/202602071212.A5drOLFI-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/20260207/202602071212.A5drOLFI-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/202602071212.A5drOLFI-lkp@intel.com/
All errors (new ones prefixed by >>):
>> fs/nfsd/export.c:381:7: error: call to undeclared function 'genl_has_listeners'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
381 | if (!genl_has_listeners(&exportd_nl_family, cd->net, EXPORTD_NLGRP_EXPORTD))
| ^
fs/nfsd/export.c:381:7: note: did you mean 'rtnl_has_listeners'?
include/linux/rtnetlink.h:221:19: note: 'rtnl_has_listeners' declared here
221 | static inline int rtnl_has_listeners(const struct net *net, u32 group)
| ^
>> fs/nfsd/export.c:381:27: error: use of undeclared identifier 'exportd_nl_family'
381 | if (!genl_has_listeners(&exportd_nl_family, cd->net, EXPORTD_NLGRP_EXPORTD))
| ^
>> fs/nfsd/export.c:381:55: error: use of undeclared identifier 'EXPORTD_NLGRP_EXPORTD'
381 | if (!genl_has_listeners(&exportd_nl_family, cd->net, EXPORTD_NLGRP_EXPORTD))
| ^
>> fs/nfsd/export.c:384:8: error: call to undeclared function 'genlmsg_new'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
384 | msg = genlmsg_new(GENLMSG_DEFAULT_SIZE, flags);
| ^
fs/nfsd/export.c:384:8: note: did you mean 'nlmsg_new'?
include/net/netlink.h:1053:31: note: 'nlmsg_new' declared here
1053 | static inline struct sk_buff *nlmsg_new(size_t payload, gfp_t flags)
| ^
>> fs/nfsd/export.c:384:20: error: use of undeclared identifier 'GENLMSG_DEFAULT_SIZE'
384 | msg = genlmsg_new(GENLMSG_DEFAULT_SIZE, flags);
| ^
>> fs/nfsd/export.c:384:42: error: use of undeclared identifier 'flags'
384 | msg = genlmsg_new(GENLMSG_DEFAULT_SIZE, flags);
| ^
6 errors generated.
vim +/genl_has_listeners +381 fs/nfsd/export.c
376
377 static int svc_export_genl_notify(struct cache_detail *cd, struct cache_head *h)
378 {
379 struct sk_buff *msg;
380
> 381 if (!genl_has_listeners(&exportd_nl_family, cd->net, EXPORTD_NLGRP_EXPORTD))
382 return -ESRCH;
383
> 384 msg = genlmsg_new(GENLMSG_DEFAULT_SIZE, flags);
385 if (!msg)
386 return -ENOMEM;
387
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-02-07 4:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-07 4:31 [jlayton:exportd-netlink 3/3] fs/nfsd/export.c:381:7: error: call to undeclared function 'genl_has_listeners'; ISO C99 and later do not support implicit function declarations kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2026-02-07 2:24 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