* [snitzer:nfs-localio-for-6.11 7/29] include/linux/sunrpc/addr.h:100:15: warning: 'rpc_ntop6_addr_noscopeid' defined but not used
@ 2024-06-06 1:33 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-06-06 1:33 UTC (permalink / raw)
To: Peng Tao; +Cc: oe-kbuild-all, Mike Snitzer, Lance Shelton, Trond Myklebust
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-06-06 1:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-06 1:33 [snitzer:nfs-localio-for-6.11 7/29] include/linux/sunrpc/addr.h:100:15: warning: 'rpc_ntop6_addr_noscopeid' defined but not used 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.