From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [smfrench-smb3:for-next 3/4] fs/cifs/connect.c:220:1: warning: no previous prototype for 'cifs_abort_connection'
Date: Wed, 09 Feb 2022 09:26:33 +0800 [thread overview]
Message-ID: <202202090904.E1cctEXS-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3569 bytes --]
tree: git://github.com/smfrench/smb3-kernel.git for-next
head: cf16d89f370730b5169ffc9f39a4a263dc6a3cf4
commit: 6b67a1be0316ddc1c6dbfc8cdfbb419fee341f61 [3/4] cifs: mark sessions for reconnection in helper function
config: i386-randconfig-a003 (https://download.01.org/0day-ci/archive/20220209/202202090904.E1cctEXS-lkp(a)intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/smfrench/smb3-kernel/commit/6b67a1be0316ddc1c6dbfc8cdfbb419fee341f61
git remote add smfrench-smb3 git://github.com/smfrench/smb3-kernel.git
git fetch --no-tags smfrench-smb3 for-next
git checkout 6b67a1be0316ddc1c6dbfc8cdfbb419fee341f61
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash fs/cifs/
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 >>):
>> fs/cifs/connect.c:220:1: warning: no previous prototype for 'cifs_abort_connection' [-Wmissing-prototypes]
220 | cifs_abort_connection(struct TCP_Server_Info *server)
| ^~~~~~~~~~~~~~~~~~~~~
vim +/cifs_abort_connection +220 fs/cifs/connect.c
218
219 void
> 220 cifs_abort_connection(struct TCP_Server_Info *server)
221 {
222 struct mid_q_entry *mid, *nmid;
223 struct list_head retry_list;
224
225 server->maxBuf = 0;
226 server->max_read = 0;
227
228 /* do not want to be sending data on a socket we are freeing */
229 cifs_dbg(FYI, "%s: tearing down socket\n", __func__);
230 mutex_lock(&server->srv_mutex);
231 if (server->ssocket) {
232 cifs_dbg(FYI, "State: 0x%x Flags: 0x%lx\n", server->ssocket->state,
233 server->ssocket->flags);
234 kernel_sock_shutdown(server->ssocket, SHUT_WR);
235 cifs_dbg(FYI, "Post shutdown state: 0x%x Flags: 0x%lx\n", server->ssocket->state,
236 server->ssocket->flags);
237 sock_release(server->ssocket);
238 server->ssocket = NULL;
239 }
240 server->sequence_number = 0;
241 server->session_estab = false;
242 kfree(server->session_key.response);
243 server->session_key.response = NULL;
244 server->session_key.len = 0;
245 server->lstrp = jiffies;
246
247 /* mark submitted MIDs for retry and issue callback */
248 INIT_LIST_HEAD(&retry_list);
249 cifs_dbg(FYI, "%s: moving mids to private list\n", __func__);
250 spin_lock(&GlobalMid_Lock);
251 list_for_each_entry_safe(mid, nmid, &server->pending_mid_q, qhead) {
252 kref_get(&mid->refcount);
253 if (mid->mid_state == MID_REQUEST_SUBMITTED)
254 mid->mid_state = MID_RETRY_NEEDED;
255 list_move(&mid->qhead, &retry_list);
256 mid->mid_flags |= MID_DELETED;
257 }
258 spin_unlock(&GlobalMid_Lock);
259 mutex_unlock(&server->srv_mutex);
260
261 cifs_dbg(FYI, "%s: issuing mid callbacks\n", __func__);
262 list_for_each_entry_safe(mid, nmid, &retry_list, qhead) {
263 list_del_init(&mid->qhead);
264 mid->callback(mid);
265 cifs_mid_q_entry_release(mid);
266 }
267
268 if (cifs_rdma_enabled(server)) {
269 mutex_lock(&server->srv_mutex);
270 smbd_destroy(server);
271 mutex_unlock(&server->srv_mutex);
272 }
273 }
274
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
reply other threads:[~2022-02-09 1: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=202202090904.E1cctEXS-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/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.