linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] perf/x86/intel/pt: fix doc warnings in pt.c
@ 2021-06-05  6:37 Baokun Li
  0 siblings, 0 replies; only message in thread
From: Baokun Li @ 2021-06-05  6:37 UTC (permalink / raw)
  To: peterz, mingo, acme, mark.rutland, alexander.shishkin, jolsa,
	namhyung, tglx, bp, x86, hpa, linux-perf-users, linux-kernel
  Cc: weiyongjun1, yuehaibing, yangjihong1, yukuai3, libaokun1

Fixes the following W=1 kernel build warning(s):

 arch/x86/events/intel/pt.c:729: warning: Function parameter or 
  member 'cpu' not described in 'topa_insert_pages'
 arch/x86/events/intel/pt.c:1196: warning: Function parameter or 
  member 'cpu' not described in 'pt_buffer_init_topa'
 arch/x86/events/intel/pt.c:1196: warning: Function parameter or 
  member 'nr_pages' not described in 'pt_buffer_init_topa'
 arch/x86/events/intel/pt.c:1196: warning: Excess 
  function parameter 'size' description in 'pt_buffer_init_topa'
 arch/x86/events/intel/pt.c:1269: warning: Function parameter or 
  member 'event' not described in 'pt_buffer_setup_aux'
 arch/x86/events/intel/pt.c:1269: warning: Excess 
  function parameter 'cpu' description in 'pt_buffer_setup_aux'

Signed-off-by: Baokun Li <libaokun1@huawei.com>
---
 arch/x86/events/intel/pt.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/arch/x86/events/intel/pt.c b/arch/x86/events/intel/pt.c
index 915847655c06..035752429cea 100644
--- a/arch/x86/events/intel/pt.c
+++ b/arch/x86/events/intel/pt.c
@@ -718,6 +718,7 @@ static bool topa_table_full(struct topa *topa)
 /**
  * topa_insert_pages() - create a list of ToPA tables
  * @buf:	PT buffer being initialized.
+ * @cpu:	Cpu on which to allocate, -1 means current.
  * @gfp:	Allocation flags.
  *
  * This initializes a list of ToPA tables with entries from
@@ -1188,7 +1189,8 @@ static void pt_buffer_fini_topa(struct pt_buffer *buf)
 /**
  * pt_buffer_init_topa() - initialize ToPA table for pt buffer
  * @buf:	PT buffer.
- * @size:	Total size of all regions within this ToPA.
+ * @cpu:	Cpu on which to allocate, -1 means current.
+ * @nr_pages:	Number of pages in the buffer.
  * @gfp:	Allocation flags.
  */
 static int pt_buffer_init_topa(struct pt_buffer *buf, int cpu,
@@ -1253,7 +1255,7 @@ static int pt_buffer_try_single(struct pt_buffer *buf, int nr_pages)
 
 /**
  * pt_buffer_setup_aux() - set up topa tables for a PT buffer
- * @cpu:	Cpu on which to allocate, -1 means current.
+ * @event:	The perf event.
  * @pages:	Array of pointers to buffer pages passed from perf core.
  * @nr_pages:	Number of pages in the buffer.
  * @snapshot:	If this is a snapshot/overwrite counter.
-- 
2.31.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-05  6:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-05  6:37 [PATCH -next] perf/x86/intel/pt: fix doc warnings in pt.c Baokun Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).