linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 13560/14231] drivers/net/phy/marvell.c:2433:3: error: fallthrough annotation does not directly precede switch label
@ 2021-04-21 13:49 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-04-21 13:49 UTC (permalink / raw)
  To: Marek Behún
  Cc: kbuild-all, clang-built-linux, Linux Memory Management List

[-- Attachment #1: Type: text/plain, Size: 2455 bytes --]

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@intel.com>

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@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 44420 bytes --]

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

only message in thread, other threads:[~2021-04-21 13:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-21 13:49 [linux-next:master 13560/14231] drivers/net/phy/marvell.c:2433:3: error: fallthrough annotation does not directly precede switch label 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