tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: b74523885a715463203d4ccc3cf8c85952d3701a commit: 41d26bf4aba070dfd2ab48866cc27a48ee6228c7 [13560/14231] net: phy: marvell: refactor HWMON OOP style config: x86_64-randconfig-a014-20210421 (attached as .config) compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project d87b9b81ccb95217181ce75515c6c68bbb408ca4) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install x86_64 cross compiling tool for clang build # apt-get install binutils-x86-64-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=41d26bf4aba070dfd2ab48866cc27a48ee6228c7 git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 41d26bf4aba070dfd2ab48866cc27a48ee6228c7 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@xxxxxxxxx> All errors (new ones prefixed by >>): >> drivers/net/phy/marvell.c:2433:3: error: fallthrough annotation does not directly precede switch label fallthrough; ^ include/linux/compiler_attributes.h:208:41: note: expanded from macro 'fallthrough' # define fallthrough __attribute__((__fallthrough__)) ^ 1 error generated. vim +2433 drivers/net/phy/marvell.c 2419 2420 static int marvell_hwmon_write(struct device *dev, enum hwmon_sensor_types type, 2421 u32 attr, int channel, long temp) 2422 { 2423 struct phy_device *phydev = dev_get_drvdata(dev); 2424 const struct marvell_hwmon_ops *ops = to_marvell_hwmon_ops(phydev); 2425 int err = -EOPNOTSUPP; 2426 2427 switch (attr) { 2428 case hwmon_temp_crit: 2429 if (ops->set_temp_critical) 2430 err = ops->set_temp_critical(phydev, temp); 2431 break; 2432 default: > 2433 fallthrough; 2434 } 2435 2436 return err; 2437 } 2438 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip