All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Miklos Szeredi <mszeredi@redhat.com>, linux-fsdevel@vger.kernel.org
Cc: kbuild-all@lists.01.org, Al Viro <viro@zeniv.linux.org.uk>,
	Amir Goldstein <amir73il@gmail.com>,
	David Howells <dhowells@redhat.com>,
	Yu-li Lin <yulilin@google.com>,
	Chirantan Ekbote <chirantan@chromium.org>
Subject: Re: [PATCH 7/8] vfs: open inside ->tmpfile()
Date: Sat, 17 Sep 2022 06:04:16 +0800	[thread overview]
Message-ID: <202209170555.zV70MRNl-lkp@intel.com> (raw)
In-Reply-To: <20220916194416.1657716-7-mszeredi@redhat.com>

Hi Miklos,

I love your patch! Perhaps something to improve:

[auto build test WARNING on kdave/for-next]
[also build test WARNING on jaegeuk-f2fs/dev-test linus/master v6.0-rc5]
[cannot apply to viro-vfs/for-next next-20220916]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Miklos-Szeredi/cachefiles-tmpfile-error-handling-cleanup/20220917-034700
base:   https://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git for-next
config: m68k-allyesconfig (https://download.01.org/0day-ci/archive/20220917/202209170555.zV70MRNl-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 12.1.0
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://github.com/intel-lab-lkp/linux/commit/87f47d099f22ea898e5d05215f9b2c4647012001
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review Miklos-Szeredi/cachefiles-tmpfile-error-handling-cleanup/20220917-034700
        git checkout 87f47d099f22ea898e5d05215f9b2c4647012001
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=m68k SHELL=/bin/bash fs/ext4/ fs/f2fs/ fs/minix/ fs/ramfs/ fs/ubifs/ fs/udf/ mm/

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

All warnings (new ones prefixed by >>):

   In file included from include/linux/fs.h:8,
                    from include/linux/dax.h:5,
                    from mm/filemap.c:15:
>> include/linux/dcache.h:253:30: warning: 'struct file' declared inside parameter list will not be visible outside of this definition or declaration
     253 | extern void d_tmpfile(struct file *, struct inode *);
         |                              ^~~~
--
   In file included from include/linux/fs.h:8,
                    from mm/shmem.c:24:
>> include/linux/dcache.h:253:30: warning: 'struct file' declared inside parameter list will not be visible outside of this definition or declaration
     253 | extern void d_tmpfile(struct file *, struct inode *);
         |                              ^~~~
   mm/shmem.c: In function 'shmem_tmpfile':
   mm/shmem.c:2930:27: error: passing argument 1 of 'd_tmpfile' from incompatible pointer type [-Werror=incompatible-pointer-types]
    2930 |                 d_tmpfile(file, inode);
         |                           ^~~~
         |                           |
         |                           struct file *
   include/linux/dcache.h:253:23: note: expected 'struct file *' but argument is of type 'struct file *'
     253 | extern void d_tmpfile(struct file *, struct inode *);
         |                       ^~~~~~~~~~~~~
   cc1: some warnings being treated as errors
--
   In file included from include/linux/fs.h:8,
                    from fs/ext4/namei.c:28:
>> include/linux/dcache.h:253:30: warning: 'struct file' declared inside parameter list will not be visible outside of this definition or declaration
     253 | extern void d_tmpfile(struct file *, struct inode *);
         |                              ^~~~
   fs/ext4/namei.c: In function 'ext4_tmpfile':
   fs/ext4/namei.c:2874:27: error: passing argument 1 of 'd_tmpfile' from incompatible pointer type [-Werror=incompatible-pointer-types]
    2874 |                 d_tmpfile(file, inode);
         |                           ^~~~
         |                           |
         |                           struct file *
   include/linux/dcache.h:253:23: note: expected 'struct file *' but argument is of type 'struct file *'
     253 | extern void d_tmpfile(struct file *, struct inode *);
         |                       ^~~~~~~~~~~~~
   cc1: some warnings being treated as errors
--
   In file included from include/linux/fs.h:8,
                    from fs/f2fs/namei.c:8:
>> include/linux/dcache.h:253:30: warning: 'struct file' declared inside parameter list will not be visible outside of this definition or declaration
     253 | extern void d_tmpfile(struct file *, struct inode *);
         |                              ^~~~
   fs/f2fs/namei.c: In function '__f2fs_tmpfile':
   fs/f2fs/namei.c:896:35: error: passing argument 1 of 'd_tmpfile' from incompatible pointer type [-Werror=incompatible-pointer-types]
     896 |                         d_tmpfile(file, inode);
         |                                   ^~~~
         |                                   |
         |                                   struct file *
   include/linux/dcache.h:253:23: note: expected 'struct file *' but argument is of type 'struct file *'
     253 | extern void d_tmpfile(struct file *, struct inode *);
         |                       ^~~~~~~~~~~~~
   cc1: some warnings being treated as errors
--
   In file included from include/linux/fs.h:8,
                    from fs/minix/minix.h:5,
                    from fs/minix/namei.c:8:
>> include/linux/dcache.h:253:30: warning: 'struct file' declared inside parameter list will not be visible outside of this definition or declaration
     253 | extern void d_tmpfile(struct file *, struct inode *);
         |                              ^~~~
   fs/minix/namei.c: In function 'minix_tmpfile':
   fs/minix/namei.c:63:27: error: passing argument 1 of 'd_tmpfile' from incompatible pointer type [-Werror=incompatible-pointer-types]
      63 |                 d_tmpfile(file, inode);
         |                           ^~~~
         |                           |
         |                           struct file *
   include/linux/dcache.h:253:23: note: expected 'struct file *' but argument is of type 'struct file *'
     253 | extern void d_tmpfile(struct file *, struct inode *);
         |                       ^~~~~~~~~~~~~
   cc1: some warnings being treated as errors
--
   In file included from include/linux/fs.h:8,
                    from fs/ramfs/inode.c:26:
>> include/linux/dcache.h:253:30: warning: 'struct file' declared inside parameter list will not be visible outside of this definition or declaration
     253 | extern void d_tmpfile(struct file *, struct inode *);
         |                              ^~~~
   fs/ramfs/inode.c: In function 'ramfs_tmpfile':
   fs/ramfs/inode.c:156:19: error: passing argument 1 of 'd_tmpfile' from incompatible pointer type [-Werror=incompatible-pointer-types]
     156 |         d_tmpfile(file, inode);
         |                   ^~~~
         |                   |
         |                   struct file *
   include/linux/dcache.h:253:23: note: expected 'struct file *' but argument is of type 'struct file *'
     253 | extern void d_tmpfile(struct file *, struct inode *);
         |                       ^~~~~~~~~~~~~
   cc1: some warnings being treated as errors
--
   In file included from include/linux/fs.h:8,
                    from fs/ubifs/ubifs.h:16,
                    from fs/ubifs/dir.c:31:
>> include/linux/dcache.h:253:30: warning: 'struct file' declared inside parameter list will not be visible outside of this definition or declaration
     253 | extern void d_tmpfile(struct file *, struct inode *);
         |                              ^~~~
   fs/ubifs/dir.c: In function 'ubifs_tmpfile':
   fs/ubifs/dir.c:479:19: error: passing argument 1 of 'd_tmpfile' from incompatible pointer type [-Werror=incompatible-pointer-types]
     479 |         d_tmpfile(file, inode);
         |                   ^~~~
         |                   |
         |                   struct file *
   include/linux/dcache.h:253:23: note: expected 'struct file *' but argument is of type 'struct file *'
     253 | extern void d_tmpfile(struct file *, struct inode *);
         |                       ^~~~~~~~~~~~~
   cc1: some warnings being treated as errors
--
   In file included from include/linux/fs.h:8,
                    from fs/udf/udfdecl.h:10,
                    from fs/udf/namei.c:22:
>> include/linux/dcache.h:253:30: warning: 'struct file' declared inside parameter list will not be visible outside of this definition or declaration
     253 | extern void d_tmpfile(struct file *, struct inode *);
         |                              ^~~~
   fs/udf/namei.c: In function 'udf_tmpfile':
   fs/udf/namei.c:643:19: error: passing argument 1 of 'd_tmpfile' from incompatible pointer type [-Werror=incompatible-pointer-types]
     643 |         d_tmpfile(file, inode);
         |                   ^~~~
         |                   |
         |                   struct file *
   include/linux/dcache.h:253:23: note: expected 'struct file *' but argument is of type 'struct file *'
     253 | extern void d_tmpfile(struct file *, struct inode *);
         |                       ^~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +253 include/linux/dcache.h

   252	
 > 253	extern void d_tmpfile(struct file *, struct inode *);
   254	

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

  reply	other threads:[~2022-09-16 22:04 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-16 19:44 [PATCH 1/8] cachefiles: tmpfile error handling cleanup Miklos Szeredi
2022-09-16 19:44 ` [PATCH 2/8] vfs: add tmpfile_open() helper Miklos Szeredi
2022-09-16 19:44 ` [PATCH 3/8] cachefiles: use " Miklos Szeredi
2022-09-16 19:44 ` [PATCH 4/8] ovl: " Miklos Szeredi
2022-09-16 19:44 ` [PATCH 5/8] vfs: make vfs_tmpfile() static Miklos Szeredi
2022-09-16 19:44 ` [PATCH 6/8] vfs: move open right after ->tmpfile() Miklos Szeredi
2022-09-16 19:44 ` [PATCH 7/8] vfs: open inside ->tmpfile() Miklos Szeredi
2022-09-16 22:04   ` kernel test robot [this message]
2022-09-17  1:28   ` kernel test robot
2022-09-17  1:49   ` kernel test robot
2022-09-16 19:44 ` [PATCH 8/8] fuse: implement ->tmpfile() Miklos Szeredi
2022-09-16 21:52   ` Bernd Schubert
2022-09-19  6:30     ` Miklos Szeredi
2022-09-19  7:16       ` Bernd Schubert

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=202209170555.zV70MRNl-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=amir73il@gmail.com \
    --cc=chirantan@chromium.org \
    --cc=dhowells@redhat.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=mszeredi@redhat.com \
    --cc=viro@zeniv.linux.org.uk \
    --cc=yulilin@google.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.