[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZvKCWJ+7u+wpgfyl@rli9-mobl>
Date: Tue, 24 Sep 2024 17:11:52 +0800
From: kernel test robot <lkp@...el.com>
To: Ba Jing <bajing@...s.chinamobile.com>, <shuah@...nel.org>
CC: <oe-kbuild-all@...ts.linux.dev>, <bajing@...s.chinamobile.com>,
<linux-kselftest@...r.kernel.org>, <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] memfd: fuse_mnt: remove unused macro
Hi Ba,
kernel test robot noticed the following build warnings:
[auto build test WARNING on shuah-kselftest/next]
[also build test WARNING on shuah-kselftest/fixes linus/master v6.11 next-20240924]
[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/Ba-Jing/memfd-fuse_mnt-remove-unused-macro/20240923-161950
base: https://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest.git next
patch link: https://lore.kernel.org/r/20240903044455.11268-1-bajing%40cmss.chinamobile.com
patch subject: [PATCH] memfd: fuse_mnt: remove unused macro
:::::: branch date: 24 hours ago
:::::: commit date: 24 hours ago
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240924/202409241613.KyXs9fiF-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@...el.com>
| Closes: https://lore.kernel.org/r/202409241613.KyXs9fiF-lkp@intel.com/
All warnings (new ones prefixed by >>):
fuse_mnt.c:101:10: error: 'struct fuse_operations_compat2' has no member named 'readdir'
101 | .readdir = memfd_readdir,
| ^~~~~~~
>> fuse_mnt.c:101:27: warning: initialization of 'int (*)(const char *, char *, size_t)' {aka 'int (*)(const char *, char *, long unsigned int)'} from incompatible pointer type 'int (*)(const char *, void *, int (*)(void *, const char *, const struct stat *, off_t), off_t, struct fuse_file_info *)' {aka 'int (*)(const char *, void *, int (*)(void *, const char *, const struct stat *, long int), long int, struct fuse_file_info *)'} [-Wincompatible-pointer-types]
101 | .readdir = memfd_readdir,
| ^~~~~~~~~~~~~
fuse_mnt.c:101:27: note: (near initialization for 'memfd_ops.readlink')
>> fuse_mnt.c:102:27: warning: initialization of 'int (*)(const char *, int)' from incompatible pointer type 'int (*)(const char *, struct fuse_file_info *)' [-Wincompatible-pointer-types]
102 | .open = memfd_open,
| ^~~~~~~~~~
fuse_mnt.c:102:27: note: (near initialization for 'memfd_ops.open')
>> fuse_mnt.c:103:27: warning: initialization of 'int (*)(const char *, char *, size_t, off_t)' {aka 'int (*)(const char *, char *, long unsigned int, long int)'} from incompatible pointer type 'int (*)(const char *, char *, size_t, off_t, struct fuse_file_info *)' {aka 'int (*)(const char *, char *, long unsigned int, long int, struct fuse_file_info *)'} [-Wincompatible-pointer-types]
103 | .read = memfd_read,
| ^~~~~~~~~~
fuse_mnt.c:103:27: note: (near initialization for 'memfd_ops.read')
In file included from /usr/include/fuse.h:9,
from fuse_mnt.c:15:
fuse_mnt.c: In function 'main':
fuse_mnt.c:108:16: error: too many arguments to function 'fuse_main_compat2'
108 | return fuse_main(argc, argv, &memfd_ops, NULL);
| ^~~~~~~~~
In file included from /usr/include/fuse/fuse.h:1012:
/usr/include/fuse/fuse_compat.h:151:5: note: declared here
151 | int fuse_main_compat2(int argc, char *argv[],
| ^~~~~~~~~~~~~~~~~
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists