Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Chiara Meiohas <cmeiohas@nvidia.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	Leon Romanovsky <leon@kernel.org>
Subject: [leon-rdma:rdma-next 25/37] drivers/infiniband/core/nldev.c:2782:2: warning: unannotated fall-through between switch labels
Date: Fri, 9 Aug 2024 06:17:14 +0800	[thread overview]
Message-ID: <202408090634.vvrFPOUe-lkp@intel.com> (raw)

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

                 reply	other threads:[~2024-08-08 22:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202408090634.vvrFPOUe-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=cmeiohas@nvidia.com \
    --cc=leon@kernel.org \
    --cc=llvm@lists.linux.dev \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox