[ammarfaizi2-block:dhowells/linux-fs/rxrpc-ringless-2 15/24] net/rxrpc/output.c:23:19: warning: unused variable 'sa'

From: kernel test robot
Date: Thu Jun 16 2022 - 04:07:58 EST


tree: https://github.com/ammarfaizi2/linux-block dhowells/linux-fs/rxrpc-ringless-2
head: 3f41f1279858b9676cd6724d54e4323696e1ac07
commit: 4d6e89b6fafafd93ba38b1d86b8adbaa4401802c [15/24] rxrpc: Call udp_sendmsg() directly
config: i386-randconfig-a013 (https://download.01.org/0day-ci/archive/20220616/202206161534.tpQzkyUT-lkp@xxxxxxxxx/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project f0e608de27b3d568000046eebf3712ab542979d6)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/ammarfaizi2/linux-block/commit/4d6e89b6fafafd93ba38b1d86b8adbaa4401802c
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block dhowells/linux-fs/rxrpc-ringless-2
git checkout 4d6e89b6fafafd93ba38b1d86b8adbaa4401802c
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash net/rxrpc/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

>> net/rxrpc/output.c:23:19: warning: unused variable 'sa' [-Wunused-variable]
struct sockaddr *sa = msg->msg_name;
^
1 warning generated.


vim +/sa +23 net/rxrpc/output.c

20
21 static ssize_t do_udp_sendmsg(struct socket *sk, struct msghdr *msg, size_t len)
22 {
> 23 struct sockaddr *sa = msg->msg_name;
24

--
0-DAY CI Kernel Test Service
https://01.org/lkp