From: kernel test robot <lkp@intel.com>
To: Guenter Roeck <linux@roeck-us.net>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
Linux Memory Management List <linux-mm@kvack.org>
Subject: [linux-next:master 2899/2970] drivers/hwmon/max6620.c:236:2: warning: unannotated fall-through between switch labels
Date: Sat, 18 Sep 2021 00:38:13 +0800 [thread overview]
Message-ID: <202109180005.1nOXOKYd-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3883 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 9004fd387338b1104499b2c52ef5729a32c408f0
commit: 8c1b0feea4fecc11f2dd2fa37481fc63562a2cb6 [2899/2970] Merge branch 'hwmon-next' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git
config: hexagon-randconfig-r023-20210917 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c8b3d7d6d6de37af68b2f379d0e37304f78e115f)
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
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=8c1b0feea4fecc11f2dd2fa37481fc63562a2cb6
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 8c1b0feea4fecc11f2dd2fa37481fc63562a2cb6
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=hexagon
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/hwmon/max6620.c:236:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
default:
^
drivers/hwmon/max6620.c:236:2: note: insert 'break;' to avoid fall-through
default:
^
break;
1 warning generated.
vim +236 drivers/hwmon/max6620.c
a2ff27ef3c770c2 Arun Saravanan Balachandran 2021-09-13 218
a2ff27ef3c770c2 Arun Saravanan Balachandran 2021-09-13 219 static umode_t
a2ff27ef3c770c2 Arun Saravanan Balachandran 2021-09-13 220 max6620_is_visible(const void *data, enum hwmon_sensor_types type, u32 attr,
a2ff27ef3c770c2 Arun Saravanan Balachandran 2021-09-13 221 int channel)
a2ff27ef3c770c2 Arun Saravanan Balachandran 2021-09-13 222 {
a2ff27ef3c770c2 Arun Saravanan Balachandran 2021-09-13 223 switch (type) {
a2ff27ef3c770c2 Arun Saravanan Balachandran 2021-09-13 224 case hwmon_fan:
a2ff27ef3c770c2 Arun Saravanan Balachandran 2021-09-13 225 switch (attr) {
a2ff27ef3c770c2 Arun Saravanan Balachandran 2021-09-13 226 case hwmon_fan_alarm:
a2ff27ef3c770c2 Arun Saravanan Balachandran 2021-09-13 227 case hwmon_fan_input:
a2ff27ef3c770c2 Arun Saravanan Balachandran 2021-09-13 228 return 0444;
a2ff27ef3c770c2 Arun Saravanan Balachandran 2021-09-13 229 case hwmon_fan_div:
a2ff27ef3c770c2 Arun Saravanan Balachandran 2021-09-13 230 case hwmon_fan_target:
a2ff27ef3c770c2 Arun Saravanan Balachandran 2021-09-13 231 return 0644;
a2ff27ef3c770c2 Arun Saravanan Balachandran 2021-09-13 232 default:
a2ff27ef3c770c2 Arun Saravanan Balachandran 2021-09-13 233 break;
a2ff27ef3c770c2 Arun Saravanan Balachandran 2021-09-13 234 }
a2ff27ef3c770c2 Arun Saravanan Balachandran 2021-09-13 235
a2ff27ef3c770c2 Arun Saravanan Balachandran 2021-09-13 @236 default:
a2ff27ef3c770c2 Arun Saravanan Balachandran 2021-09-13 237 break;
a2ff27ef3c770c2 Arun Saravanan Balachandran 2021-09-13 238 }
a2ff27ef3c770c2 Arun Saravanan Balachandran 2021-09-13 239
a2ff27ef3c770c2 Arun Saravanan Balachandran 2021-09-13 240 return 0;
a2ff27ef3c770c2 Arun Saravanan Balachandran 2021-09-13 241 }
a2ff27ef3c770c2 Arun Saravanan Balachandran 2021-09-13 242
:::::: The code at line 236 was first introduced by commit
:::::: a2ff27ef3c770c2d86ca8e5160b9aff08323be1a hwmon: Add Maxim MAX6620 hardware monitoring driver
:::::: TO: Arun Saravanan Balachandran <Arun_Saravanan_Balac@dell.com>
:::::: CC: Guenter Roeck <linux@roeck-us.net>
---
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: 32531 bytes --]
reply other threads:[~2021-09-17 16:54 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=202109180005.1nOXOKYd-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-mm@kvack.org \
--cc=linux@roeck-us.net \
--cc=llvm@lists.linux.dev \
/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;
as well as URLs for NNTP newsgroup(s).