[linux-next:master 4132/4465] fs/smb/client/file.c:383:32: sparse: sparse: symbol 'cifs_req_ops' was not declared. Should it be static?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   ac139fc7db67968e5061715508b5fc4aa7c40c56
commit: cff3c1bd9ccb3e6e9a7a3487722ca1d9705845c4 [4132/4465] cifs: Implement netfslib hooks
config: x86_64-randconfig-122-20240206 (https://download.01.org/0day-ci/archive/20240206/202402062151.Kq60k2LK-lkp@xxxxxxxxx/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240206/202402062151.Kq60k2LK-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202402062151.Kq60k2LK-lkp@xxxxxxxxx/

sparse warnings: (new ones prefixed by >>)
>> fs/smb/client/file.c:383:32: sparse: sparse: symbol 'cifs_req_ops' was not declared. Should it be static?
   fs/smb/client/file.c: note: in included file (through include/linux/wait.h, include/linux/wait_bit.h, include/linux/fs.h):
   include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true
   include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true
   include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true
   include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true
   include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true
   include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true
   include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true
   include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true
   include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true
   include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true
   include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true
   include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true
   include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true
   include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true
   include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true
   include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true

vim +/cifs_req_ops +383 fs/smb/client/file.c

   382	
 > 383	const struct netfs_request_ops cifs_req_ops = {
   384		.io_request_size	= sizeof(struct cifs_io_request),
   385		.io_subrequest_size	= sizeof(struct cifs_io_subrequest),
   386		.init_request		= cifs_init_request,
   387		.free_request		= cifs_free_request,
   388		.free_subrequest	= cifs_free_subrequest,
   389		.expand_readahead	= cifs_expand_readahead,
   390		.clamp_length		= cifs_clamp_length,
   391		.issue_read		= cifs_req_issue_read,
   392		.done			= cifs_rreq_done,
   393		.post_modify		= cifs_post_modify,
   394		.create_write_requests	= cifs_create_write_requests,
   395	};
   396	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux