lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20210605063741.687206-1-libaokun1@huawei.com>
Date:   Sat, 5 Jun 2021 14:37:41 +0800
From:   Baokun Li <libaokun1@...wei.com>
To:     <peterz@...radead.org>, <mingo@...hat.com>, <acme@...nel.org>,
        <mark.rutland@....com>, <alexander.shishkin@...ux.intel.com>,
        <jolsa@...hat.com>, <namhyung@...nel.org>, <tglx@...utronix.de>,
        <bp@...en8.de>, <x86@...nel.org>, <hpa@...or.com>,
        <linux-perf-users@...r.kernel.org>, <linux-kernel@...r.kernel.org>
CC:     <weiyongjun1@...wei.com>, <yuehaibing@...wei.com>,
        <yangjihong1@...wei.com>, <yukuai3@...wei.com>,
        <libaokun1@...wei.com>
Subject: [PATCH -next] perf/x86/intel/pt: fix doc warnings in pt.c

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@...wei.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ