Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Danielle Ratson <danieller@nvidia.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	Petr Machata <petrm@nvidia.com>
Subject: [jpirko-mlxsw:combined_queue 35/41] net/ethtool/netlink.c:57:2: warning: unannotated fall-through between switch labels
Date: Thu, 20 Jun 2024 00:29:12 +0800	[thread overview]
Message-ID: <202406200004.1h5efOk5-lkp@intel.com> (raw)

tree:   https://github.com/jpirko/linux_mlxsw combined_queue
head:   b9b26ca93d65953c7e01c7369498f6a82f660425
commit: f03d36275736ad36e56f9ce5b34553e495ef5231 [35/41] ethtool: Add ability to flash transceiver modules' firmware
config: x86_64-buildonly-randconfig-004-20240619 (https://download.01.org/0day-ci/archive/20240620/202406200004.1h5efOk5-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/20240620/202406200004.1h5efOk5-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/202406200004.1h5efOk5-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> net/ethtool/netlink.c:57:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
      57 |         default:
         |         ^
   net/ethtool/netlink.c:57:2: note: insert 'break;' to avoid fall-through
      57 |         default:
         |         ^
         |         break; 
   1 warning generated.


vim +57 net/ethtool/netlink.c

    49	
    50	static void ethnl_sock_priv_destroy(void *priv)
    51	{
    52		struct ethnl_sock_priv *sk_priv = priv;
    53	
    54		switch (sk_priv->type) {
    55		case ETHTOOL_SOCK_TYPE_MODULE_FW_FLASH:
    56			ethnl_module_fw_flash_sock_destroy(sk_priv);
  > 57		default:
    58			break;
    59		}
    60	}
    61	

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

                 reply	other threads:[~2024-06-19 16:30 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=202406200004.1h5efOk5-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=danieller@nvidia.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=petrm@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