From: kernel test robot <lkp@intel.com>
To: David Howells <dhowells@redhat.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
Jeff Layton <jlayton@kernel.org>
Subject: [jlayton:netfs-linked-list 5/54] fs/afs/inode.c:856:43: error: passing argument 1 of 'netfs_resize_file' from incompatible pointer type
Date: Wed, 29 Jun 2022 05:27:11 +0800 [thread overview]
Message-ID: <202206290541.3FJEiknk-lkp@intel.com> (raw)
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
reply other threads:[~2022-06-28 21:27 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=202206290541.3FJEiknk-lkp@intel.com \
--to=lkp@intel.com \
--cc=dhowells@redhat.com \
--cc=jlayton@kernel.org \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®