From: kernel test robot <lkp@intel.com>
To: Michael Shych <michaelsh@nvidia.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
linux-hwmon@vger.kernel.org, Guenter Roeck <linux@roeck-us.net>,
Vadim Pasternak <vadimp@nvidia.com>
Subject: [groeck-staging:hwmon-next 32/33] drivers/hwmon/powr1220.c:185:2: warning: unannotated fall-through between switch labels
Date: Mon, 24 Jan 2022 16:35:39 +0800 [thread overview]
Message-ID: <202201241605.pf50OsUm-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-next
head: 9b9f1e670d2c61c676039474fd2d98ca0a54ff75
commit: 19d8ebde288924d3385763832ea99396c8b4fe8c [32/33] hwmon: (powr1220) Upgrade driver to support hwmon info infrastructure
config: hexagon-randconfig-r032-20220123 (https://download.01.org/0day-ci/archive/20220124/202201241605.pf50OsUm-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 9006bf424847bf91f0a624ffc27ad165c7b804c4)
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/groeck/linux-staging.git/commit/?id=19d8ebde288924d3385763832ea99396c8b4fe8c
git remote add groeck-staging https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git
git fetch --no-tags groeck-staging hwmon-next
git checkout 19d8ebde288924d3385763832ea99396c8b4fe8c
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/hwmon/
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/powr1220.c:185:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
default:
^
drivers/hwmon/powr1220.c:185:2: note: insert 'break;' to avoid fall-through
default:
^
break;
1 warning generated.
vim +185 drivers/hwmon/powr1220.c
169
170 static umode_t
171 powr1220_is_visible(const void *data, enum hwmon_sensor_types type, u32
172 attr, int channel)
173 {
174 switch (type) {
175 case hwmon_in:
176 switch (attr) {
177 case hwmon_in_input:
178 case hwmon_in_highest:
179 case hwmon_in_label:
180 return 0444;
181 default:
182 break;
183 }
184
> 185 default:
186 break;
187 }
188
189 return 0;
190 }
191
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
reply other threads:[~2022-01-24 8:36 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=202201241605.pf50OsUm-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=llvm@lists.linux.dev \
--cc=michaelsh@nvidia.com \
--cc=vadimp@nvidia.com \
/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).