[linux-next:master 2899/2970] drivers/hwmon/max6620.c:236:2: warning: unannotated fall-through between switch labels

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   9004fd387338b1104499b2c52ef5729a32c408f0
commit: 8c1b0feea4fecc11f2dd2fa37481fc63562a2cb6 [2899/2970] Merge branch 'hwmon-next' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git
config: hexagon-randconfig-r023-20210917 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c8b3d7d6d6de37af68b2f379d0e37304f78e115f)
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/next/linux-next.git/commit/?id=8c1b0feea4fecc11f2dd2fa37481fc63562a2cb6
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout 8c1b0feea4fecc11f2dd2fa37481fc63562a2cb6
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=hexagon 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

>> drivers/hwmon/max6620.c:236:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
           default:
           ^
   drivers/hwmon/max6620.c:236:2: note: insert 'break;' to avoid fall-through
           default:
           ^
           break; 
   1 warning generated.


vim +236 drivers/hwmon/max6620.c

a2ff27ef3c770c2 Arun Saravanan Balachandran 2021-09-13  218  
a2ff27ef3c770c2 Arun Saravanan Balachandran 2021-09-13  219  static umode_t
a2ff27ef3c770c2 Arun Saravanan Balachandran 2021-09-13  220  max6620_is_visible(const void *data, enum hwmon_sensor_types type, u32 attr,
a2ff27ef3c770c2 Arun Saravanan Balachandran 2021-09-13  221  		   int channel)
a2ff27ef3c770c2 Arun Saravanan Balachandran 2021-09-13  222  {
a2ff27ef3c770c2 Arun Saravanan Balachandran 2021-09-13  223  	switch (type) {
a2ff27ef3c770c2 Arun Saravanan Balachandran 2021-09-13  224  	case hwmon_fan:
a2ff27ef3c770c2 Arun Saravanan Balachandran 2021-09-13  225  		switch (attr) {
a2ff27ef3c770c2 Arun Saravanan Balachandran 2021-09-13  226  		case hwmon_fan_alarm:
a2ff27ef3c770c2 Arun Saravanan Balachandran 2021-09-13  227  		case hwmon_fan_input:
a2ff27ef3c770c2 Arun Saravanan Balachandran 2021-09-13  228  			return 0444;
a2ff27ef3c770c2 Arun Saravanan Balachandran 2021-09-13  229  		case hwmon_fan_div:
a2ff27ef3c770c2 Arun Saravanan Balachandran 2021-09-13  230  		case hwmon_fan_target:
a2ff27ef3c770c2 Arun Saravanan Balachandran 2021-09-13  231  			return 0644;
a2ff27ef3c770c2 Arun Saravanan Balachandran 2021-09-13  232  		default:
a2ff27ef3c770c2 Arun Saravanan Balachandran 2021-09-13  233  			break;
a2ff27ef3c770c2 Arun Saravanan Balachandran 2021-09-13  234  		}
a2ff27ef3c770c2 Arun Saravanan Balachandran 2021-09-13  235  
a2ff27ef3c770c2 Arun Saravanan Balachandran 2021-09-13 @236  	default:
a2ff27ef3c770c2 Arun Saravanan Balachandran 2021-09-13  237  		break;
a2ff27ef3c770c2 Arun Saravanan Balachandran 2021-09-13  238  	}
a2ff27ef3c770c2 Arun Saravanan Balachandran 2021-09-13  239  
a2ff27ef3c770c2 Arun Saravanan Balachandran 2021-09-13  240  	return 0;
a2ff27ef3c770c2 Arun Saravanan Balachandran 2021-09-13  241  }
a2ff27ef3c770c2 Arun Saravanan Balachandran 2021-09-13  242  

:::::: The code at line 236 was first introduced by commit
:::::: a2ff27ef3c770c2d86ca8e5160b9aff08323be1a hwmon: Add Maxim MAX6620 hardware monitoring driver

:::::: TO: Arun Saravanan Balachandran <Arun_Saravanan_Balac@xxxxxxxx>
:::::: CC: Guenter Roeck <linux@xxxxxxxxxxxx>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux