Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [jpirko-mlxsw:combined_queue 35/41] net/ethtool/netlink.c:57:2: warning: unannotated fall-through between switch labels
@ 2024-06-19 16:29 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-06-19 16:29 UTC (permalink / raw)
  To: Danielle Ratson; +Cc: llvm, oe-kbuild-all, Petr Machata

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-06-19 16:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-19 16:29 [jpirko-mlxsw:combined_queue 35/41] net/ethtool/netlink.c:57:2: warning: unannotated fall-through between switch labels kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox