From: kernel test robot <lkp@intel.com>
To: Peng Tao <tao.peng@primarydata.com>
Cc: oe-kbuild-all@lists.linux.dev, Mike Snitzer <snitzer@kernel.org>,
Lance Shelton <lance.shelton@hammerspace.com>,
Trond Myklebust <trond.myklebust@hammerspace.com>
Subject: [snitzer:nfs-localio-for-6.11 7/29] include/linux/sunrpc/addr.h:100:15: warning: 'rpc_ntop6_addr_noscopeid' defined but not used
Date: Thu, 6 Jun 2024 09:33:21 +0800 [thread overview]
Message-ID: <202406060941.2fEwSeJc-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/snitzer/linux.git nfs-localio-for-6.11
head: 252b0c685ae2eafa0ced0682a496e9eecf23d1ff
commit: 8302af091458963dc2eb9774c0e47d036c8c1854 [7/29] sunrpc: add and export rpc_ntop6_addr_noscopeid
config: openrisc-defconfig (https://download.01.org/0day-ci/archive/20240606/202406060941.2fEwSeJc-lkp@intel.com/config)
compiler: or1k-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240606/202406060941.2fEwSeJc-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/202406060941.2fEwSeJc-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from net/sunrpc/clnt.c:37:
>> include/linux/sunrpc/addr.h:100:15: warning: 'rpc_ntop6_addr_noscopeid' defined but not used [-Wunused-function]
100 | static size_t rpc_ntop6_addr_noscopeid(const struct in6_addr *addr,
| ^~~~~~~~~~~~~~~~~~~~~~~~
net/sunrpc/clnt.c: In function 'rpc_create':
net/sunrpc/clnt.c:582:75: warning: '%s' directive output may be truncated writing up to 107 bytes into a region of size 48 [-Wformat-truncation=]
582 | snprintf(servername, sizeof(servername), "%s",
| ^~
net/sunrpc/clnt.c:582:33: note: 'snprintf' output between 1 and 108 bytes into a destination of size 48
582 | snprintf(servername, sizeof(servername), "%s",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
583 | sun->sun_path);
| ~~~~~~~~~~~~~~
--
In file included from net/sunrpc/xprtsock.c:37:
>> include/linux/sunrpc/addr.h:100:15: warning: 'rpc_ntop6_addr_noscopeid' defined but not used [-Wunused-function]
100 | static size_t rpc_ntop6_addr_noscopeid(const struct in6_addr *addr,
| ^~~~~~~~~~~~~~~~~~~~~~~~
vim +/rpc_ntop6_addr_noscopeid +100 include/linux/sunrpc/addr.h
87
88 static inline bool __rpc_copy_addr6(struct sockaddr *dst,
89 const struct sockaddr *src)
90 {
91 const struct sockaddr_in6 *ssin6 = (const struct sockaddr_in6 *) src;
92 struct sockaddr_in6 *dsin6 = (struct sockaddr_in6 *) dst;
93
94 dsin6->sin6_family = ssin6->sin6_family;
95 dsin6->sin6_addr = ssin6->sin6_addr;
96 dsin6->sin6_scope_id = ssin6->sin6_scope_id;
97 return true;
98 }
99 #else /* !(IS_ENABLED(CONFIG_IPV6) */
> 100 static size_t rpc_ntop6_addr_noscopeid(const struct in6_addr *addr,
101 char *buf, const int buflen)
102 {
103 return 0;
104 }
105
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-06-06 1:33 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=202406060941.2fEwSeJc-lkp@intel.com \
--to=lkp@intel.com \
--cc=lance.shelton@hammerspace.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=snitzer@kernel.org \
--cc=tao.peng@primarydata.com \
--cc=trond.myklebust@hammerspace.com \
/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.