[linux-next:master 12191/12292] drivers/video/fbdev/acornfb.c:864:3: error: 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:   aa14a3016182213f022068500486ef3bcacb9006
commit: 29119f65df4590266028a760d4738541a50f201b [12191/12292] Merge remote-tracking branch 'kspp-gustavo/for-next/kspp'
config: arm-randconfig-r014-20210910 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 261cbe98c38f8c1ee1a482fe76511110e790f58a)
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
        # install arm cross compiling tool for clang build
        # apt-get install binutils-arm-linux-gnueabi
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=29119f65df4590266028a760d4738541a50f201b
        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 29119f65df4590266028a760d4738541a50f201b
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm 

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

All errors (new ones prefixed by >>):

>> drivers/video/fbdev/acornfb.c:864:3: error: unannotated fall-through between switch labels [-Werror,-Wimplicit-fallthrough]
                   default:
                   ^
   drivers/video/fbdev/acornfb.c:864:3: note: insert 'break;' to avoid fall-through
                   default:
                   ^
                   break; 
   1 error generated.


vim +864 drivers/video/fbdev/acornfb.c

^1da177e4c3f41 drivers/video/acornfb.c       Linus Torvalds      2005-04-16  848  
48c68c4f1b5424 drivers/video/acornfb.c       Greg Kroah-Hartman  2012-12-21  849  static void acornfb_parse_dram(char *opt)
^1da177e4c3f41 drivers/video/acornfb.c       Linus Torvalds      2005-04-16  850  {
^1da177e4c3f41 drivers/video/acornfb.c       Linus Torvalds      2005-04-16  851  	unsigned int size;
^1da177e4c3f41 drivers/video/acornfb.c       Linus Torvalds      2005-04-16  852  
^1da177e4c3f41 drivers/video/acornfb.c       Linus Torvalds      2005-04-16  853  	size = simple_strtoul(opt, &opt, 0);
^1da177e4c3f41 drivers/video/acornfb.c       Linus Torvalds      2005-04-16  854  
^1da177e4c3f41 drivers/video/acornfb.c       Linus Torvalds      2005-04-16  855  	if (opt) {
^1da177e4c3f41 drivers/video/acornfb.c       Linus Torvalds      2005-04-16  856  		switch (*opt) {
^1da177e4c3f41 drivers/video/acornfb.c       Linus Torvalds      2005-04-16  857  		case 'M':
^1da177e4c3f41 drivers/video/acornfb.c       Linus Torvalds      2005-04-16  858  		case 'm':
^1da177e4c3f41 drivers/video/acornfb.c       Linus Torvalds      2005-04-16  859  			size *= 1024;
df561f6688fef7 drivers/video/fbdev/acornfb.c Gustavo A. R. Silva 2020-08-23  860  			fallthrough;
^1da177e4c3f41 drivers/video/acornfb.c       Linus Torvalds      2005-04-16  861  		case 'K':
^1da177e4c3f41 drivers/video/acornfb.c       Linus Torvalds      2005-04-16  862  		case 'k':
^1da177e4c3f41 drivers/video/acornfb.c       Linus Torvalds      2005-04-16  863  			size *= 1024;
^1da177e4c3f41 drivers/video/acornfb.c       Linus Torvalds      2005-04-16 @864  		default:
^1da177e4c3f41 drivers/video/acornfb.c       Linus Torvalds      2005-04-16  865  			break;
^1da177e4c3f41 drivers/video/acornfb.c       Linus Torvalds      2005-04-16  866  		}
^1da177e4c3f41 drivers/video/acornfb.c       Linus Torvalds      2005-04-16  867  	}
^1da177e4c3f41 drivers/video/acornfb.c       Linus Torvalds      2005-04-16  868  
^1da177e4c3f41 drivers/video/acornfb.c       Linus Torvalds      2005-04-16  869  	current_par.dram_size = size;
^1da177e4c3f41 drivers/video/acornfb.c       Linus Torvalds      2005-04-16  870  }
^1da177e4c3f41 drivers/video/acornfb.c       Linus Torvalds      2005-04-16  871  

:::::: The code at line 864 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx>
:::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx>

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