tree:
https://github.com/frank-w/BPI-R2-4.14 5.14-rc
head: 15ab19c94d88070dd93ad282b83ff856be6092fc
commit: 6c7a57f4d7a96ee09d6aacbdac04d2f3b3da24f6 [6/24] mt6625l: include wifi-code
config: arm-randconfig-c002-20210822 (attached as .config)
compiler: clang version 14.0.0 (
https://github.com/llvm/llvm-project
9e9d70591e72fc6762b4b9a226b68ed1307419bf)
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://github.com/frank-w/BPI-R2-4.14/commit/6c7a57f4d7a96ee09d6aacbdac0...
git remote add frank-w-bpi-r2-4.14
https://github.com/frank-w/BPI-R2-4.14
git fetch --no-tags frank-w-bpi-r2-4.14 5.14-rc
git checkout 6c7a57f4d7a96ee09d6aacbdac04d2f3b3da24f6
# 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(a)intel.com>
All warnings (new ones prefixed by >>):
> drivers/misc/mediatek/btif/common/mtk_btif.c:379:6: warning:
variable 'i_ret' set but not used [-Wunused-but-set-variable]
int
i_ret = 0;
^
> drivers/misc/mediatek/btif/common/mtk_btif.c:773:6: warning:
variable 'result' set but not used [-Wunused-but-set-variable]
int result = 0;
^
> drivers/misc/mediatek/btif/common/mtk_btif.c:3029:17: warning:
variable 'p_buf' set but not used [-Wunused-but-set-variable]
unsigned char *p_buf = NULL;
^
3 warnings generated.
--
> drivers/misc/mediatek/btif/common/btif_dma_plat.c:1313:17:
warning: variable 'flag' set but not used [-Wunused-but-set-variable]
unsigned int flag = 0;
^
1 warning generated.
--
> drivers/misc/mediatek/btif/common/btif_plat.c:1343:17: warning:
variable 'flag' set but not used [-Wunused-but-set-variable]
unsigned int flag = 0;
^
1 warning generated.
vim +/i_ret +379 drivers/misc/mediatek/btif/common/mtk_btif.c
eca6cb9d1200e7 Frank Wunderlich 2021-07-12 376
eca6cb9d1200e7 Frank Wunderlich 2021-07-12 377 static int mtk_btif_restore_noirq(struct
device *dev)
eca6cb9d1200e7 Frank Wunderlich 2021-07-12 378 {
eca6cb9d1200e7 Frank Wunderlich 2021-07-12 @379 int i_ret = 0;
eca6cb9d1200e7 Frank Wunderlich 2021-07-12 380 struct platform_device *pdev =
to_platform_device(dev);
eca6cb9d1200e7 Frank Wunderlich 2021-07-12 381 p_mtk_btif p_btif =
platform_get_drvdata(pdev);
eca6cb9d1200e7 Frank Wunderlich 2021-07-12 382
eca6cb9d1200e7 Frank Wunderlich 2021-07-12 383 BTIF_INFO_FUNC("++\n");
eca6cb9d1200e7 Frank Wunderlich 2021-07-12 384 if (_btif_state_hold(p_btif))
eca6cb9d1200e7 Frank Wunderlich 2021-07-12 385 return E_BTIF_INTR;
eca6cb9d1200e7 Frank Wunderlich 2021-07-12 386 if (p_btif->enable)
eca6cb9d1200e7 Frank Wunderlich 2021-07-12 387
BTIF_ERR_FUNC("!!!-----------------!BTIF is not closed before IPOH
shutdown!!!---------------!\n");
eca6cb9d1200e7 Frank Wunderlich 2021-07-12 388 WARN_ON(p_btif->enable);
eca6cb9d1200e7 Frank Wunderlich 2021-07-12 389
eca6cb9d1200e7 Frank Wunderlich 2021-07-12 390 i_ret = _btif_restore_noirq(p_btif);
eca6cb9d1200e7 Frank Wunderlich 2021-07-12 391 BTIF_STATE_RELEASE(p_btif);
eca6cb9d1200e7 Frank Wunderlich 2021-07-12 392 BTIF_INFO_FUNC("--\n");
eca6cb9d1200e7 Frank Wunderlich 2021-07-12 393 return 0;
eca6cb9d1200e7 Frank Wunderlich 2021-07-12 394 }
eca6cb9d1200e7 Frank Wunderlich 2021-07-12 395
:::::: The code at line 379 was first introduced by commit
:::::: eca6cb9d1200e774a42a7dd581e3ce064081bdec mt6625l: add driver folder from 5.13
:::::: TO: Frank Wunderlich <frank-w(a)public-files.de>
:::::: CC: Frank Wunderlich <frank-w(a)public-files.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org