From: kernel test robot <lkp@intel.com>
To: Gerhard Engleder <eg@keba.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
linux-hwmon@vger.kernel.org, Guenter Roeck <linux@roeck-us.net>
Subject: [groeck-staging:hwmon-next 45/45] drivers/hwmon/kfan.c:108:2: warning: unannotated fall-through between switch labels
Date: Tue, 13 May 2025 08:53:30 +0800 [thread overview]
Message-ID: <202505130827.32HeaRdb-lkp@intel.com> (raw)
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
reply other threads:[~2025-05-13 0:53 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=202505130827.32HeaRdb-lkp@intel.com \
--to=lkp@intel.com \
--cc=eg@keba.com \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@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