[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202110190311.vRTbU4sL-lkp@intel.com>
Date: Tue, 19 Oct 2021 03:57:19 +0800
From: kernel test robot <lkp@...el.com>
To: David Howells <dhowells@...hat.com>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org
Subject: [dhowells-fs:fscache-rewrite-indexing 77/77]
fs/cifs/cifsfs.c:401:42: error: too many arguments to function call,
expected single argument 'inode', have 2 arguments
tree: https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git fscache-rewrite-indexing
head: 77d7cb0fca08e72544d242d6897dede22de6bc20
commit: 77d7cb0fca08e72544d242d6897dede22de6bc20 [77/77] cifs: Support fscache indexing rewrite (untested)
config: x86_64-randconfig-r031-20211019 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d245f2e8597bfb52c34810a328d42b990e4af1a4)
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=77d7cb0fca08e72544d242d6897dede22de6bc20
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
git checkout 77d7cb0fca08e72544d242d6897dede22de6bc20
# 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=x86_64 SHELL=/bin/bash fs/cifs/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
In file included from fs/cifs/cifsfs.c:40:
fs/cifs/fscache.h:103:38: error: redefinition of 'cifs_inode_cookie'
static inline struct fscache_cookie *cifs_inode_cookie(struct inode *inode)
^
fs/cifs/fscache.h:93:38: note: previous definition is here
static inline struct fscache_cookie *cifs_inode_cookie(struct inode *inode) { return NULL; }
^
>> 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:92:20: note: 'cifs_fscache_unuse_inode_cookie' declared here
static inline void cifs_fscache_unuse_inode_cookie(struct inode *inode) {}
^
2 errors generated.
--
In file included from fs/cifs/file.c:32:
fs/cifs/fscache.h:103:38: error: redefinition of 'cifs_inode_cookie'
static inline struct fscache_cookie *cifs_inode_cookie(struct inode *inode)
^
fs/cifs/fscache.h:93:38: note: previous definition is here
static inline struct fscache_cookie *cifs_inode_cookie(struct inode *inode) { return NULL; }
^
>> 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:92:20: note: 'cifs_fscache_unuse_inode_cookie' declared here
static inline void cifs_fscache_unuse_inode_cookie(struct inode *inode) {}
^
4 errors generated.
--
In file included from fs/cifs/inode.c:25:
fs/cifs/fscache.h:103:38: error: redefinition of 'cifs_inode_cookie'
static inline struct fscache_cookie *cifs_inode_cookie(struct inode *inode)
^
fs/cifs/fscache.h:93:38: note: previous definition is here
static inline struct fscache_cookie *cifs_inode_cookie(struct inode *inode) { return NULL; }
^
>> 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);
^
3 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
Download attachment ".config.gz" of type "application/gzip" (39674 bytes)
Powered by blists - more mailing lists