[dm-devel] [dm:dm-fallocate 11/22] fs/block_dev.c:1856:20: error: 'PAGE_CACHE_SHIFT' undeclared

kbuild test robot fengguang.wu at intel.com
Tue Apr 12 20:24:00 UTC 2016


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git dm-fallocate
head:   c79eaa33c66f54e2e41c12bc7de505365b43401d
commit: 3443026307e452c76f32d913c2c335b864c34a0d [11/22] block: implement (some of) fallocate for block devices
config: x86_64-randconfig-x010-201615 (attached as .config)
reproduce:
        git checkout 3443026307e452c76f32d913c2c335b864c34a0d
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All error/warnings (new ones prefixed by >>):

   fs/block_dev.c: In function 'blkdev_fallocate':
>> fs/block_dev.c:1856:20: error: 'PAGE_CACHE_SHIFT' undeclared (first use in this function)
              start >> PAGE_CACHE_SHIFT,
                       ^
   fs/block_dev.c:1856:20: note: each undeclared identifier is reported only once for each function it appears in
>> fs/block_dev.c:1858:1: warning: control reaches end of non-void function [-Wreturn-type]
    }
    ^

vim +/PAGE_CACHE_SHIFT +1856 fs/block_dev.c

  1850	
  1851		/*
  1852		 * Invalidate again; if someone wandered in and dirtied a page,
  1853		 * the caller will be given -EBUSY;
  1854		 */
  1855		return invalidate_inode_pages2_range(mapping,
> 1856						     start >> PAGE_CACHE_SHIFT,
  1857						     end >> PAGE_CACHE_SHIFT);
> 1858	}
  1859	EXPORT_SYMBOL_GPL(blkdev_fallocate);
  1860	
  1861	const struct file_operations def_blk_fops = {

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/octet-stream
Size: 25535 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/dm-devel/attachments/20160413/89287a95/attachment.obj>


More information about the dm-devel mailing list