Re: [PATCH v1 10/12] dyndbg: add processing of T(race) flag argument

From: kernel test robot
Date: Fri Nov 03 2023 - 14:04:46 EST


Hi Łukasz,

kernel test robot noticed the following build warnings:

[auto build test WARNING on akpm-mm/mm-everything]
[also build test WARNING on linus/master v6.6 next-20231103]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url: https://github.com/intel-lab-lkp/linux/commits/ukasz-Bartosik/dyndbg-add-_DPRINTK_FLAGS_ENABLED/20231103-212105
base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything
patch link: https://lore.kernel.org/r/20231103131011.1316396-11-lb%40semihalf.com
patch subject: [PATCH v1 10/12] dyndbg: add processing of T(race) flag argument
config: loongarch-randconfig-002-20231103 (https://download.01.org/0day-ci/archive/20231104/202311040120.oiJ1m9Pw-lkp@xxxxxxxxx/config)
compiler: loongarch64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231104/202311040120.oiJ1m9Pw-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202311040120.oiJ1m9Pw-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> lib/dynamic_debug.c:157:7: warning: no previous prototype for 'show_T_args' [-Wmissing-prototypes]
157 | char *show_T_args(struct dd_ctrl *ctrl, char *p)
| ^~~~~~~~~~~


vim +/show_T_args +157 lib/dynamic_debug.c

156
> 157 char *show_T_args(struct dd_ctrl *ctrl, char *p)
158 {
159 int n;
160
161 n = snprintf(p, FLAG_T_ARGS_LEN, ":%u", ctrl->trace_dst);
162 WARN_ONCE(n < 0, "printing T flag args value failed\n");
163
164 return n < 0 ? p : p + n;
165 }
166

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki