public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Matthew Wilcox (Oracle)" <willy@infradead.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [willy-pagecache:for-next 164/179] fs/ceph/cache.h:139:36: error: passing argument 1 of 'filemap_dirty_folio' from incompatible pointer type
Date: Tue, 15 Mar 2022 18:20:18 +0800	[thread overview]
Message-ID: <202203151822.AxRLjKqE-lkp@intel.com> (raw)

tree:   git://git.infradead.org/users/willy/pagecache for-next
head:   af564d7369d44fbbe697a5f631fe3bba5ebecd59
commit: 09f7fc259e5dd9ab97313b62bdfc9b56abf0ef1d [164/179] fscache: Convert fscache_set_page_dirty() to fscache_dirty_folio()
config: powerpc64-randconfig-m031-20220313 (https://download.01.org/0day-ci/archive/20220315/202203151822.AxRLjKqE-lkp@intel.com/config)
compiler: powerpc64-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git remote add willy-pagecache git://git.infradead.org/users/willy/pagecache
        git fetch --no-tags willy-pagecache for-next
        git checkout 09f7fc259e5dd9ab97313b62bdfc9b56abf0ef1d
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=powerpc SHELL=/bin/bash fs/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   In file included from fs/ceph/super.c:22:
   fs/ceph/cache.h: In function 'ceph_fscache_dirty_folio':
>> fs/ceph/cache.h:139:36: error: passing argument 1 of 'filemap_dirty_folio' from incompatible pointer type [-Werror=incompatible-pointer-types]
     139 |         return filemap_dirty_folio(folio);
         |                                    ^~~~~
         |                                    |
         |                                    struct folio *
   In file included from include/linux/backing-dev.h:16,
                    from fs/ceph/super.c:5:
   include/linux/writeback.h:393:48: note: expected 'struct address_space *' but argument is of type 'struct folio *'
     393 | bool filemap_dirty_folio(struct address_space *mapping, struct folio *folio);
         |                          ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
   In file included from fs/ceph/super.c:22:
>> fs/ceph/cache.h:139:16: error: too few arguments to function 'filemap_dirty_folio'
     139 |         return filemap_dirty_folio(folio);
         |                ^~~~~~~~~~~~~~~~~~~
   In file included from include/linux/backing-dev.h:16,
                    from fs/ceph/super.c:5:
   include/linux/writeback.h:393:6: note: declared here
     393 | bool filemap_dirty_folio(struct address_space *mapping, struct folio *folio);
         |      ^~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors
--
   In file included from fs/ceph/addr.c:19:
   fs/ceph/cache.h: In function 'ceph_fscache_dirty_folio':
>> fs/ceph/cache.h:139:36: error: passing argument 1 of 'filemap_dirty_folio' from incompatible pointer type [-Werror=incompatible-pointer-types]
     139 |         return filemap_dirty_folio(folio);
         |                                    ^~~~~
         |                                    |
         |                                    struct folio *
   In file included from include/linux/backing-dev.h:16,
                    from fs/ceph/addr.c:4:
   include/linux/writeback.h:393:48: note: expected 'struct address_space *' but argument is of type 'struct folio *'
     393 | bool filemap_dirty_folio(struct address_space *mapping, struct folio *folio);
         |                          ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
   In file included from fs/ceph/addr.c:19:
>> fs/ceph/cache.h:139:16: error: too few arguments to function 'filemap_dirty_folio'
     139 |         return filemap_dirty_folio(folio);
         |                ^~~~~~~~~~~~~~~~~~~
   In file included from include/linux/backing-dev.h:16,
                    from fs/ceph/addr.c:4:
   include/linux/writeback.h:393:6: note: declared here
     393 | bool filemap_dirty_folio(struct address_space *mapping, struct folio *folio);
         |      ^~~~~~~~~~~~~~~~~~~
   In file included from fs/ceph/addr.c:19:
   fs/ceph/cache.h:140:1: error: control reaches end of non-void function [-Werror=return-type]
     140 | }
         | ^
   cc1: some warnings being treated as errors


vim +/filemap_dirty_folio +139 fs/ceph/cache.h

   135	
   136	static inline int ceph_fscache_dirty_folio(struct address_space *mapping,
   137			struct folio *folio)
   138	{
 > 139		return filemap_dirty_folio(folio);
   140	}
   141	

---
0-DAY CI Kernel Test Service
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

                 reply	other threads:[~2022-03-15 10:20 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=202203151822.AxRLjKqE-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=willy@infradead.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