* [frank-w-bpi-r2-4.14:5.13-rc 6/18] drivers/misc/mediatek/btif/common/plat_inc/plat_common.h:64:2: warning: function 'hal_log_print' might be a candidate for 'gnu_printf' format attribute
@ 2021-06-24 15:00 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-06-24 15:00 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 6215 bytes --]
tree: https://github.com/frank-w/BPI-R2-4.14 5.13-rc
head: acf147972a65a0e50a52b63d878ed586649fad08
commit: 7a714edb2db6084dfa08ee66ee046d63ffc2b7ec [6/18] mt6625l: include wifi-code
config: arm-allyesconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
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
# https://github.com/frank-w/BPI-R2-4.14/commit/7a714edb2db6084dfa08ee66ee046d63ffc2b7ec
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.13-rc
git checkout 7a714edb2db6084dfa08ee66ee046d63ffc2b7ec
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 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 >>):
In file included from drivers/misc/mediatek/btif/common/plat_inc/btif_pub.h:17,
from drivers/misc/mediatek/btif/common/mtk_btif.c:37:
drivers/misc/mediatek/btif/common/plat_inc/plat_common.h: In function 'hal_log_print':
>> drivers/misc/mediatek/btif/common/plat_inc/plat_common.h:64:2: warning: function 'hal_log_print' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
64 | vsnprintf(temp_sring, DBG_LOG_STR_SIZE, str, args);
| ^~~~~~~~~
drivers/misc/mediatek/btif/common/mtk_btif.c: In function 'mtk_btif_restore_noirq':
>> drivers/misc/mediatek/btif/common/mtk_btif.c:379:6: warning: variable 'i_ret' set but not used [-Wunused-but-set-variable]
379 | int i_ret = 0;
| ^~~~~
drivers/misc/mediatek/btif/common/mtk_btif.c: In function 'flag_store':
>> drivers/misc/mediatek/btif/common/mtk_btif.c:773:6: warning: variable 'result' set but not used [-Wunused-but-set-variable]
773 | int result = 0;
| ^~~~~~
drivers/misc/mediatek/btif/common/mtk_btif.c: In function 'btif_log_buf_dmp_out':
>> drivers/misc/mediatek/btif/common/mtk_btif.c:3029:17: warning: variable 'p_buf' set but not used [-Wunused-but-set-variable]
3029 | unsigned char *p_buf = NULL;
| ^~~~~
--
In file included from drivers/misc/mediatek/btif/common/plat_inc/btif_pub.h:17,
from drivers/misc/mediatek/btif/common/inc/mtk_btif.h:37,
from drivers/misc/mediatek/btif/common/mtk_btif_exp.c:20:
drivers/misc/mediatek/btif/common/plat_inc/plat_common.h: In function 'hal_log_print':
>> drivers/misc/mediatek/btif/common/plat_inc/plat_common.h:64:2: warning: function 'hal_log_print' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
64 | vsnprintf(temp_sring, DBG_LOG_STR_SIZE, str, args);
| ^~~~~~~~~
--
In file included from drivers/misc/mediatek/btif/common/plat_inc/btif_dma_pub.h:19,
from drivers/misc/mediatek/btif/common/plat_inc/btif_dma_priv.h:18,
from drivers/misc/mediatek/btif/common/btif_dma_plat.c:22:
drivers/misc/mediatek/btif/common/plat_inc/plat_common.h: In function 'hal_log_print':
>> drivers/misc/mediatek/btif/common/plat_inc/plat_common.h:64:2: warning: function 'hal_log_print' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
64 | vsnprintf(temp_sring, DBG_LOG_STR_SIZE, str, args);
| ^~~~~~~~~
drivers/misc/mediatek/btif/common/btif_dma_plat.c: In function 'hal_dma_pm_ops':
>> drivers/misc/mediatek/btif/common/btif_dma_plat.c:1313:17: warning: variable 'flag' set but not used [-Wunused-but-set-variable]
1313 | unsigned int flag = 0;
| ^~~~
--
In file included from drivers/misc/mediatek/btif/common/plat_inc/btif_pub.h:17,
from drivers/misc/mediatek/btif/common/btif_plat.c:21:
drivers/misc/mediatek/btif/common/plat_inc/plat_common.h: In function 'hal_log_print':
>> drivers/misc/mediatek/btif/common/plat_inc/plat_common.h:64:2: warning: function 'hal_log_print' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
64 | vsnprintf(temp_sring, DBG_LOG_STR_SIZE, str, args);
| ^~~~~~~~~
drivers/misc/mediatek/btif/common/btif_plat.c: In function 'hal_btif_pm_ops':
>> drivers/misc/mediatek/btif/common/btif_plat.c:1343:17: warning: variable 'flag' set but not used [-Wunused-but-set-variable]
1343 | unsigned int flag = 0;
| ^~~~
vim +64 drivers/misc/mediatek/btif/common/plat_inc/plat_common.h
30ea711f24a8bf Frank Wunderlich 2021-05-10 56
30ea711f24a8bf Frank Wunderlich 2021-05-10 57 /*Log defination*/
30ea711f24a8bf Frank Wunderlich 2021-05-10 58 static int hal_log_print(const char *str, ...)
30ea711f24a8bf Frank Wunderlich 2021-05-10 59 {
30ea711f24a8bf Frank Wunderlich 2021-05-10 60 va_list args;
30ea711f24a8bf Frank Wunderlich 2021-05-10 61 char temp_sring[DBG_LOG_STR_SIZE];
30ea711f24a8bf Frank Wunderlich 2021-05-10 62
30ea711f24a8bf Frank Wunderlich 2021-05-10 63 va_start(args, str);
30ea711f24a8bf Frank Wunderlich 2021-05-10 @64 vsnprintf(temp_sring, DBG_LOG_STR_SIZE, str, args);
30ea711f24a8bf Frank Wunderlich 2021-05-10 65 va_end(args);
30ea711f24a8bf Frank Wunderlich 2021-05-10 66
30ea711f24a8bf Frank Wunderlich 2021-05-10 67 pr_err("%s", temp_sring);
30ea711f24a8bf Frank Wunderlich 2021-05-10 68
30ea711f24a8bf Frank Wunderlich 2021-05-10 69 return 0;
30ea711f24a8bf Frank Wunderlich 2021-05-10 70 }
30ea711f24a8bf Frank Wunderlich 2021-05-10 71
:::::: The code at line 64 was first introduced by commit
:::::: 30ea711f24a8bfd7c230e2db7d4aa23572592a15 mt6625l: add driver-code from 5.12
:::::: TO: Frank Wunderlich <frank-w@public-files.de>
:::::: CC: Frank Wunderlich <frank-w@public-files.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 78814 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-06-24 15:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-24 15:00 [frank-w-bpi-r2-4.14:5.13-rc 6/18] drivers/misc/mediatek/btif/common/plat_inc/plat_common.h:64:2: warning: function 'hal_log_print' might be a candidate for 'gnu_printf' format attribute kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.