From: kernel test robot <lkp@intel.com>
To: Jeff Layton <jlayton@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [jlayton:dir-deleg 26/26] fs/nfsd/nfs4state.c:1054:28: warning: 'nfsd_refstr_from_qstr' defined but not used
Date: Tue, 5 Aug 2025 14:40:04 +0200 [thread overview]
Message-ID: <202508051446.wydhCF99-lkp@intel.com> (raw)
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
next reply other threads:[~2025-08-05 12:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-05 12:40 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
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
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=202508051446.wydhCF99-lkp@intel.com \
--to=lkp@intel.com \
--cc=jlayton@kernel.org \
--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 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.