All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Michael Guralnik <michaelgur@nvidia.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: Re: [PATCH rdma-next 6/7] RDMA/nldev: Add support for RDMA monitoring
Date: Thu, 22 Aug 2024 04:30:23 +0800	[thread overview]
Message-ID: <202408220447.expL9XcO-lkp@intel.com> (raw)
In-Reply-To: <20240821051017.7730-7-michaelgur@nvidia.com>

Hi Michael,

kernel test robot noticed the following build errors:

[auto build test ERROR on rdma/for-next]
[also build test ERROR on linus/master v6.11-rc4 next-20240821]
[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/Michael-Guralnik/RDMA-mlx5-Check-RoCE-LAG-status-before-getting-netdev/20240821-131236
base:   https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git for-next
patch link:    https://lore.kernel.org/r/20240821051017.7730-7-michaelgur%40nvidia.com
patch subject: [PATCH rdma-next 6/7] RDMA/nldev: Add support for RDMA monitoring
config: loongarch-defconfig (https://download.01.org/0day-ci/archive/20240822/202408220447.expL9XcO-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240822/202408220447.expL9XcO-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/202408220447.expL9XcO-lkp@intel.com/

All error/warnings (new ones prefixed by >>):

   In file included from drivers/infiniband/core/device.c:45:
>> include/rdma/rdma_netlink.h:120:33: warning: 'struct ib_device' declared inside parameter list will not be visible outside of this definition or declaration
     120 | int rdma_nl_notify_event(struct ib_device *ib, u32 port_num,
         |                                 ^~~~~~~~~
   drivers/infiniband/core/device.c: In function 'ib_device_notify_register':
>> drivers/infiniband/core/device.c:1360:36: error: passing argument 1 of 'rdma_nl_notify_event' from incompatible pointer type [-Wincompatible-pointer-types]
    1360 |         ret = rdma_nl_notify_event(device, 0, RDMA_REGISTER_EVENT);
         |                                    ^~~~~~
         |                                    |
         |                                    struct ib_device *
   include/rdma/rdma_netlink.h:120:44: note: expected 'struct ib_device *' but argument is of type 'struct ib_device *'
     120 | int rdma_nl_notify_event(struct ib_device *ib, u32 port_num,
         |                          ~~~~~~~~~~~~~~~~~~^~
   drivers/infiniband/core/device.c:1369:44: error: passing argument 1 of 'rdma_nl_notify_event' from incompatible pointer type [-Wincompatible-pointer-types]
    1369 |                 ret = rdma_nl_notify_event(device, port,
         |                                            ^~~~~~
         |                                            |
         |                                            struct ib_device *
   include/rdma/rdma_netlink.h:120:44: note: expected 'struct ib_device *' but argument is of type 'struct ib_device *'
     120 | int rdma_nl_notify_event(struct ib_device *ib, u32 port_num,
         |                          ~~~~~~~~~~~~~~~~~~^~
   drivers/infiniband/core/device.c: In function '__ib_unregister_device':
   drivers/infiniband/core/device.c:1520:30: error: passing argument 1 of 'rdma_nl_notify_event' from incompatible pointer type [-Wincompatible-pointer-types]
    1520 |         rdma_nl_notify_event(ib_dev, 0, RDMA_UNREGISTER_EVENT);
         |                              ^~~~~~
         |                              |
         |                              struct ib_device *
   include/rdma/rdma_netlink.h:120:44: note: expected 'struct ib_device *' but argument is of type 'struct ib_device *'
     120 | int rdma_nl_notify_event(struct ib_device *ib, u32 port_num,
         |                          ~~~~~~~~~~~~~~~~~~^~
   drivers/infiniband/core/device.c: In function 'ib_device_set_netdev':
   drivers/infiniband/core/device.c:2227:38: error: passing argument 1 of 'rdma_nl_notify_event' from incompatible pointer type [-Wincompatible-pointer-types]
    2227 |                 rdma_nl_notify_event(ib_dev, port, etype);
         |                                      ^~~~~~
         |                                      |
         |                                      struct ib_device *
   include/rdma/rdma_netlink.h:120:44: note: expected 'struct ib_device *' but argument is of type 'struct ib_device *'
     120 | int rdma_nl_notify_event(struct ib_device *ib, u32 port_num,
         |                          ~~~~~~~~~~~~~~~~~~^~
--
   In file included from drivers/infiniband/core/netlink.c:41:
>> include/rdma/rdma_netlink.h:120:33: warning: 'struct ib_device' declared inside parameter list will not be visible outside of this definition or declaration
     120 | int rdma_nl_notify_event(struct ib_device *ib, u32 port_num,
         |                                 ^~~~~~~~~


vim +/rdma_nl_notify_event +1360 drivers/infiniband/core/device.c

  1353	
  1354	static void ib_device_notify_register(struct ib_device *device)
  1355	{
  1356		struct net_device *netdev;
  1357		u32 port;
  1358		int ret;
  1359	
> 1360		ret = rdma_nl_notify_event(device, 0, RDMA_REGISTER_EVENT);
  1361		if (ret)
  1362			return;
  1363	
  1364		rdma_for_each_port(device, port) {
  1365			netdev = ib_device_get_netdev(device, port);
  1366			if (!netdev)
  1367				continue;
  1368	
  1369			ret = rdma_nl_notify_event(device, port,
  1370						   RDMA_NETDEV_ATTACH_EVENT);
  1371			dev_put(netdev);
  1372			if (ret)
  1373				return;
  1374		}
  1375		return;
  1376	}
  1377	

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

  parent reply	other threads:[~2024-08-21 20:30 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-21  5:10 [PATCH rdma-next 0/7] Support RDMA events monitoring through Michael Guralnik
2024-08-21  5:10 ` [PATCH rdma-next 1/7] RDMA/mlx5: Check RoCE LAG status before getting netdev Michael Guralnik
2024-08-21  5:10 ` [PATCH rdma-next 2/7] RDMA/mlx5: Obtain upper net device only when needed Michael Guralnik
2024-08-21  5:10 ` [PATCH rdma-next 3/7] RDMA/mlx5: Initialize phys_port_cnt earlier in RDMA device creation Michael Guralnik
2024-08-21  5:10 ` [PATCH rdma-next 4/7] RDMA/device: Clear netdev mapping in ib_device_get_netdev on unregistration Michael Guralnik
2024-08-21  5:10 ` [PATCH rdma-next 5/7] RDMA/mlx5: Use IB set_netdev and get_netdev functions Michael Guralnik
2024-08-21  5:10 ` [PATCH rdma-next 6/7] RDMA/nldev: Add support for RDMA monitoring Michael Guralnik
2024-08-21 19:18   ` kernel test robot
2024-08-21 20:30   ` kernel test robot [this message]
2024-08-21  5:10 ` [PATCH rdma-next 7/7] RDMA/nldev: Expose whether RDMA monitoring is supported Michael Guralnik

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=202408220447.expL9XcO-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=michaelgur@nvidia.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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.