* [linux-next:master 7851/9257] fs/cifs/fscache.c:21:35: sparse: sparse: cast from restricted __le64
@ 2021-12-22 15:12 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-12-22 15:12 UTC (permalink / raw)
To: David Howells; +Cc: kbuild-all, Linux Memory Management List
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 2bd48302750c652889a2604b3df8b591c1d3af08
commit: 95aabadf32771b91dad536bd353274c04db9f6d3 [7851/9257] cifs: Support fscache indexing rewrite (untested)
config: m68k-allyesconfig (https://download.01.org/0day-ci/archive/20211222/202112222339.7vPt39YL-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 11.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=95aabadf32771b91dad536bd353274c04db9f6d3
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout 95aabadf32771b91dad536bd353274c04db9f6d3
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=m68k SHELL=/bin/bash fs/cifs/
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/cifs/fscache.c:21:35: sparse: sparse: cast from restricted __le64
>> fs/cifs/fscache.c:21:35: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned long long [usertype] val @@ got restricted __le64 [usertype] vol_create_time @@
fs/cifs/fscache.c:21:35: sparse: expected unsigned long long [usertype] val
fs/cifs/fscache.c:21:35: sparse: got restricted __le64 [usertype] vol_create_time
>> fs/cifs/fscache.c:21:35: sparse: sparse: cast from restricted __le64
>> fs/cifs/fscache.c:21:35: sparse: sparse: cast from restricted __le64
>> fs/cifs/fscache.c:21:35: sparse: sparse: cast from restricted __le64
>> fs/cifs/fscache.c:21:35: sparse: sparse: cast from restricted __le64
>> fs/cifs/fscache.c:21:35: sparse: sparse: cast from restricted __le64
>> fs/cifs/fscache.c:21:35: sparse: sparse: cast from restricted __le64
>> fs/cifs/fscache.c:21:35: sparse: sparse: cast from restricted __le64
>> fs/cifs/fscache.c:21:35: sparse: sparse: cast from restricted __le64
vim +21 fs/cifs/fscache.c
14
15 static void cifs_fscache_fill_volume_coherency(
16 struct cifs_tcon *tcon,
17 struct cifs_fscache_volume_coherency_data *cd)
18 {
19 memset(cd, 0, sizeof(&cd));
20 cd->resource_id = cpu_to_le64(tcon->resource_id);
> 21 cd->vol_create_time = cpu_to_le64(tcon->vol_create_time);
22 cd->vol_serial_number = cpu_to_le32(tcon->vol_serial_number);
23 }
24
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-12-22 15:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-22 15:12 [linux-next:master 7851/9257] fs/cifs/fscache.c:21:35: sparse: sparse: cast from restricted __le64 kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox