tree:
git://github.com/smfrench/smb3-kernel.git cifsd-for-next-ss
head: c64812e390079df755f48aa1fbb613c73846a38e
commit: 1962fa7df128499a7a17c381204023e5c8c11d21 [1/37] cifsd: introduce SMB3 kernel
server
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-gcc (GCC) 9.3.0
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/1962fa7df128499a7a17c38120...
git remote add smfrench-smb3-kernel
git://github.com/smfrench/smb3-kernel.git
git fetch --no-tags smfrench-smb3-kernel cifsd-for-next-ss
git checkout 1962fa7df128499a7a17c381204023e5c8c11d21
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc
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/cifsd/smb_common.c: In function 'ksmbd_init_smb_server':
> fs/cifsd/smb_common.c:258:9: warning: variable 'proto'
set but not used [-Wunused-but-set-variable]
258 | __le32 proto;
| ^~~~~
--
fs/cifsd/smb2pdu.c: In function 'smb2_open':
> fs/cifsd/smb2pdu.c:2326:27: warning: variable
'disk_id_ccontext' set but not used [-Wunused-but-set-variable]
2326 |
*mxac_ccontext = NULL, *disk_id_ccontext = NULL;
| ^~~~~~~~~~~~~~~~
fs/cifsd/smb2pdu.c: In function 'smb2_notify':
> fs/cifsd/smb2pdu.c:7595:32: warning: variable 'rsp_org'
set but not used [-Wunused-but-set-variable]
7595 | struct smb2_notify_rsp
*rsp, *rsp_org;
| ^~~~~~~
In file included from include/linux/perf_event.h:25,
from include/linux/trace_events.h:10,
from include/trace/syscall.h:7,
from include/linux/syscalls.h:85,
from fs/cifsd/smb2pdu.c:9:
At top level:
arch/arc/include/asm/perf_event.h:126:23: warning: 'arc_pmu_cache_map' defined
but not used [-Wunused-const-variable=]
126 | static const unsigned arc_pmu_cache_map[C(MAX)][C(OP_MAX)][C(RESULT_MAX)] = {
| ^~~~~~~~~~~~~~~~~
arch/arc/include/asm/perf_event.h:91:27: warning: 'arc_pmu_ev_hw_map' defined
but not used [-Wunused-const-variable=]
91 | static const char * const arc_pmu_ev_hw_map[] = {
| ^~~~~~~~~~~~~~~~~
vim +/proto +258 fs/cifsd/smb_common.c
252
253 #define SMB_COM_NEGOTIATE 0x72
254 int ksmbd_init_smb_server(struct ksmbd_work *work)
255 {
256 struct ksmbd_conn *conn = work->conn;
257 void *buf = REQUEST_BUF(work);
258 __le32 proto;
259
260 if (conn->need_neg == false)
261 return 0;
262
263 proto = *(__le32 *)((struct smb_hdr *)buf)->Protocol;
264 init_smb3_11_server(conn);
265
266 if (conn->ops->get_cmd_val(work) != SMB_COM_NEGOTIATE)
267 conn->need_neg = false;
268 return 0;
269 }
270
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org