From: kernel test robot <lkp@intel.com>
To: Mike Snitzer <snitzer@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [snitzer:nfs-localio-for-next 3/23] fs/nfs/nfs2xdr.c:65:12: warning: 'nfs_stat_to_errno' used but never defined
Date: Sun, 14 Jul 2024 03:12:05 +0800 [thread overview]
Message-ID: <202407140320.S1BJSqmB-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/snitzer/linux.git nfs-localio-for-next
head: 85d53fa650a024c154c0befa31a72b4484290c47
commit: 85c08fd7310ca8076283e88773002df86cf23ac6 [3/23] nfs_common: factor out nfs_errtbl and nfs_stat_to_errno
config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20240714/202407140320.S1BJSqmB-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240714/202407140320.S1BJSqmB-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/202407140320.S1BJSqmB-lkp@intel.com/
All warnings (new ones prefixed by >>):
fs/nfs/nfs2xdr.c:65:12: error: static declaration of 'nfs_stat_to_errno' follows non-static declaration
65 | static int nfs_stat_to_errno(enum nfs_stat);
| ^~~~~~~~~~~~~~~~~
In file included from fs/nfs/nfs2xdr.c:25:
include/linux/nfs_common.h:14:5: note: previous declaration of 'nfs_stat_to_errno' with type 'int(enum nfs_stat)'
14 | int nfs_stat_to_errno(enum nfs_stat status);
| ^~~~~~~~~~~~~~~~~
>> fs/nfs/nfs2xdr.c:65:12: warning: 'nfs_stat_to_errno' used but never defined
65 | static int nfs_stat_to_errno(enum nfs_stat);
| ^~~~~~~~~~~~~~~~~
vim +/nfs_stat_to_errno +65 fs/nfs/nfs2xdr.c
^1da177e4c3f41 Linus Torvalds 2005-04-16 64
5e7e5a0da28216 Bryan Schumaker 2012-05-10 @65 static int nfs_stat_to_errno(enum nfs_stat);
25a0866cc63281 Chuck Lever 2010-12-14 66
:::::: The code at line 65 was first introduced by commit
:::::: 5e7e5a0da28216fb9d0a49e93ee27668ef4f04f7 NFS: Create an NFS v3 stat_to_errno()
:::::: TO: Bryan Schumaker <bjschuma@netapp.com>
:::::: CC: Trond Myklebust <Trond.Myklebust@netapp.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-07-13 19:12 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=202407140320.S1BJSqmB-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=snitzer@kernel.org \
/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.