From: kernel test robot <lkp@intel.com>
To: Joel Stanley <joel@jms.id.au>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [shenki:dev-6.1 86/92] drivers/hwmon/smpro-hwmon.c:378:2: warning: unannotated fall-through between switch labels
Date: Wed, 22 Feb 2023 02:02:43 +0800 [thread overview]
Message-ID: <202302220154.EYch2RS3-lkp@intel.com> (raw)
tree: https://github.com/shenki/linux dev-6.1
head: cac6306557586ba4479dab12c3e5efcb67e63388
commit: 046bbab2a36514056930c00f765e3f1719b5102a [86/92] hwmon: Add Ampere's Altra smpro-hwmon driver
config: i386-randconfig-a015-20230220 (https://download.01.org/0day-ci/archive/20230222/202302220154.EYch2RS3-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
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://github.com/shenki/linux/commit/046bbab2a36514056930c00f765e3f1719b5102a
git remote add shenki https://github.com/shenki/linux
git fetch --no-tags shenki dev-6.1
git checkout 046bbab2a36514056930c00f765e3f1719b5102a
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/hwmon/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202302220154.EYch2RS3-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/hwmon/smpro-hwmon.c:378:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
default:
^
drivers/hwmon/smpro-hwmon.c:378:2: note: insert 'break;' to avoid fall-through
default:
^
break;
1 warning generated.
vim +378 drivers/hwmon/smpro-hwmon.c
359
360 static umode_t smpro_is_visible(const void *data, enum hwmon_sensor_types type,
361 u32 attr, int channel)
362 {
363 const struct smpro_hwmon *hwmon = data;
364 unsigned int value;
365 int ret;
366
367 switch (type) {
368 case hwmon_temp:
369 switch (attr) {
370 case hwmon_temp_input:
371 case hwmon_temp_label:
372 case hwmon_temp_crit:
373 ret = regmap_read(hwmon->regmap, temperature[channel].reg, &value);
374 if (ret || value == 0xFFFF)
375 return 0;
376 break;
377 }
> 378 default:
379 break;
380 }
381
382 return 0444;
383 }
384
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
reply other threads:[~2023-02-21 18:05 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=202302220154.EYch2RS3-lkp@intel.com \
--to=lkp@intel.com \
--cc=joel@jms.id.au \
--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 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.