Skip to contentSkip to conversation

perf: RISC-V: Remove non-kernel-doc ** comments

PATCH Applied Palmer Dabbelt 4 participants 4 messages Mar 22, 2022 – May 6, 2022

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

PATCH 1/1 perf: RISC-V: Remove non-kernel-doc ** comments

From: Palmer Dabbelt <[email protected]>

This will presumably trip up some tools that try to parse the comments as kernel doc when they're not.

Fixes 4905ec2fb7e6 ("RISC-V: Add sscofpmf extension support")

--

These recently landed in for-next, but I'm trying to avoid rewriting history as there's a lot in flight right now.

---
 drivers/perf/riscv_pmu_sbi.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/perf/riscv_pmu_sbi.c +4 -4
index a1317a483512..dca3537a8dcc 100644
@@ -35,7 +35,7 @@ union sbi_pmu_ctr_info {
 	};
 };
 
-/**
+/*
  * RISC-V doesn't have hetergenous harts yet. This need to be part of
  * per_cpu in case of harts with different pmu counters
  */
@@ -477,7 +477,7 @@ static int pmu_sbi_get_ctrinfo(int nctr)
 
 static inline void pmu_sbi_stop_all(struct riscv_pmu *pmu)
 {
-	/**
+	/*
 	 * No need to check the error because we are disabling all the counters
 	 * which may include counters that are not enabled yet.
 	 */
@@ -494,7 +494,7 @@ static inline void pmu_sbi_stop_hw_ctrs(struct riscv_pmu *pmu)
 		  cpu_hw_evt->used_hw_ctrs[0], 0, 0, 0, 0);
 }
 
-/**
+/*
  * This function starts all the used counters in two step approach.
  * Any counter that did not overflow can be start in a single step
  * while the overflowed counters need to be started with updated initialization
@@ -563,7 +563,7 @@ static irqreturn_t pmu_sbi_ovf_handler(int irq, void *dev)
 	/* Overflow status register should only be read after counter are stopped */
 	overflow = csr_read(CSR_SSCOUNTOVF);
 
-	/**
+	/*
 	 * Overflow interrupt pending bit should only be cleared after stopping
 	 * all the counters to avoid any race condition.
 	 */
Signature · 1 line
2.34.1
Acked-by on v1 1/1
#1 lore raw
Quoted 8 lines · Palmer Dabbelt

From: Palmer Dabbelt <[email protected]>

This will presumably trip up some tools that try to parse the comments as kernel doc when they're not.

Fixes 4905ec2fb7e6 ("RISC-V: Add sscofpmf extension support")

thanks.

Quoted 49 lines

--

These recently landed in for-next, but I'm trying to avoid rewriting history as there's a lot in flight right now.

---
 drivers/perf/riscv_pmu_sbi.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/perf/riscv_pmu_sbi.c +4 -4
index a1317a483512..dca3537a8dcc 100644
@@ -35,7 +35,7 @@ union sbi_pmu_ctr_info {
 	};
 };
 
-/**
+/*
  * RISC-V doesn't have hetergenous harts yet. This need to be part of
  * per_cpu in case of harts with different pmu counters
  */
@@ -477,7 +477,7 @@ static int pmu_sbi_get_ctrinfo(int nctr)
 
 static inline void pmu_sbi_stop_all(struct riscv_pmu *pmu)
 {
-	/**
+	/*
 	 * No need to check the error because we are disabling all the counters
 	 * which may include counters that are not enabled yet.
 	 */
@@ -494,7 +494,7 @@ static inline void pmu_sbi_stop_hw_ctrs(struct riscv_pmu *pmu)
 		  cpu_hw_evt->used_hw_ctrs[0], 0, 0, 0, 0);
 }
 
-/**
+/*
  * This function starts all the used counters in two step approach.
  * Any counter that did not overflow can be start in a single step
  * while the overflowed counters need to be started with updated initialization
@@ -563,7 +563,7 @@ static irqreturn_t pmu_sbi_ovf_handler(int irq, void *dev)
 	/* Overflow status register should only be read after counter are stopped */
 	overflow = csr_read(CSR_SSCOUNTOVF);
 
-	/**
+	/*
 	 * Overflow interrupt pending bit should only be cleared after stopping
 	 * all the counters to avoid any race condition.
 	 */
Signature · 1 line
~Randy
Reviewed-by on v1 1/1
#2 lore raw
In reply to Palmer Dabbelt
Quoted 59 lines · Palmer Dabbelt

From: Palmer Dabbelt <[email protected]>

This will presumably trip up some tools that try to parse the comments as kernel doc when they're not.

Fixes 4905ec2fb7e6 ("RISC-V: Add sscofpmf extension support")

--

These recently landed in for-next, but I'm trying to avoid rewriting history as there's a lot in flight right now.

---
 drivers/perf/riscv_pmu_sbi.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/perf/riscv_pmu_sbi.c +4 -5
index a1317a483512..dca3537a8dcc 100644
@@ -35,7 +35,7 @@ union sbi_pmu_ctr_info {
        };
 };
 
-/**
+/*
  * RISC-V doesn't have hetergenous harts yet. This need to be part of
  * per_cpu in case of harts with different pmu counters
  */
@@ -477,7 +477,7 @@ static int pmu_sbi_get_ctrinfo(int nctr)
 
 static inline void pmu_sbi_stop_all(struct riscv_pmu *pmu)
 {
-       /**
+       /*
         * No need to check the error because we are disabling all the counters
         * which may include counters that are not enabled yet.
         */
@@ -494,7 +494,7 @@ static inline void pmu_sbi_stop_hw_ctrs(struct riscv_pmu *pmu)
                  cpu_hw_evt->used_hw_ctrs[0], 0, 0, 0, 0);
 }
 
-/**
+/*
  * This function starts all the used counters in two step approach.
  * Any counter that did not overflow can be start in a single step
  * while the overflowed counters need to be started with updated initialization
@@ -563,7 +563,7 @@ static irqreturn_t pmu_sbi_ovf_handler(int irq, void *dev)
        /* Overflow status register should only be read after counter are stopped */
        overflow = csr_read(CSR_SSCOUNTOVF);
 
-       /**
+       /*
         * Overflow interrupt pending bit should only be cleared after stopping
         * all the counters to avoid any race condition.
         */
--
Quoted 2 lines

2.34.1

Sorry for the fallout on linux-next. I just realized that these came in with the BUILD_SUCCESS subject line from lkp for me.
I was filtering those out to a separate folder and missed the "warning" part in the subject line. I have fixed that.

--
Regards,
Atish

maintainer Applied
#3 lore raw
In reply to Palmer Dabbelt
Quoted 10 lines · Palmer Dabbelt

From: Palmer Dabbelt <[email protected]>

This will presumably trip up some tools that try to parse the comments as kernel doc when they're not.

Fixes 4905ec2fb7e6 ("RISC-V: Add sscofpmf extension support")

[...]

Applied to will (for-next/perf), thanks!

[1/1] perf: RISC-V: Remove non-kernel-doc ** comments

      https://git.kernel.org/will/c/c7a9dcea8e98

Cheers,

Signature · 5 lines
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev