lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202206290541.3FJEiknk-lkp@intel.com>
Date:   Wed, 29 Jun 2022 05:27:11 +0800
From:   kernel test robot <lkp@...el.com>
To:     David Howells <dhowells@...hat.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Jeff Layton <jlayton@...nel.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

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@...el.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ