tree: https://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git for-next/clang-ft head: de6b606b07e40c037ed4f83b53ee541692a78c6e commit: 7d30604536de43168b1eae0a4a938bcbca7786d2 [2/3] Revert "kbuild: Do not enable -Wimplicit-fallthrough for clang for now" config: x86_64-randconfig-a005-20201009 (attached as .config) compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 4cfc4025cc1433ca5ef1c526053fc9c4bfe64109) 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 x86_64 cross compiling tool for clang build # apt-get install binutils-x86-64-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git/commit/?id=7d30604536de43168b1eae0a4a938bcbca7786d2 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-ft git checkout 7d30604536de43168b1eae0a4a938bcbca7786d2 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <l...@intel.com> All warnings (new ones prefixed by >>): In file included from drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c:31: In file included from include/linux/pci.h:1439: In file included from include/linux/dmapool.h:14: In file included from include/linux/scatterlist.h:8: In file included from include/linux/mm.h:679: In file included from include/linux/huge_mm.h:8: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:241:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough] case 1: ; ^ include/linux/signal.h:241:2: note: insert '__attribute__((fallthrough));' to silence this warning case 1: ; ^ __attribute__((fallthrough)); include/linux/signal.h:241:2: note: insert 'break;' to avoid fall-through case 1: ; ^ break; include/linux/signal.h:253:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough] case 1: ; ^ include/linux/signal.h:253:2: note: insert '__attribute__((fallthrough));' to silence this warning case 1: ; ^ __attribute__((fallthrough)); include/linux/signal.h:253:2: note: insert 'break;' to avoid fall-through case 1: ; ^ break; In file included from drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c:47: In file included from include/net/ip.h:25: include/linux/jhash.h:102:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough] case 0: /* Nothing left to add */ ^ include/linux/jhash.h:102:2: note: insert 'break;' to avoid fall-through case 0: /* Nothing left to add */ ^ break; include/linux/jhash.h:139:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough] case 0: /* Nothing left to add */ ^ include/linux/jhash.h:139:2: note: insert 'break;' to avoid fall-through case 0: /* Nothing left to add */ ^ break; >> drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c:6318:2: warning: >> unannotated fall-through between switch labels [-Wimplicit-fallthrough] case FW_MSG_CODE_DRV_LOAD_PORT: ^ drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c:6318:2: note: insert 'break;' to avoid fall-through case FW_MSG_CODE_DRV_LOAD_PORT: ^ break; 5 warnings generated. -- In file included from drivers/net/ethernet/broadcom/bnxt/bnxt.c:21: In file included from include/linux/pci.h:1439: In file included from include/linux/dmapool.h:14: In file included from include/linux/scatterlist.h:8: In file included from include/linux/mm.h:679: In file included from include/linux/huge_mm.h:8: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:241:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough] case 1: ; ^ include/linux/signal.h:241:2: note: insert '__attribute__((fallthrough));' to silence this warning case 1: ; ^ __attribute__((fallthrough)); include/linux/signal.h:241:2: note: insert 'break;' to avoid fall-through case 1: ; ^ break; include/linux/signal.h:253:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough] case 1: ; ^ include/linux/signal.h:253:2: note: insert '__attribute__((fallthrough));' to silence this warning case 1: ; ^ __attribute__((fallthrough)); include/linux/signal.h:253:2: note: insert 'break;' to avoid fall-through case 1: ; ^ break; In file included from drivers/net/ethernet/broadcom/bnxt/bnxt.c:40: In file included from include/net/ip.h:25: include/linux/jhash.h:102:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough] case 0: /* Nothing left to add */ ^ include/linux/jhash.h:102:2: note: insert 'break;' to avoid fall-through case 0: /* Nothing left to add */ ^ break; include/linux/jhash.h:139:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough] case 0: /* Nothing left to add */ ^ include/linux/jhash.h:139:2: note: insert 'break;' to avoid fall-through case 0: /* Nothing left to add */ ^ break; >> drivers/net/ethernet/broadcom/bnxt/bnxt.c:2099:2: warning: unannotated >> fall-through between switch labels [-Wimplicit-fallthrough] default: ^ drivers/net/ethernet/broadcom/bnxt/bnxt.c:2099:2: note: insert 'break;' to avoid fall-through default: ^ break; 5 warnings generated. -- In file included from drivers/scsi/bfa/bfa_ioc.c:11: In file included from drivers/scsi/bfa/bfad_drv.h:23: In file included from include/linux/pci.h:1439: In file included from include/linux/dmapool.h:14: In file included from include/linux/scatterlist.h:8: In file included from include/linux/mm.h:679: In file included from include/linux/huge_mm.h:8: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:241:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough] case 1: ; ^ include/linux/signal.h:241:2: note: insert '__attribute__((fallthrough));' to silence this warning case 1: ; ^ __attribute__((fallthrough)); include/linux/signal.h:241:2: note: insert 'break;' to avoid fall-through case 1: ; ^ break; include/linux/signal.h:253:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough] case 1: ; ^ include/linux/signal.h:253:2: note: insert '__attribute__((fallthrough));' to silence this warning case 1: ; ^ __attribute__((fallthrough)); include/linux/signal.h:253:2: note: insert 'break;' to avoid fall-through case 1: ; ^ break; >> drivers/scsi/bfa/bfa_ioc.c:3303:2: warning: unannotated fall-through between >> switch labels [-Wimplicit-fallthrough] case BFI_ABLK_I2H_PF_DELETE: ^ drivers/scsi/bfa/bfa_ioc.c:3303:2: note: insert 'break;' to avoid fall-through case BFI_ABLK_I2H_PF_DELETE: ^ break; 3 warnings generated. vim +6318 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 8a1c38d17d88c8d drivers/net/bnx2x_main.c Eilon Greenstein 2009-02-12 6309 471de716b782fb5 drivers/net/bnx2x_main.c Eilon Greenstein 2008-08-13 6310 static void bnx2x_init_internal(struct bnx2x *bp, u32 load_code) 471de716b782fb5 drivers/net/bnx2x_main.c Eilon Greenstein 2008-08-13 6311 { 471de716b782fb5 drivers/net/bnx2x_main.c Eilon Greenstein 2008-08-13 6312 switch (load_code) { 471de716b782fb5 drivers/net/bnx2x_main.c Eilon Greenstein 2008-08-13 6313 case FW_MSG_CODE_DRV_LOAD_COMMON: f2e0899f0f275cc drivers/net/bnx2x/bnx2x_main.c Dmitry Kravkov 2010-10-06 6314 case FW_MSG_CODE_DRV_LOAD_COMMON_CHIP: 471de716b782fb5 drivers/net/bnx2x_main.c Eilon Greenstein 2008-08-13 6315 bnx2x_init_internal_common(bp); 471de716b782fb5 drivers/net/bnx2x_main.c Eilon Greenstein 2008-08-13 6316 /* no break */ 471de716b782fb5 drivers/net/bnx2x_main.c Eilon Greenstein 2008-08-13 6317 471de716b782fb5 drivers/net/bnx2x_main.c Eilon Greenstein 2008-08-13 @6318 case FW_MSG_CODE_DRV_LOAD_PORT: 619c5cb6885b936 drivers/net/bnx2x/bnx2x_main.c Vlad Zolotarov 2011-06-14 6319 /* nothing to do */ 471de716b782fb5 drivers/net/bnx2x_main.c Eilon Greenstein 2008-08-13 6320 /* no break */ 471de716b782fb5 drivers/net/bnx2x_main.c Eilon Greenstein 2008-08-13 6321 471de716b782fb5 drivers/net/bnx2x_main.c Eilon Greenstein 2008-08-13 6322 case FW_MSG_CODE_DRV_LOAD_FUNCTION: 523224a3b3cd407 drivers/net/bnx2x/bnx2x_main.c Dmitry Kravkov 2010-10-06 6323 /* internal memory per function is 523224a3b3cd407 drivers/net/bnx2x/bnx2x_main.c Dmitry Kravkov 2010-10-06 6324 initialized inside bnx2x_pf_init */ 471de716b782fb5 drivers/net/bnx2x_main.c Eilon Greenstein 2008-08-13 6325 break; 471de716b782fb5 drivers/net/bnx2x_main.c Eilon Greenstein 2008-08-13 6326 471de716b782fb5 drivers/net/bnx2x_main.c Eilon Greenstein 2008-08-13 6327 default: 471de716b782fb5 drivers/net/bnx2x_main.c Eilon Greenstein 2008-08-13 6328 BNX2X_ERR("Unknown load_code (0x%x) from MCP\n", load_code); 471de716b782fb5 drivers/net/bnx2x_main.c Eilon Greenstein 2008-08-13 6329 break; 471de716b782fb5 drivers/net/bnx2x_main.c Eilon Greenstein 2008-08-13 6330 } 471de716b782fb5 drivers/net/bnx2x_main.c Eilon Greenstein 2008-08-13 6331 } 471de716b782fb5 drivers/net/bnx2x_main.c Eilon Greenstein 2008-08-13 6332 :::::: The code at line 6318 was first introduced by commit :::::: 471de716b782fb55ae0fdc040cf2722caffeeb94 bnx2x: FW Internal Memory structure :::::: TO: Eilon Greenstein <eil...@broadcom.com> :::::: CC: David S. Miller <da...@davemloft.net> --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org
.config.gz
Description: application/gzip