All of lore.kernel.org
 help / color / mirror / Atom feed
* [shenki:dev-6.1 86/92] drivers/hwmon/smpro-hwmon.c:378:2: warning: unannotated fall-through between switch labels
@ 2023-02-21 18:02 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-02-21 18:02 UTC (permalink / raw)
  To: Joel Stanley; +Cc: oe-kbuild-all

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-02-21 18:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-21 18:02 [shenki:dev-6.1 86/92] drivers/hwmon/smpro-hwmon.c:378: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.