lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202107260355.bF00i5bi-lkp@intel.com>
Date:   Mon, 26 Jul 2021 03:34:10 +0800
From:   kernel test robot <lkp@...el.com>
To:     "Gustavo A. R. Silva" <gustavoars@...nel.org>
Cc:     clang-built-linux@...glegroups.com, kbuild-all@...ts.01.org,
        "Gustavo A. R. Silva" <gustavo@...eddedor.com>,
        LKML <linux-kernel@...r.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

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@...el.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@...970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@...970.osdl.org>

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

Download attachment ".config.gz" of type "application/gzip" (31750 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ