* [groeck-staging:hwmon-next 45/45] drivers/hwmon/kfan.c:108:2: warning: unannotated fall-through between switch labels
@ 2025-05-13 0:53 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-05-13 0:53 UTC (permalink / raw)
To: Gerhard Engleder; +Cc: llvm, oe-kbuild-all, linux-hwmon, Guenter Roeck
tree: https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-next
head: b35fa477e6b6784401732d6d17ca643f7f73e4c5
commit: b35fa477e6b6784401732d6d17ca643f7f73e4c5 [45/45] hwmon: Add KEBA fan controller support
config: s390-allmodconfig (https://download.01.org/0day-ci/archive/20250513/202505130827.32HeaRdb-lkp@intel.com/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250513/202505130827.32HeaRdb-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202505130827.32HeaRdb-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/hwmon/kfan.c:108:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
108 | default:
| ^
drivers/hwmon/kfan.c:108:2: note: insert 'break;' to avoid fall-through
108 | default:
| ^
| break;
drivers/hwmon/kfan.c:141:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
141 | default:
| ^
drivers/hwmon/kfan.c:141:2: note: insert 'break;' to avoid fall-through
141 | default:
| ^
| break;
drivers/hwmon/kfan.c:169:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
169 | default:
| ^
drivers/hwmon/kfan.c:169:2: note: insert 'break;' to avoid fall-through
169 | default:
| ^
| break;
3 warnings generated.
vim +108 drivers/hwmon/kfan.c
94
95 static int kfan_write(struct device *dev, enum hwmon_sensor_types type,
96 u32 attr, int channel, long val)
97 {
98 struct kfan *kfan = dev_get_drvdata(dev);
99
100 switch (type) {
101 case hwmon_pwm:
102 switch (attr) {
103 case hwmon_pwm_input:
104 return kfan_set_pwm(kfan, val);
105 default:
106 break;
107 }
> 108 default:
109 break;
110 }
111
112 return -EOPNOTSUPP;
113 }
114
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-05-13 0:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-13 0:53 [groeck-staging:hwmon-next 45/45] drivers/hwmon/kfan.c:108:2: warning: unannotated fall-through between switch labels 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.