mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [jlayton:netfs-linked-list 5/54] fs/afs/inode.c:856:43: error: passing argument 1 of 'netfs_resize_file' from incompatible pointer type
@ 2022-06-28 21:27 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-06-28 21:27 UTC (permalink / raw)
  To: David Howells; +Cc: kbuild-all, linux-kernel, Jeff Layton

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git netfs-linked-list
head:   d35a2461e039c9131e97bb125eac59a0f04e9161
commit: a65715e19870a21d17796d337cac4d41326feaad [5/54] netfs: Track the fpos above which the server has no data
config: i386-allyesconfig (https://download.01.org/0day-ci/archive/20220629/202206290541.3FJEiknk-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-3) 11.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git/commit/?id=a65715e19870a21d17796d337cac4d41326feaad
        git remote add jlayton https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git
        git fetch --no-tags jlayton netfs-linked-list
        git checkout a65715e19870a21d17796d337cac4d41326feaad
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash

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

All errors (new ones prefixed by >>):

   fs/afs/inode.c: In function 'afs_setattr_edit_file':
>> fs/afs/inode.c:856:43: error: passing argument 1 of 'netfs_resize_file' from incompatible pointer type [-Werror=incompatible-pointer-types]
     856 |                         netfs_resize_file(inode, size);
         |                                           ^~~~~
         |                                           |
         |                                           struct inode *
   In file included from include/linux/fscache.h:18,
                    from fs/afs/internal.h:17,
                    from fs/afs/inode.c:25:
   include/linux/netfs.h:338:58: note: expected 'struct netfs_inode *' but argument is of type 'struct inode *'
     338 | static inline void netfs_resize_file(struct netfs_inode *ctx, loff_t new_i_size)
         |                                      ~~~~~~~~~~~~~~~~~~~~^~~
   cc1: some warnings being treated as errors


vim +/netfs_resize_file +856 fs/afs/inode.c

   844	
   845	static void afs_setattr_edit_file(struct afs_operation *op)
   846	{
   847		struct afs_vnode_param *vp = &op->file[0];
   848		struct inode *inode = &vp->vnode->netfs.inode;
   849	
   850		if (op->setattr.attr->ia_valid & ATTR_SIZE) {
   851			loff_t size = op->setattr.attr->ia_size;
   852			loff_t i_size = op->setattr.old_i_size;
   853	
   854			if (size != i_size) {
   855				truncate_pagecache(inode, size);
 > 856				netfs_resize_file(inode, size);
   857				fscache_resize_cookie(afs_vnode_cache(vp->vnode), size);
   858			}
   859		}
   860	}
   861	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-06-28 21:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-28 21:27 [jlayton:netfs-linked-list 5/54] fs/afs/inode.c:856:43: error: passing argument 1 of 'netfs_resize_file' from incompatible pointer type kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®