From: kernel test robot <lkp@intel.com>
To: "Marek Behún" <kabel@kernel.org>
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
Linux Memory Management List <linux-mm@kvack.org>
Subject: [linux-next:master 13560/14231] drivers/net/phy/marvell.c:2433:3: error: fallthrough annotation does not directly precede switch label
Date: Wed, 21 Apr 2021 21:49:50 +0800 [thread overview]
Message-ID: <202104212144.MSWZ6lAC-lkp@intel.com> (raw)
[-- 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 --]
reply other threads:[~2021-04-21 13:50 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=202104212144.MSWZ6lAC-lkp@intel.com \
--to=lkp@intel.com \
--cc=clang-built-linux@googlegroups.com \
--cc=kabel@kernel.org \
--cc=kbuild-all@lists.01.org \
--cc=linux-mm@kvack.org \
/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