[Cluster-devel] [gfs2:iomap-write 5/11] include/linux/iomap.h:68:30: warning: 'struct page' declared inside parameter list

kbuild test robot lkp at intel.com
Thu Jun 7 06:53:25 UTC 2018


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2.git iomap-write
head:   017ce9ae3ca4b1d7488d39e38454aa08de49f279
commit: 6ac24fd29c631842f133ae243ff4bd0e6bdd6a46 [5/11] iomap: add a page_done callback
config: i386-randconfig-a0-201822 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
        git checkout 6ac24fd29c631842f133ae243ff4bd0e6bdd6a46
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   In file included from fs/ext4/inline.c:7:0:
>> include/linux/iomap.h:68:30: warning: 'struct page' declared inside parameter list
       struct page *page, struct iomap *iomap);
                                 ^
>> include/linux/iomap.h:68:30: warning: its scope is only this definition or declaration, which is probably not what you want

vim +68 include/linux/iomap.h

    49	
    50	struct iomap {
    51		u64			addr; /* disk offset of mapping, bytes */
    52		loff_t			offset;	/* file offset of mapping, bytes */
    53		u64			length;	/* length of mapping, bytes */
    54		u16			type;	/* type of mapping */
    55		u16			flags;	/* flags for mapping */
    56		union {
    57			struct block_device *bdev;
    58			struct dax_device   *dax_dev;
    59			void		    *inline_data;
    60		};
    61	
    62		/*
    63		 * Called when finished processing a page in the mapping returned in
    64		 * this iomap.  At least for now this is only supported in the buffered
    65		 * write path.
    66		 */
    67		void (*page_done)(struct inode *inode, loff_t pos, unsigned copied,
  > 68				struct page *page, struct iomap *iomap);
    69	};
    70	

---
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/gzip
Size: 28942 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/cluster-devel/attachments/20180607/02f40fc4/attachment.gz>


More information about the Cluster-devel mailing list