* [jlayton:dir-deleg 26/26] fs/nfsd/nfs4state.c:1054:28: warning: 'nfsd_refstr_from_qstr' defined but not used
@ 2025-08-05 12:25 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2025-08-05 12:25 UTC (permalink / raw)
To: Jeff Layton; +Cc: oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git dir-deleg
head: 4e05ff4e8e6879032361c40f33178eee80d85dfe
commit: 4e05ff4e8e6879032361c40f33178eee80d85dfe [26/26] nfsd: add data structures for handling CB_NOTIFY to directory delegation
config: i386-buildonly-randconfig-005-20250805 (https://download.01.org/0day-ci/archive/20250805/202508052056.IlwSPofB-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14+deb12u1) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250805/202508052056.IlwSPofB-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/202508052056.IlwSPofB-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> fs/nfsd/nfs4state.c:1054:28: warning: 'nfsd_refstr_from_qstr' defined but not used [-Wunused-function]
1054 | static struct nfsd_refstr *nfsd_refstr_from_qstr(struct qstr *q)
| ^~~~~~~~~~~~~~~~~~~~~
vim +/nfsd_refstr_from_qstr +1054 fs/nfsd/nfs4state.c
1052
1053
> 1054 static struct nfsd_refstr *nfsd_refstr_from_qstr(struct qstr *q)
1055 {
1056 struct nfsd_refstr *nr;
1057
1058 nr = kmalloc(sizeof(*nr) + q->len + 1, GFP_KERNEL);
1059 if (nr) {
1060 memcpy(&nr->nr_str, q->name, q->len);
1061 nr->nr_str[q->len + 1] = '\0';
1062 }
1063 return nr;
1064 }
1065
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
* [jlayton:dir-deleg 26/26] fs/nfsd/nfs4state.c:1054:28: warning: 'nfsd_refstr_from_qstr' defined but not used
@ 2025-08-05 12:40 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2025-08-05 12:40 UTC (permalink / raw)
To: Jeff Layton; +Cc: oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git dir-deleg
head: 4e05ff4e8e6879032361c40f33178eee80d85dfe
commit: 4e05ff4e8e6879032361c40f33178eee80d85dfe [26/26] nfsd: add data structures for handling CB_NOTIFY to directory delegation
config: x86_64-rhel-9.4 (https://download.01.org/0day-ci/archive/20250805/202508051446.wydhCF99-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14+deb12u1) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250805/202508051446.wydhCF99-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/202508051446.wydhCF99-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> fs/nfsd/nfs4state.c:1054:28: warning: 'nfsd_refstr_from_qstr' defined but not used [-Wunused-function]
1054 | static struct nfsd_refstr *nfsd_refstr_from_qstr(struct qstr *q)
| ^~~~~~~~~~~~~~~~~~~~~
vim +/nfsd_refstr_from_qstr +1054 fs/nfsd/nfs4state.c
1052
1053
> 1054 static struct nfsd_refstr *nfsd_refstr_from_qstr(struct qstr *q)
1055 {
1056 struct nfsd_refstr *nr;
1057
1058 nr = kmalloc(sizeof(*nr) + q->len + 1, GFP_KERNEL);
1059 if (nr) {
1060 memcpy(&nr->nr_str, q->name, q->len);
1061 nr->nr_str[q->len + 1] = '\0';
1062 }
1063 return nr;
1064 }
1065
--
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:[~2025-08-05 12:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-05 12:25 [jlayton:dir-deleg 26/26] fs/nfsd/nfs4state.c:1054:28: warning: 'nfsd_refstr_from_qstr' defined but not used kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2025-08-05 12:40 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.