public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [dhowells-fs:fscache-rewrite-indexing-3 51/55] fs/cifs/cifsfs.c:401:42: error: too many arguments to function call, expected single argument 'inode', have 2 arguments
@ 2021-10-31  3:32 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-10-31  3:32 UTC (permalink / raw)
  To: David Howells; +Cc: llvm, kbuild-all, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 3936 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git fscache-rewrite-indexing-3
head:   994b9c2bea85339150b214b39d85de316ef37429
commit: ef43f63e5500ca7d57cc2e4d6586b2f093b61301 [51/55] cifs: Support fscache indexing rewrite (untested)
config: i386-randconfig-a013-20211031 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d321548c3ce987f4f21350ba1c81fdb5d4354224)
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/commit/?id=ef43f63e5500ca7d57cc2e4d6586b2f093b61301
        git remote add dhowells-fs https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git
        git fetch --no-tags dhowells-fs fscache-rewrite-indexing-3
        git checkout ef43f63e5500ca7d57cc2e4d6586b2f093b61301
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash fs/cifs/

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 >>):

>> fs/cifs/cifsfs.c:401:42: error: too many arguments to function call, expected single argument 'inode', have 2 arguments
                   cifs_fscache_unuse_inode_cookie(inode, true);
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~        ^~~~
   fs/cifs/fscache.h:107:20: note: 'cifs_fscache_unuse_inode_cookie' declared here
   static inline void cifs_fscache_unuse_inode_cookie(struct inode *inode) {}
                      ^
   1 error generated.
--
>> fs/cifs/file.c:641:37: error: variable has incomplete type 'struct cifs_fscache_inode_auxdata'
                   struct cifs_fscache_inode_auxdata auxdata;
                                                     ^
   fs/cifs/file.c:641:10: note: forward declaration of 'struct cifs_fscache_inode_auxdata'
                   struct cifs_fscache_inode_auxdata auxdata;
                          ^
>> fs/cifs/file.c:642:3: error: implicit declaration of function 'cifs_fscache_fill_auxdata' [-Werror,-Wimplicit-function-declaration]
                   cifs_fscache_fill_auxdata(file_inode(file), &auxdata);
                   ^
>> fs/cifs/file.c:890:41: error: too many arguments to function call, expected single argument 'inode', have 2 arguments
           cifs_fscache_unuse_inode_cookie(inode, file->f_mode & FMODE_WRITE);
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~        ^~~~~~~~~~~~~~~~~~~~~~~~~~
   fs/cifs/fscache.h:107:20: note: 'cifs_fscache_unuse_inode_cookie' declared here
   static inline void cifs_fscache_unuse_inode_cookie(struct inode *inode) {}
                      ^
   3 errors generated.
--
>> fs/cifs/inode.c:2263:36: error: variable has incomplete type 'struct cifs_fscache_inode_auxdata'
           struct cifs_fscache_inode_auxdata auxdata;
                                             ^
   fs/cifs/inode.c:2263:9: note: forward declaration of 'struct cifs_fscache_inode_auxdata'
           struct cifs_fscache_inode_auxdata auxdata;
                  ^
>> fs/cifs/inode.c:2274:2: error: implicit declaration of function 'cifs_fscache_fill_auxdata' [-Werror,-Wimplicit-function-declaration]
           cifs_fscache_fill_auxdata(&cifsi->vfs_inode, &auxdata);
           ^
   2 errors generated.


vim +/inode +401 fs/cifs/cifsfs.c

   395	
   396	static void
   397	cifs_evict_inode(struct inode *inode)
   398	{
   399		truncate_inode_pages_final(&inode->i_data);
   400		if (inode->i_state & I_PINNING_FSCACHE_WB)
 > 401			cifs_fscache_unuse_inode_cookie(inode, true);
   402		clear_inode(inode);
   403	}
   404	

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 32225 bytes --]

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

only message in thread, other threads:[~2021-10-31  3:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-31  3:32 [dhowells-fs:fscache-rewrite-indexing-3 51/55] fs/cifs/cifsfs.c:401:42: error: too many arguments to function call, expected single argument 'inode', have 2 arguments 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