From: kernel test robot <lkp@intel.com>
To: Saeed Mahameed <saeed@kernel.org>, Arnd Bergmann <arnd@arndb.de>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: oe-kbuild-all@lists.linux.dev, Jason Gunthorpe <jgg@nvidia.com>,
Leon Romanovsky <leonro@nvidia.com>, Jiri Pirko <jiri@nvidia.com>,
Leonid Bloch <lbloch@nvidia.com>,
Itay Avraham <itayavr@nvidia.com>,
Jakub Kicinski <kuba@kernel.org>,
linux-kernel@vger.kernel.org, Saeed Mahameed <saeedm@nvidia.com>
Subject: Re: [PATCH v2 5/5] misc: mlx5ctl: Add umem reg/unreg ioctl
Date: Mon, 20 Nov 2023 03:29:53 +0800 [thread overview]
Message-ID: <202311200350.qRmXknpI-lkp@intel.com> (raw)
In-Reply-To: <20231119092450.164996-6-saeed@kernel.org>
Hi Saeed,
kernel test robot noticed the following build warnings:
[auto build test WARNING on char-misc/char-misc-testing]
[also build test WARNING on rdma/for-next linus/master v6.7-rc1 next-20231117]
[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/misc-mlx5ctl-Add-mlx5ctl-misc-driver/20231119-215311
base: char-misc/char-misc-testing
patch link: https://lore.kernel.org/r/20231119092450.164996-6-saeed%40kernel.org
patch subject: [PATCH v2 5/5] misc: mlx5ctl: Add umem reg/unreg ioctl
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20231120/202311200350.qRmXknpI-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231120/202311200350.qRmXknpI-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202311200350.qRmXknpI-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from include/uapi/linux/posix_types.h:5,
from include/uapi/linux/types.h:14,
from include/linux/types.h:6,
from include/linux/kcsan-checks.h:14,
from include/asm-generic/barrier.h:17,
from arch/alpha/include/asm/barrier.h:21,
from arch/alpha/include/asm/rwonce.h:10,
from include/linux/compiler.h:251,
from include/linux/build_bug.h:5,
from include/linux/container_of.h:5,
from include/linux/list.h:5,
from include/linux/miscdevice.h:5,
from drivers/misc/mlx5ctl/main.c:4:
drivers/misc/mlx5ctl/main.c: In function 'mlx5ctl_compat_ioctl':
include/linux/stddef.h:8:14: error: called object is not a function or function pointer
8 | #define NULL ((void *)0)
| ^
include/linux/fs.h:1837:26: note: in expansion of macro 'NULL'
1837 | #define compat_ptr_ioctl NULL
| ^~~~
drivers/misc/mlx5ctl/main.c:441:16: note: in expansion of macro 'compat_ptr_ioctl'
441 | return compat_ptr_ioctl(file, cmd, arg);
| ^~~~~~~~~~~~~~~~
>> drivers/misc/mlx5ctl/main.c:442:1: warning: control reaches end of non-void function [-Wreturn-type]
442 | }
| ^
vim +442 drivers/misc/mlx5ctl/main.c
434
435 static long mlx5ctl_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
436 {
437 if (cmd == MLX5CTL_IOCTL_UMEM_UNREG) /* arg is a scalar */
438 return mlx5ctl_ioctl(file, cmd, arg);
439
440 /* arg is a pointer */
441 return compat_ptr_ioctl(file, cmd, arg);
> 442 }
443
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2023-11-19 19:30 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-19 9:24 [PATCH V2 0/5] mlx5 ConnectX diagnostic misc driver Saeed Mahameed
2023-11-19 9:24 ` [PATCH V2 1/5] mlx5: Add aux dev for ctl interface Saeed Mahameed
2023-11-19 9:24 ` [PATCH V2 2/5] misc: mlx5ctl: Add mlx5ctl misc driver Saeed Mahameed
2023-11-19 9:51 ` Greg Kroah-Hartman
2023-11-21 7:25 ` Saeed Mahameed
2023-11-19 9:24 ` [PATCH V2 3/5] misc: mlx5ctl: Add info ioctl Saeed Mahameed
2023-11-19 9:24 ` [PATCH V2 4/5] misc: mlx5ctl: Add command rpc ioctl Saeed Mahameed
2023-11-19 9:24 ` [PATCH V2 5/5] misc: mlx5ctl: Add umem reg/unreg ioctl Saeed Mahameed
2023-11-19 19:29 ` kernel test robot [this message]
2023-11-19 20:06 ` [PATCH v2 " kernel test robot
2023-11-19 21:34 ` kernel test robot
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=202311200350.qRmXknpI-lkp@intel.com \
--to=lkp@intel.com \
--cc=arnd@arndb.de \
--cc=gregkh@linuxfoundation.org \
--cc=itayavr@nvidia.com \
--cc=jgg@nvidia.com \
--cc=jiri@nvidia.com \
--cc=kuba@kernel.org \
--cc=lbloch@nvidia.com \
--cc=leonro@nvidia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=saeed@kernel.org \
--cc=saeedm@nvidia.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox