linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: David Howells <dhowells@redhat.com>
Cc: kbuild-all@lists.01.org,
	Linux Memory Management List <linux-mm@kvack.org>
Subject: [linux-next:master 7851/9257] fs/cifs/fscache.c:21:35: sparse: sparse: cast from restricted __le64
Date: Wed, 22 Dec 2021 23:12:41 +0800	[thread overview]
Message-ID: <202112222339.7vPt39YL-lkp@intel.com> (raw)

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


                 reply	other threads:[~2021-12-22 15:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202112222339.7vPt39YL-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=dhowells@redhat.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-mm@kvack.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox