linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [cel:topic-rpc-with-tls-upcall 18/21] net/sunrpc/clnt.c:2194:2: warning: unannotated fall-through between switch labels
@ 2022-04-14 13:22 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-04-14 13:22 UTC (permalink / raw)
  To: Chuck Lever; +Cc: llvm, kbuild-all, linux-kernel

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux topic-rpc-with-tls-upcall
head:   77d1002f5a5209bebd901cf895b52730199c0ba4
commit: d7546e246acd3e74b2967985f4cae4df84fdba25 [18/21] SUNRPC: Add FSM machinery to handle RPC_AUTH_TLS on reconnect
config: i386-randconfig-a002 (https://download.01.org/0day-ci/archive/20220414/202204142146.JvSVSwxH-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 6b7e6ea489f6dd45a9b0da9ac20871560917b9b0)
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://git.kernel.org/pub/scm/linux/kernel/git/cel/linux.git/commit/?id=d7546e246acd3e74b2967985f4cae4df84fdba25
        git remote add cel git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux
        git fetch --no-tags cel topic-rpc-with-tls-upcall
        git checkout d7546e246acd3e74b2967985f4cae4df84fdba25
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash net/sunrpc/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> net/sunrpc/clnt.c:2194:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
           default:
           ^
   net/sunrpc/clnt.c:2194:2: note: insert 'break;' to avoid fall-through
           default:
           ^
           break; 
   1 warning generated.


vim +2194 net/sunrpc/clnt.c

  2176	
  2177	static void
  2178	call_start_tls(struct rpc_task *task)
  2179	{
  2180		struct rpc_xprt *xprt = task->tk_rqstp->rq_xprt;
  2181		struct rpc_clnt *clnt = task->tk_client;
  2182	
  2183		task->tk_action = call_transmit;
  2184		if (RPC_IS_TLSPROBE(task))
  2185			return;
  2186	
  2187		switch (clnt->cl_xprtsec_policy) {
  2188		case RPC_XPRTSEC_TLS:
  2189		case RPC_XPRTSEC_MTLS:
  2190			if (xprt->ops->tls_handshake_async) {
  2191				task->tk_action = call_tls_status;
  2192				rpc_starttls_async(task);
  2193			}
> 2194		default:
  2195			break;
  2196		}
  2197	}
  2198	

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-04-14 14:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-14 13:22 [cel:topic-rpc-with-tls-upcall 18/21] net/sunrpc/clnt.c:2194:2: warning: unannotated fall-through between switch labels kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).