[linux-next:master 10357/13128] arch/arm/mach-s3c/mach-jive.c:250:2: warning: unannotated fall-through between switch labels
From: kernel test robot <hidden>
Date: 2021-11-04 23:40:25
Also in:
llvm, oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 8a796a1dfca2780321755033a74bca2bbe651680 commit: 649796e558ebbecc7345ab323db767f4f16f34a3 [10357/13128] Makefile: Enable -Wimplicit-fallthrough for Clang config: arm-randconfig-c002-20211103 (attached as .config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 264d3b6d4e08401c5b50a85bd76e80b3461d77e6) 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=649796e558ebbecc7345ab323db767f4f16f34a3 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 649796e558ebbecc7345ab323db767f4f16f34a3 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <redacted> All warnings (new ones prefixed by >>):
quoted
arch/arm/mach-s3c/mach-jive.c:250:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
case 0:
^
arch/arm/mach-s3c/mach-jive.c:250:2: note: insert 'break;' to avoid fall-through
case 0:
^
break;
1 warning generated.
vim +250 arch/arm/mach-s3c/mach-jive.c
9db829f485c553a arch/arm/mach-s3c2412/mach-jive.c Ben Dooks 2008-07-03 232
9db829f485c553a arch/arm/mach-s3c2412/mach-jive.c Ben Dooks 2008-07-03 233 static int __init jive_mtdset(char *options)
9db829f485c553a arch/arm/mach-s3c2412/mach-jive.c Ben Dooks 2008-07-03 234 {
9db829f485c553a arch/arm/mach-s3c2412/mach-jive.c Ben Dooks 2008-07-03 235 struct s3c2410_nand_set *nand = &jive_nand_sets[0];
9db829f485c553a arch/arm/mach-s3c2412/mach-jive.c Ben Dooks 2008-07-03 236 unsigned long set;
9db829f485c553a arch/arm/mach-s3c2412/mach-jive.c Ben Dooks 2008-07-03 237
9db829f485c553a arch/arm/mach-s3c2412/mach-jive.c Ben Dooks 2008-07-03 238 if (options == NULL || options[0] == '\0')
9db829f485c553a arch/arm/mach-s3c2412/mach-jive.c Ben Dooks 2008-07-03 239 return 0;
9db829f485c553a arch/arm/mach-s3c2412/mach-jive.c Ben Dooks 2008-07-03 240
5c2432cbe87d693 arch/arm/mach-s3c24xx/mach-jive.c Daniel Walter 2014-08-08 241 if (kstrtoul(options, 10, &set)) {
9db829f485c553a arch/arm/mach-s3c2412/mach-jive.c Ben Dooks 2008-07-03 242 printk(KERN_ERR "failed to parse mtdset=%s\n", options);
9db829f485c553a arch/arm/mach-s3c2412/mach-jive.c Ben Dooks 2008-07-03 243 return 0;
9db829f485c553a arch/arm/mach-s3c2412/mach-jive.c Ben Dooks 2008-07-03 244 }
9db829f485c553a arch/arm/mach-s3c2412/mach-jive.c Ben Dooks 2008-07-03 245
9db829f485c553a arch/arm/mach-s3c2412/mach-jive.c Ben Dooks 2008-07-03 246 switch (set) {
9db829f485c553a arch/arm/mach-s3c2412/mach-jive.c Ben Dooks 2008-07-03 247 case 1:
9db829f485c553a arch/arm/mach-s3c2412/mach-jive.c Ben Dooks 2008-07-03 248 nand->nr_partitions = ARRAY_SIZE(jive_imageB_nand_part);
9db829f485c553a arch/arm/mach-s3c2412/mach-jive.c Ben Dooks 2008-07-03 249 nand->partitions = jive_imageB_nand_part;
9db829f485c553a arch/arm/mach-s3c2412/mach-jive.c Ben Dooks 2008-07-03 @250 case 0:
9db829f485c553a arch/arm/mach-s3c2412/mach-jive.c Ben Dooks 2008-07-03 251 /* this is already setup in the nand info */
9db829f485c553a arch/arm/mach-s3c2412/mach-jive.c Ben Dooks 2008-07-03 252 break;
9db829f485c553a arch/arm/mach-s3c2412/mach-jive.c Ben Dooks 2008-07-03 253 default:
9db829f485c553a arch/arm/mach-s3c2412/mach-jive.c Ben Dooks 2008-07-03 254 printk(KERN_ERR "Unknown mtd set %ld specified,"
9db829f485c553a arch/arm/mach-s3c2412/mach-jive.c Ben Dooks 2008-07-03 255 "using default.", set);
9db829f485c553a arch/arm/mach-s3c2412/mach-jive.c Ben Dooks 2008-07-03 256 }
9db829f485c553a arch/arm/mach-s3c2412/mach-jive.c Ben Dooks 2008-07-03 257
9db829f485c553a arch/arm/mach-s3c2412/mach-jive.c Ben Dooks 2008-07-03 258 return 0;
9db829f485c553a arch/arm/mach-s3c2412/mach-jive.c Ben Dooks 2008-07-03 259 }
9db829f485c553a arch/arm/mach-s3c2412/mach-jive.c Ben Dooks 2008-07-03 260
:::::: The code at line 250 was first introduced by commit
:::::: 9db829f485c553a0e677a165b37f877bf74f36ff [ARM] JIVE: Initial machine support for Logitech Jive
:::::: TO: Ben Dooks [off-list ref]
:::::: CC: Ben Dooks [off-list ref]
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Attachments
- .config.gz [application/gzip] 32023 bytes