[ceph-client:testing 1/3] fs/ceph/addr.c:454:20: error: 'rw_ctx' undeclared; did you mean 'rwf_t'?

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

 



tree:   https://github.com/ceph/ceph-client.git testing
head:   1f7e6d6bdf1881344c81537d676c0435a60ecf97
commit: ee07ea70966c91b59fca4de50ba9020ded4b1913 [1/3] ceph: map snapid to anonymous bdev ID
config: i386-randconfig-x005-201751 (attached as .config)
compiler: gcc-7 (Debian 7.2.0-12) 7.2.1 20171025
reproduce:
        git checkout ee07ea70966c91b59fca4de50ba9020ded4b1913
        # save the attached .config to linux build tree
        make ARCH=i386 

Note: the ceph-client/testing HEAD 1f7e6d6bdf1881344c81537d676c0435a60ecf97 builds fine.
      It only hurts bisectibility.

All errors (new ones prefixed by >>):

   In file included from fs/ceph/addr.c:2:0:
   fs/ceph/addr.c: In function 'ceph_readpages':
>> fs/ceph/addr.c:454:20: error: 'rw_ctx' undeclared (first use in this function); did you mean 'rwf_t'?
          inode, file, rw_ctx, nr_pages, max);
                       ^
   include/linux/ceph/ceph_debug.h:26:29: note: in definition of macro 'dout'
       printk(KERN_DEBUG fmt, ##__VA_ARGS__); \
                                ^~~~~~~~~~~
   fs/ceph/addr.c:454:20: note: each undeclared identifier is reported only once for each function it appears in
          inode, file, rw_ctx, nr_pages, max);
                       ^
   include/linux/ceph/ceph_debug.h:26:29: note: in definition of macro 'dout'
       printk(KERN_DEBUG fmt, ##__VA_ARGS__); \
                                ^~~~~~~~~~~

vim +454 fs/ceph/addr.c

   429	
   430	
   431	/*
   432	 * Read multiple pages.  Leave pages we don't read + unlock in page_list;
   433	 * the caller (VM) cleans them up.
   434	 */
   435	static int ceph_readpages(struct file *file, struct address_space *mapping,
   436				  struct list_head *page_list, unsigned nr_pages)
   437	{
   438		struct inode *inode = file_inode(file);
   439		struct ceph_fs_client *fsc = ceph_inode_to_client(inode);
   440		int rc = 0;
   441		int max = 0;
   442	
   443		if (ceph_inode(inode)->i_inline_version != CEPH_INLINE_NONE)
   444			return -EINVAL;
   445	
   446		rc = ceph_readpages_from_fscache(mapping->host, mapping, page_list,
   447						 &nr_pages);
   448	
   449		if (rc == 0)
   450			goto out;
   451	
   452		max = fsc->mount_options->rsize >> PAGE_SHIFT;
   453		dout("readpages %p file %p ctx %p nr_pages %d max %d\n",
 > 454		     inode, file, rw_ctx, nr_pages, max);
   455		while (!list_empty(page_list)) {
   456			rc = start_read(inode, page_list, max);
   457			if (rc < 0)
   458				goto out;
   459		}
   460	out:
   461		ceph_fscache_readpages_cancel(inode, page_list);
   462	
   463		dout("readpages %p file %p ret %d\n", inode, file, rc);
   464		return rc;
   465	}
   466	

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

Attachment: .config.gz
Description: application/gzip


[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