Hi "Enrico,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on kdave/for-next]
[also build test ERROR on linux/master linus/master v5.13-rc7]
[cannot apply to ext4/dev next-20210622]
[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]
url:
https://github.com/0day-ci/linux/commits/Enrico-Weigelt-metux-IT-consult/...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git for-next
config: m68k-randconfig-s031-20210622 (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.0
reproduce:
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
#
https://github.com/0day-ci/linux/commit/1239d457c0b015846b187f9b31460e638...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Enrico-Weigelt-metux-IT-consult/fs-generic-file-operation-for-fstrim/20210622-211217
git checkout 1239d457c0b015846b187f9b31460e638301a395
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1
CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=m68k
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
> fs/btrfs/inode.c:10652:3: error: 'const struct
file_operations' has no member named 'fitrim'; did you mean 'fstrim'?
10652 | .fitrim = btrfs_ioctl_fitrim,
| ^~~~~~
| fstrim
> fs/btrfs/inode.c:10652:13: error: positional initialization of
field in 'struct' declared with 'designated_init' attribute
[-Werror=designated-init]
10652 | .fitrim = btrfs_ioctl_fitrim,
| ^~~~~~~~~~~~~~~~~~
fs/btrfs/inode.c:10652:13: note: (near initialization for
'btrfs_dir_file_operations')
> fs/btrfs/inode.c:10652:13: error: initialization of 'int
(*)(int, struct file *, int)' from incompatible pointer type 'long int (*)(struct
file *, struct fstrim_range *)' [-Werror=incompatible-pointer-types]
fs/btrfs/inode.c:10652:13: note: (near initialization for
'btrfs_dir_file_operations.fasync')
cc1: some warnings being treated as errors
vim +10652 fs/btrfs/inode.c
10640
10641 static const struct file_operations btrfs_dir_file_operations = {
10642 .llseek = generic_file_llseek,
10643 .read = generic_read_dir,
10644 .iterate_shared = btrfs_real_readdir,
10645 .open = btrfs_opendir,
10646 .unlocked_ioctl = btrfs_ioctl,
10647 #ifdef CONFIG_COMPAT
10648 .compat_ioctl = btrfs_compat_ioctl,
10649 #endif
10650 .release = btrfs_release_file,
10651 .fsync = btrfs_sync_file,
10652 .fitrim = btrfs_ioctl_fitrim,
10653 };
10654
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org