tree:
https://github.com/jimc/linux.git dd-diet-6c2
head: c0dcfb4fa5652b5d3f9c95f797ba84f8ec6d809b
commit: d29f2fbe3a2ecb1391e1ed5271f3f0728e963759 [34/36] dyndbg: add print-once and
print-ratelimited features. RFC.
config: i386-randconfig-s001-20210615 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
#
https://github.com/jimc/linux/commit/d29f2fbe3a2ecb1391e1ed5271f3f0728e96...
git remote add jimc
https://github.com/jimc/linux.git
git fetch --no-tags jimc dd-diet-6c2
git checkout d29f2fbe3a2ecb1391e1ed5271f3f0728e963759
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
lib/dynamic_debug.c: note: in included file (through include/linux/printk.h,
include/linux/kernel.h):
include/linux/dynamic_debug.h:336:1: sparse: sparse: symbol
'_LINKONCE_dyndbg_header' was not declared. Should it be static?
include/linux/dynamic_debug.h:336:1: sparse: sparse: symbol
'_LINKONCE_dyndbg_site_header' was not declared. Should it be static?
> lib/dynamic_debug.c:1457:24: sparse: sparse: non size-preserving
pointer to integer cast
vim +1457 lib/dynamic_debug.c
1450
1451 /*
1452 * called when enabled callsite has _DPRINTK_FLAGS_RATELIMITED flag
1453 * set (echo +pr >control), it hashes on &table-header+index
1454 */
1455 static struct dd_ratelimit * dd_rl_fetch(struct _ddebug *desc)
1456 {
1457 u64 key = (u64)desc;
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org