mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Dan Carpenter <dan.carpenter@oracle.com>
To: kbuild@lists.01.org, Trond Myklebust <trond.myklebust@hammerspace.com>
Cc: lkp@intel.com, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [trondmy-nfs-2.6:testing 4/10] net/sunrpc/xprtsock.c:1436 xs_local_state_change() error: uninitialized symbol 'transport'.
Date: Fri, 29 Apr 2022 15:26:24 +0300	[thread overview]
Message-ID: <202204291840.vXJc8xQ6-lkp@intel.com> (raw)

tree:   git://git.linux-nfs.org/projects/trondmy/nfs-2.6.git testing
head:   b44c0c653b27127aba20075ef53b0d641a36a3ae
commit: 8869b563cd42a4cb725604322454ed4fb29a0c18 [4/10] SUNRPC: Ensure timely close of disconnected AF_LOCAL sockets
config: x86_64-randconfig-m001 (https://download.01.org/0day-ci/archive/20220429/202204291840.vXJc8xQ6-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.2.0-20) 11.2.0

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

smatch warnings:
net/sunrpc/xprtsock.c:1436 xs_local_state_change() error: uninitialized symbol 'transport'.

vim +/transport +1436 net/sunrpc/xprtsock.c

8869b563cd42a4 Trond Myklebust 2022-04-28  1426  static void xs_local_state_change(struct sock *sk)
8869b563cd42a4 Trond Myklebust 2022-04-28  1427  {
8869b563cd42a4 Trond Myklebust 2022-04-28  1428  	struct rpc_xprt *xprt;
8869b563cd42a4 Trond Myklebust 2022-04-28  1429  	struct sock_xprt *transport;
8869b563cd42a4 Trond Myklebust 2022-04-28  1430  
8869b563cd42a4 Trond Myklebust 2022-04-28  1431  	if (!(xprt = xprt_from_sock(sk)))
8869b563cd42a4 Trond Myklebust 2022-04-28  1432  		return;
8869b563cd42a4 Trond Myklebust 2022-04-28  1433  	if (sk->sk_shutdown & SHUTDOWN_MASK) {
8869b563cd42a4 Trond Myklebust 2022-04-28  1434  		clear_bit(XPRT_CONNECTED, &xprt->state);
8869b563cd42a4 Trond Myklebust 2022-04-28  1435  		/* Trigger the socket release */
8869b563cd42a4 Trond Myklebust 2022-04-28 @1436  		xs_run_error_worker(transport, XPRT_SOCK_WAKE_DISCONNECT);
                                                                                    ^^^^^^^^^
Never initialized.

8869b563cd42a4 Trond Myklebust 2022-04-28  1437  	}
8869b563cd42a4 Trond Myklebust 2022-04-28  1438  }

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


                 reply	other threads:[~2022-04-29 12:26 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=202204291840.vXJc8xQ6-lkp@intel.com \
    --to=dan.carpenter@oracle.com \
    --cc=kbuild-all@lists.01.org \
    --cc=kbuild@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lkp@intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®