drivers/hwtracing/stm/ftrace.c:38: warning: Function parameter or struct member 'export' not described in 'stm_ftrace_write'
From: kernel test robot
Date: Fri Dec 27 2024 - 10:36:20 EST
Hi Tingwei,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: d6ef8b40d075c425f548002d2f35ae3f06e9cf96
commit: 7b9749bd830848bca9179b0a16251ca3c36e82e6 stm class: ftrace: Change dependency to TRACING
date: 4 years, 3 months ago
config: sh-randconfig-001-20241212 (https://download.01.org/0day-ci/archive/20241228/202412280133.JV62su59-lkp@xxxxxxxxx/config)
compiler: sh4-linux-gcc (GCC) 12.4.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241228/202412280133.JV62su59-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/202412280133.JV62su59-lkp@xxxxxxxxx/
All warnings (new ones prefixed by >>):
>> drivers/hwtracing/stm/ftrace.c:38: warning: Function parameter or struct member 'export' not described in 'stm_ftrace_write'
vim +38 drivers/hwtracing/stm/ftrace.c
262e1f6e39143c Chunyan Zhang 2016-11-21 30
262e1f6e39143c Chunyan Zhang 2016-11-21 31 /**
262e1f6e39143c Chunyan Zhang 2016-11-21 32 * stm_ftrace_write() - write data to STM via 'stm_ftrace' source
262e1f6e39143c Chunyan Zhang 2016-11-21 33 * @buf: buffer containing the data packet
262e1f6e39143c Chunyan Zhang 2016-11-21 34 * @len: length of the data packet
262e1f6e39143c Chunyan Zhang 2016-11-21 35 */
262e1f6e39143c Chunyan Zhang 2016-11-21 36 static void notrace
a773d419275bf5 Felipe Balbi 2017-06-02 37 stm_ftrace_write(struct trace_export *export, const void *buf, unsigned int len)
262e1f6e39143c Chunyan Zhang 2016-11-21 @38 {
a773d419275bf5 Felipe Balbi 2017-06-02 39 struct stm_ftrace *stm = container_of(export, struct stm_ftrace, ftrace);
a773d419275bf5 Felipe Balbi 2017-06-02 40
a773d419275bf5 Felipe Balbi 2017-06-02 41 stm_source_write(&stm->data, STM_FTRACE_CHAN, buf, len);
262e1f6e39143c Chunyan Zhang 2016-11-21 42 }
262e1f6e39143c Chunyan Zhang 2016-11-21 43
:::::: The code at line 38 was first introduced by commit
:::::: 262e1f6e39143c2a0f559e2fb4a835069a7693a9 stm class: ftrace: Add ftrace-export-over-stm driver
:::::: TO: Chunyan Zhang <zhang.chunyan@xxxxxxxxxx>
:::::: CC: Steven Rostedt <rostedt@xxxxxxxxxxx>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki