[ceph-client:testing 1/1] fs/ceph/caps.c:1355:11: error: incompatible types when assigning to type 'struct ceph_mds_session *' from type 'struct ceph_mds_session'

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

 



tree:   https://github.com/ceph/ceph-client.git testing
head:   9ae621001c036dd1f5d8c143702d4d5e6a488a38
commit: 9ae621001c036dd1f5d8c143702d4d5e6a488a38 [1/1] ceph: fix null pointer dereference in ceph_flush_snaps()
config: xtensa-allmodconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 4.9.0
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 9ae621001c036dd1f5d8c143702d4d5e6a488a38
        # save the attached .config to linux build tree
        make.cross ARCH=xtensa 

All errors (new ones prefixed by >>):

   fs/ceph/caps.c: In function 'ceph_flush_snaps':
>> fs/ceph/caps.c:1355:11: error: incompatible types when assigning to type 'struct ceph_mds_session *' from type 'struct ceph_mds_session'
      session = *session;
              ^

vim +1355 fs/ceph/caps.c

  1349		struct ceph_mds_client *mdsc = ceph_inode_to_client(inode)->mdsc;
  1350		struct ceph_mds_session *session = NULL;
  1351		int mds;
  1352	
  1353		dout("ceph_flush_snaps %p\n", inode);
  1354		if (psession)
> 1355			session = *session;
  1356	retry:
  1357		spin_lock(&ci->i_ceph_lock);
  1358		if (!(ci->i_ceph_flags & CEPH_I_FLUSH_SNAPS)) {

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: Binary data


[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux