Re: [PATCH 3/5] misc: mlx5ctl: Add info ioctl

From: kernel test robot
Date: Sun Oct 22 2023 - 07:28:00 EST


Hi Saeed,

kernel test robot noticed the following build errors:

[auto build test ERROR on char-misc/char-misc-testing]
[also build test ERROR on char-misc/char-misc-next char-misc/char-misc-linus soc/for-next rdma/for-next linus/master v6.6-rc6]
[cannot apply to next-20231020]
[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/Saeed-Mahameed/mlx5-Add-aux-dev-for-ctl-interface/20231018-162610
base: char-misc/char-misc-testing
patch link: https://lore.kernel.org/r/20231018081941.475277-4-saeed%40kernel.org
patch subject: [PATCH 3/5] misc: mlx5ctl: Add info ioctl
config: arc-allmodconfig (https://download.01.org/0day-ci/archive/20231022/202310221931.r1vsjtys-lkp@xxxxxxxxx/config)
compiler: arceb-elf-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231022/202310221931.r1vsjtys-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202310221931.r1vsjtys-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> drivers/misc/mlx5ctl/main.c:276:27: error: initialization of 'long int (*)(struct file *, unsigned int, long unsigned int)' from incompatible pointer type 'ssize_t (*)(struct file *, unsigned int, long unsigned int)' {aka 'int (*)(struct file *, unsigned int, long unsigned int)'} [-Werror=incompatible-pointer-types]
276 | .unlocked_ioctl = mlx5ctl_ioctl,
| ^~~~~~~~~~~~~
drivers/misc/mlx5ctl/main.c:276:27: note: (near initialization for 'mlx5ctl_fops.unlocked_ioctl')
cc1: some warnings being treated as errors


vim +276 drivers/misc/mlx5ctl/main.c

271
272 static const struct file_operations mlx5ctl_fops = {
273 .owner = THIS_MODULE,
274 .open = mlx5ctl_open,
275 .release = mlx5ctl_release,
> 276 .unlocked_ioctl = mlx5ctl_ioctl,
277 };
278

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki