* [linux-next:master 2899/2970] drivers/hwmon/max6620.c:236:2: warning: unannotated fall-through between switch labels
@ 2021-09-17 16:38 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-09-17 16:38 UTC (permalink / raw)
To: Guenter Roeck; +Cc: llvm, kbuild-all, Linux Memory Management List
[-- 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 --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* [linux-next:master 2899/2970] drivers/hwmon/max6620.c:236:2: warning: unannotated fall-through between switch labels
@ 2021-09-17 16:38 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-09-17 16:38 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3952 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(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 32531 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-09-17 16:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-17 16:38 [linux-next:master 2899/2970] drivers/hwmon/max6620.c:236:2: warning: unannotated fall-through between switch labels kernel test robot
2021-09-17 16:38 ` kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.