[smfrench-smb3:for-next 3/4] fs/cifs/connect.c:220:1: warning: no previous prototype for 'cifs_abort_connection'
by kernel test robot
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-lk...)
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/6b67a1be0316ddc1c6dbfc8cdf...
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(a)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@lists.01.org
7 months, 1 week
[ammarfaizi2-block:google/android/kernel/common/android-4.19-stable 971/9999] drivers/mmc/core/crypto.c:14:6: warning: no previous prototype for function 'mmc_crypto_setup_queue'
by kernel test robot
tree: https://github.com/ammarfaizi2/linux-block google/android/kernel/common/android-4.19-stable
head: 69be2ccce366f9ef3eec5cd1c9b8bfb3e1c2d16d
commit: eb54e7323628bf827eab028d14d8171f8dd6777e [971/9999] ANDROID: mmc: MMC crypto API
config: x86_64-randconfig-a005 (https://download.01.org/0day-ci/archive/20220209/202202090901.7ZCWAPk5-lk...)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project e8bff9ae54a55b4dbfeb6ba55f723abbd81bf494)
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/eb54e7323628bf827eab028...
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block google/android/kernel/common/android-4.19-stable
git checkout eb54e7323628bf827eab028d14d8171f8dd6777e
# 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=x86_64 SHELL=/bin/bash drivers/mmc/core/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/mmc/core/crypto.c:14:6: warning: no previous prototype for function 'mmc_crypto_setup_queue' [-Wmissing-prototypes]
void mmc_crypto_setup_queue(struct mmc_host *host, struct request_queue *q)
^
drivers/mmc/core/crypto.c:14:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void mmc_crypto_setup_queue(struct mmc_host *host, struct request_queue *q)
^
static
>> drivers/mmc/core/crypto.c:21:6: warning: no previous prototype for function 'mmc_crypto_free_host' [-Wmissing-prototypes]
void mmc_crypto_free_host(struct mmc_host *host)
^
drivers/mmc/core/crypto.c:21:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void mmc_crypto_free_host(struct mmc_host *host)
^
static
>> drivers/mmc/core/crypto.c:26:6: warning: no previous prototype for function 'mmc_crypto_prepare_req' [-Wmissing-prototypes]
void mmc_crypto_prepare_req(struct mmc_queue_req *mqrq)
^
drivers/mmc/core/crypto.c:26:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void mmc_crypto_prepare_req(struct mmc_queue_req *mqrq)
^
static
3 warnings generated.
vim +/mmc_crypto_setup_queue +14 drivers/mmc/core/crypto.c
13
> 14 void mmc_crypto_setup_queue(struct mmc_host *host, struct request_queue *q)
15 {
16 if (host->caps2 & MMC_CAP2_CRYPTO)
17 q->ksm = host->ksm;
18 }
19 EXPORT_SYMBOL_GPL(mmc_crypto_setup_queue);
20
> 21 void mmc_crypto_free_host(struct mmc_host *host)
22 {
23 keyslot_manager_destroy(host->ksm);
24 }
25
> 26 void mmc_crypto_prepare_req(struct mmc_queue_req *mqrq)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week
[smfrench-smb3:for-next 3/4] fs/cifs/connect.c:220:1: warning: no previous prototype for function 'cifs_abort_connection'
by kernel test robot
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-a002 (https://download.01.org/0day-ci/archive/20220209/202202090941.QsWGDMkM-lk...)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project e8bff9ae54a55b4dbfeb6ba55f723abbd81bf494)
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/smfrench/smb3-kernel/commit/6b67a1be0316ddc1c6dbfc8cdf...
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
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross 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(a)intel.com>
All warnings (new ones prefixed by >>):
>> fs/cifs/connect.c:220:1: warning: no previous prototype for function 'cifs_abort_connection' [-Wmissing-prototypes]
cifs_abort_connection(struct TCP_Server_Info *server)
^
fs/cifs/connect.c:219:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void
^
static
1 warning generated.
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@lists.01.org
7 months, 1 week