linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Gustavo A. R. Silva" <gustavoars@kernel.org>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	Linux Memory Management List <linux-mm@kvack.org>,
	Nathan Chancellor <nathan@kernel.org>,
	Kees Cook <keescook@chromium.org>
Subject: [linux-next:master 10357/13128] arch/arm/mach-s3c/mach-jive.c:250:2: warning: unannotated fall-through between switch labels
Date: Fri, 5 Nov 2021 07:40:02 +0800	[thread overview]
Message-ID: <202111050749.H3f15yHV-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 4990 bytes --]

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 <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> 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 <ben-linux@fluff.org>
:::::: CC: Ben Dooks <ben-linux@fluff.org>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 32023 bytes --]

                 reply	other threads:[~2021-11-04 23:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202111050749.H3f15yHV-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=gustavoars@kernel.org \
    --cc=kbuild-all@lists.01.org \
    --cc=keescook@chromium.org \
    --cc=linux-mm@kvack.org \
    --cc=llvm@lists.linux.dev \
    --cc=nathan@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).