* [leon-rdma:rdma-next 25/37] drivers/infiniband/core/nldev.c:2782:2: warning: unannotated fall-through between switch labels
@ 2024-08-08 22:17 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-08-08 22:17 UTC (permalink / raw)
To: Chiara Meiohas; +Cc: llvm, oe-kbuild-all, Leon Romanovsky
tree: https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git rdma-next
head: 8f867b8b95b4aab452108f77167fae8d7e0d5056
commit: 917eed2ac05a89c1c663e22dc744b8ae64d84ac7 [25/37] RDMA/nldev: Add support for RDMA monitoring
config: i386-buildonly-randconfig-004-20240809 (https://download.01.org/0day-ci/archive/20240809/202408090634.vvrFPOUe-lkp@intel.com/config)
compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240809/202408090634.vvrFPOUe-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/202408090634.vvrFPOUe-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/infiniband/core/nldev.c:2782:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
2782 | default:
| ^
drivers/infiniband/core/nldev.c:2782:2: note: insert 'break;' to avoid fall-through
2782 | default:
| ^
| break;
1 warning generated.
vim +2782 drivers/infiniband/core/nldev.c
2756
2757 static void rdma_nl_notify_err_msg(struct ib_device *device, u32 port_num,
2758 enum rdma_nl_notify_event_type type)
2759 {
2760 struct net_device *netdev;
2761
2762 switch (type) {
2763 case RDMA_REGISTER_EVENT:
2764 dev_warn_ratelimited(&device->dev,
2765 "Failed to send RDMA monitor register device event\n");
2766 break;
2767 case RDMA_UNREGISTER_EVENT:
2768 dev_warn_ratelimited(&device->dev,
2769 "Failed to send RDMA monitor unregister device event\n");
2770 break;
2771 case RDMA_NETDEV_ATTACH_EVENT:
2772 netdev = ib_device_get_netdev(device, port_num);
2773 dev_warn_ratelimited(&device->dev,
2774 "Failed to send RDMA monitor netdev attach event: port %d netdev %d\n",
2775 port_num, netdev->ifindex);
2776 dev_put(netdev);
2777 break;
2778 case RDMA_NETDEV_DETACH_EVENT:
2779 dev_warn_ratelimited(&device->dev,
2780 "Failed to send RDMA monitor netdev detach event: port %d\n",
2781 port_num);
> 2782 default:
2783 break;
2784 };
2785 }
2786
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-08-08 22:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-08 22:17 [leon-rdma:rdma-next 25/37] drivers/infiniband/core/nldev.c:2782:2: warning: unannotated fall-through between switch labels kernel test robot
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.