public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Gustavo A. R. Silva" <gustavoars@kernel.org>
Cc: clang-built-linux@googlegroups.com, kbuild-all@lists.01.org,
	"Gustavo A. R. Silva" <gustavo@embeddedor.com>,
	LKML <linux-kernel@vger.kernel.org>
Subject: [gustavoars-linux:for-next/clang-fallthrough 2/2] arch/arm/mach-rpc/riscpc.c:52:2: warning: unannotated fall-through between switch labels
Date: Mon, 26 Jul 2021 03:34:10 +0800	[thread overview]
Message-ID: <202107260355.bF00i5bi-lkp@intel.com> (raw)

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

Hi Gustavo,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git for-next/clang-fallthrough
head:   49e42c96f96bea335ea7f51af973804e8134afc4
commit: 49e42c96f96bea335ea7f51af973804e8134afc4 [2/2] Revert "Revert "Makefile: Enable -Wimplicit-fallthrough for Clang""
config: arm-randconfig-r021-20210723 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 9625ca5b602616b2f5584e8a49ba93c52c141e40)
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/gustavoars/linux.git/commit/?id=49e42c96f96bea335ea7f51af973804e8134afc4
        git remote add gustavoars-linux https://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git
        git fetch --no-tags gustavoars-linux for-next/clang-fallthrough
        git checkout 49e42c96f96bea335ea7f51af973804e8134afc4
        # 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@intel.com>

All warnings (new ones prefixed by >>):

>> arch/arm/mach-rpc/riscpc.c:52:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
           default:
           ^
   arch/arm/mach-rpc/riscpc.c:52:2: note: insert 'break;' to avoid fall-through
           default:
           ^
           break; 
   1 warning generated.
--
   drivers/scsi/arm/acornscsi.c:2510:15: warning: no previous prototype for function 'acornscsi_queuecmd' [-Wmissing-prototypes]
   DEF_SCSI_QCMD(acornscsi_queuecmd)
                 ^
   drivers/scsi/arm/acornscsi.c:2510:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   DEF_SCSI_QCMD(acornscsi_queuecmd)
   ^
   static 
   include/scsi/scsi_host.h:514:2: note: expanded from macro 'DEF_SCSI_QCMD'
           int func_name(struct Scsi_Host *shost, struct scsi_cmnd *cmd)   \
           ^
   drivers/scsi/arm/acornscsi.c:2612:5: warning: no previous prototype for function 'acornscsi_abort' [-Wmissing-prototypes]
   int acornscsi_abort(struct scsi_cmnd *SCpnt)
       ^
   drivers/scsi/arm/acornscsi.c:2612:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int acornscsi_abort(struct scsi_cmnd *SCpnt)
   ^
   static 
>> drivers/scsi/arm/acornscsi.c:2651:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
           case res_success:
           ^
   drivers/scsi/arm/acornscsi.c:2651:2: note: insert '__attribute__((fallthrough));' to silence this warning
           case res_success:
           ^
           __attribute__((fallthrough)); 
   drivers/scsi/arm/acornscsi.c:2651:2: note: insert 'break;' to avoid fall-through
           case res_success:
           ^
           break; 
   drivers/scsi/arm/acornscsi.c:2693:5: warning: no previous prototype for function 'acornscsi_host_reset' [-Wmissing-prototypes]
   int acornscsi_host_reset(struct scsi_cmnd *SCpnt)
       ^
   drivers/scsi/arm/acornscsi.c:2693:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int acornscsi_host_reset(struct scsi_cmnd *SCpnt)
   ^
   static 
   drivers/scsi/arm/acornscsi.c:2741:31: warning: variable 'p' set but not used [-Wunused-but-set-variable]
       static char string[100], *p;
                                 ^
   drivers/scsi/arm/acornscsi.c:2739:7: warning: no previous prototype for function 'acornscsi_info' [-Wmissing-prototypes]
   char *acornscsi_info(struct Scsi_Host *host)
         ^
   drivers/scsi/arm/acornscsi.c:2739:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   char *acornscsi_info(struct Scsi_Host *host)
   ^
   6 warnings generated.
   /tmp/acornscsi-cda313.s: Assembler messages:
   /tmp/acornscsi-cda313.s:2634: Error: selected processor does not support `ldrh r0,[r0,#188]' in ARM mode
   /tmp/acornscsi-cda313.s:3902: Error: selected processor does not support `ldrh r0,[r0,#188]' in ARM mode
   /tmp/acornscsi-cda313.s:6008: Error: selected processor does not support `strh r0,[r4,#160]' in ARM mode
   /tmp/acornscsi-cda313.s:6036: Error: selected processor does not support `strh r0,[r4,#160]' in ARM mode
   /tmp/acornscsi-cda313.s:6041: Error: selected processor does not support `strheq r0,[r4,#160]' in ARM mode
   /tmp/acornscsi-cda313.s:6158: Error: selected processor does not support `ldrh r1,[r9,#188]' in ARM mode
   /tmp/acornscsi-cda313.s:6203: Error: selected processor does not support `ldrh r7,[r9,#188]' in ARM mode
   /tmp/acornscsi-cda313.s:6787: Error: selected processor does not support `ldrh r0,[r10,#160]' in ARM mode
   clang-13: error: assembler command failed with exit code 1 (use -v to see invocation)
--
>> drivers/scsi/arm/fas216.c:1379:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
           default:
           ^
   drivers/scsi/arm/fas216.c:1379:2: note: insert 'break;' to avoid fall-through
           default:
           ^
           break; 
   1 warning generated.
   /tmp/fas216-a859e6.s: Assembler messages:
   /tmp/fas216-a859e6.s:410: Error: selected processor does not support `ldrsb r1,[sp,#17]' in ARM mode
   /tmp/fas216-a859e6.s:1424: Error: selected processor does not support `ldrh r2,[r3,#188]' in ARM mode
   /tmp/fas216-a859e6.s:1441: Error: selected processor does not support `ldrh r0,[r3,#188]' in ARM mode
   /tmp/fas216-a859e6.s:3694: Error: selected processor does not support `ldrh r0,[r8,#188]' in ARM mode
   /tmp/fas216-a859e6.s:3711: Error: selected processor does not support `ldrh r2,[r8,#188]' in ARM mode
   clang-13: error: assembler command failed with exit code 1 (use -v to see invocation)
--
>> drivers/scsi/arm/fas216.c:1379:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
           default:
           ^
   drivers/scsi/arm/fas216.c:1379:2: note: insert 'break;' to avoid fall-through
           default:
           ^
           break; 
   1 warning generated.
   /tmp/fas216-86a903.s: Assembler messages:
   /tmp/fas216-86a903.s:410: Error: selected processor does not support `ldrsb r1,[sp,#17]' in ARM mode
   /tmp/fas216-86a903.s:1424: Error: selected processor does not support `ldrh r2,[r3,#188]' in ARM mode
   /tmp/fas216-86a903.s:1441: Error: selected processor does not support `ldrh r0,[r3,#188]' in ARM mode
   /tmp/fas216-86a903.s:3694: Error: selected processor does not support `ldrh r0,[r8,#188]' in ARM mode
   /tmp/fas216-86a903.s:3711: Error: selected processor does not support `ldrh r2,[r8,#188]' in ARM mode
   clang-13: error: assembler command failed with exit code 1 (use -v to see invocation)

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for QCOM_SCM
   Depends on (ARM || ARM64) && HAVE_ARM_SMCCC
   Selected by
   - ARM_QCOM_SPM_CPUIDLE && CPU_IDLE && (ARM || ARM64) && (ARCH_QCOM || COMPILE_TEST && !ARM64 && MMU
   WARNING: unmet direct dependencies detected for ARM_CPU_SUSPEND
   Depends on ARCH_SUSPEND_POSSIBLE
   Selected by
   - ARM_QCOM_SPM_CPUIDLE && CPU_IDLE && (ARM || ARM64) && (ARCH_QCOM || COMPILE_TEST && !ARM64 && MMU


vim +52 arch/arm/mach-rpc/riscpc.c

^1da177e4c3f41 Linus Torvalds      2005-04-16  40  
^1da177e4c3f41 Linus Torvalds      2005-04-16  41  static int __init parse_tag_acorn(const struct tag *tag)
^1da177e4c3f41 Linus Torvalds      2005-04-16  42  {
^1da177e4c3f41 Linus Torvalds      2005-04-16  43  	memc_ctrl_reg = tag->u.acorn.memc_control_reg;
^1da177e4c3f41 Linus Torvalds      2005-04-16  44  	number_mfm_drives = tag->u.acorn.adfsdrives;
^1da177e4c3f41 Linus Torvalds      2005-04-16  45  
^1da177e4c3f41 Linus Torvalds      2005-04-16  46  	switch (tag->u.acorn.vram_pages) {
^1da177e4c3f41 Linus Torvalds      2005-04-16  47  	case 512:
^1da177e4c3f41 Linus Torvalds      2005-04-16  48  		vram_size += PAGE_SIZE * 256;
df561f6688fef7 Gustavo A. R. Silva 2020-08-23  49  		fallthrough;	/* ??? */
^1da177e4c3f41 Linus Torvalds      2005-04-16  50  	case 256:
^1da177e4c3f41 Linus Torvalds      2005-04-16  51  		vram_size += PAGE_SIZE * 256;
^1da177e4c3f41 Linus Torvalds      2005-04-16 @52  	default:
^1da177e4c3f41 Linus Torvalds      2005-04-16  53  		break;
^1da177e4c3f41 Linus Torvalds      2005-04-16  54  	}
^1da177e4c3f41 Linus Torvalds      2005-04-16  55  #if 0
^1da177e4c3f41 Linus Torvalds      2005-04-16  56  	if (vram_size) {
^1da177e4c3f41 Linus Torvalds      2005-04-16  57  		desc->video_start = 0x02000000;
^1da177e4c3f41 Linus Torvalds      2005-04-16  58  		desc->video_end   = 0x02000000 + vram_size;
^1da177e4c3f41 Linus Torvalds      2005-04-16  59  	}
^1da177e4c3f41 Linus Torvalds      2005-04-16  60  #endif
^1da177e4c3f41 Linus Torvalds      2005-04-16  61  	return 0;
^1da177e4c3f41 Linus Torvalds      2005-04-16  62  }
^1da177e4c3f41 Linus Torvalds      2005-04-16  63  

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

:::::: TO: Linus Torvalds <torvalds@ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@ppc970.osdl.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: 31750 bytes --]

                 reply	other threads:[~2021-07-25 19:35 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=202107260355.bF00i5bi-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=clang-built-linux@googlegroups.com \
    --cc=gustavo@embeddedor.com \
    --cc=gustavoars@kernel.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.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