llvm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [groeck-staging:hwmon-next 32/33] drivers/hwmon/powr1220.c:185:2: warning: unannotated fall-through between switch labels
@ 2022-01-24  8:35 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-01-24  8:35 UTC (permalink / raw)
  To: Michael Shych
  Cc: llvm, kbuild-all, linux-hwmon, Guenter Roeck, Vadim Pasternak

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

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

only message in thread, other threads:[~2022-01-24  8:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-24  8:35 [groeck-staging:hwmon-next 32/33] drivers/hwmon/powr1220.c:185:2: warning: unannotated fall-through between switch labels kernel test robot

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).