All of lore.kernel.org
 help / color / mirror / Atom feed
* [dhowells-fs:fscache-iter-2 48/53] fs/afs/inode.c:800:34: sparse: sparse: incorrect type in assignment (different base types)
@ 2021-05-24 18:34 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-05-24 18:34 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3392 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git fscache-iter-2
head:   b285c26894d96d708ee746d56df1519e42baaeb4
commit: 5aca0de864c65bff0f0ac939b8c091b00e355e62 [48/53] afs: Copy local writes to the cache when writing to the server
config: x86_64-randconfig-s022-20210524 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.3-341-g8af24329-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/commit/?id=5aca0de864c65bff0f0ac939b8c091b00e355e62
        git remote add dhowells-fs https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git
        git fetch --no-tags dhowells-fs fscache-iter-2
        git checkout 5aca0de864c65bff0f0ac939b8c091b00e355e62
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=x86_64 

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


sparse warnings: (new ones prefixed by >>)
>> fs/afs/inode.c:800:34: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __be64 [usertype] data_version @@     got unsigned long long [usertype] data_version @@
   fs/afs/inode.c:800:34: sparse:     expected restricted __be64 [usertype] data_version
   fs/afs/inode.c:800:34: sparse:     got unsigned long long [usertype] data_version
   fs/afs/inode.c:659:22: sparse: sparse: context imbalance in 'afs_check_validity' - different lock contexts for basic block
   fs/afs/inode.c:762:22: sparse: sparse: context imbalance in 'afs_getattr' - different lock contexts for basic block
--
>> fs/afs/write.c:984:54: sparse: sparse: incorrect type in initializer (different base types) @@     expected restricted __be64 [usertype] data_version @@     got unsigned long long [usertype] data_version @@
   fs/afs/write.c:984:54: sparse:     expected restricted __be64 [usertype] data_version
   fs/afs/write.c:984:54: sparse:     got unsigned long long [usertype] data_version

vim +800 fs/afs/inode.c

   778	
   779	/*
   780	 * clear an AFS inode
   781	 */
   782	void afs_evict_inode(struct inode *inode)
   783	{
   784		struct afs_vnode *vnode = AFS_FS_I(inode);
   785	
   786		_enter("{%llx:%llu.%d}",
   787		       vnode->fid.vid,
   788		       vnode->fid.vnode,
   789		       vnode->fid.unique);
   790	
   791		_debug("CLEAR INODE %p", inode);
   792	
   793		ASSERTCMP(inode->i_ino, ==, vnode->fid.vnode);
   794	
   795		truncate_inode_pages_final(&inode->i_data);
   796	
   797		if (inode->i_state & I_PINNING_FSCACHE_WB) {
   798			struct afs_vnode_cache_aux aux;
   799			loff_t i_size = i_size_read(&vnode->vfs_inode);
 > 800			aux.data_version = vnode->status.data_version;
   801			fscache_unuse_cookie(afs_vnode_cache(vnode), &aux, &i_size);
   802		}
   803		clear_inode(inode);
   804	
   805		while (!list_empty(&vnode->wb_keys)) {
   806			struct afs_wb_key *wbk = list_entry(vnode->wb_keys.next,
   807							    struct afs_wb_key, vnode_link);
   808			list_del(&wbk->vnode_link);
   809			afs_put_wb_key(wbk);
   810		}
   811	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 40180 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-05-24 18:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-24 18:34 [dhowells-fs:fscache-iter-2 48/53] fs/afs/inode.c:800:34: sparse: sparse: incorrect type in assignment (different base types) kernel test robot

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.