Skip to contentSkip to conversation

perf: riscv legacy: fix kerneldoc comment warning

PATCH In review Conor Dooley 2 participants 2 messages Aug 12, 2022 – Aug 18, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 perf: riscv legacy: fix kerneldoc comment warning

Fix the warning:
drivers/perf/riscv_pmu_legacy.c:76: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst

Fixes 9b3e150e310e ("RISC-V: Add a simple platform driver for RISC-V legacy perf")
---
 drivers/perf/riscv_pmu_legacy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/perf/riscv_pmu_legacy.c +1 -1
index 342778782359..2c20b0de8cb0 100644
@@ -72,7 +72,7 @@ static void pmu_legacy_ctr_start(struct perf_event *event, u64 ival)
 	local64_set(&hwc->prev_count, initial_val);
 }
 
-/**
+/*
  * This is just a simple implementation to allow legacy implementations
  * compatible with new RISC-V PMU driver framework.
  * This driver only allows reading two counters i.e CYCLE & INSTRET.
Signature · 1 line
2.36.1
#1 lore raw
Quoted 14 lines · On Fri, 12 Aug 2022 07:35:32 PDT (-0700), [email protected] wrote:

Fix the warning:
drivers/perf/riscv_pmu_legacy.c:76: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst

Fixes 9b3e150e310e ("RISC-V: Add a simple platform driver for RISC-V legacy perf")
---
 drivers/perf/riscv_pmu_legacy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/perf/riscv_pmu_legacy.c +0 -0
index 342778782359..2c20b0de8cb0 100644

drivers/perf/riscv_pmu_legacy.c static void pmu_legacy_ctr_start(struct perf_event *event, u64 ival) · line 78

Quoted 8 lines
drivers/perf/riscv_pmu_legacy.c +1 -1
@@ -72,7 +72,7 @@ static void pmu_legacy_ctr_start(struct perf_event *event, u64 ival)
 	local64_set(&hwc->prev_count, initial_val);
 }
 
-/**
+/*
  * This is just a simple implementation to allow legacy implementations
  * compatible with new RISC-V PMU driver framework.
  * This driver only allows reading two counters i.e CYCLE & INSTRET.

Thanks, this is on riscv/fixes -- given how trivial the actual diff is I'm OK just taking it without the Ack/Review from anyone else, doubly so because I probably broke it the first place.