Message ID | 20230512085321.13259-3-alexghiti@rivosinc.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | riscv: Allow userspace to directly access perf counters | expand |
Context | Check | Description |
---|---|---|
conchuod/tree_selection | fail | Failed to apply to next/pending-fixes or riscv/for-next |
On Fri, May 12, 2023 at 10:53:13AM +0200, Alexandre Ghiti wrote: > The current include guard prevents the inclusion of asm/perf_event.h > which uses the same include guard: fix the one in riscv_pmu.h so that it > matches the file name. > > Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com> > Reviewed-by: Conor Dooley <conor.dooley@microchip.com> > --- > include/linux/perf/riscv_pmu.h | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/include/linux/perf/riscv_pmu.h b/include/linux/perf/riscv_pmu.h > index 43fc892aa7d9..9f70d94942e0 100644 > --- a/include/linux/perf/riscv_pmu.h > +++ b/include/linux/perf/riscv_pmu.h > @@ -6,8 +6,8 @@ > * > */ > > -#ifndef _ASM_RISCV_PERF_EVENT_H > -#define _ASM_RISCV_PERF_EVENT_H > +#ifndef _RISCV_PMU_H > +#define _RISCV_PMU_H > > #include <linux/perf_event.h> > #include <linux/ptrace.h> > @@ -81,4 +81,4 @@ int riscv_pmu_get_hpm_info(u32 *hw_ctr_width, u32 *num_hw_ctr); > > #endif /* CONFIG_RISCV_PMU */ > > -#endif /* _ASM_RISCV_PERF_EVENT_H */ > +#endif /* _RISCV_PMU_H */ > -- > 2.37.2 > Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
On Wed, May 31, 2023 at 6:56 AM Andrew Jones <ajones@ventanamicro.com> wrote: > > On Fri, May 12, 2023 at 10:53:13AM +0200, Alexandre Ghiti wrote: > > The current include guard prevents the inclusion of asm/perf_event.h > > which uses the same include guard: fix the one in riscv_pmu.h so that it > > matches the file name. > > > > Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com> > > Reviewed-by: Conor Dooley <conor.dooley@microchip.com> > > --- > > include/linux/perf/riscv_pmu.h | 6 +++--- > > 1 file changed, 3 insertions(+), 3 deletions(-) > > > > diff --git a/include/linux/perf/riscv_pmu.h b/include/linux/perf/riscv_pmu.h > > index 43fc892aa7d9..9f70d94942e0 100644 > > --- a/include/linux/perf/riscv_pmu.h > > +++ b/include/linux/perf/riscv_pmu.h > > @@ -6,8 +6,8 @@ > > * > > */ > > > > -#ifndef _ASM_RISCV_PERF_EVENT_H > > -#define _ASM_RISCV_PERF_EVENT_H > > +#ifndef _RISCV_PMU_H > > +#define _RISCV_PMU_H > > > > #include <linux/perf_event.h> > > #include <linux/ptrace.h> > > @@ -81,4 +81,4 @@ int riscv_pmu_get_hpm_info(u32 *hw_ctr_width, u32 *num_hw_ctr); > > > > #endif /* CONFIG_RISCV_PMU */ > > > > -#endif /* _ASM_RISCV_PERF_EVENT_H */ > > +#endif /* _RISCV_PMU_H */ > > -- > > 2.37.2 > > > > Reviewed-by: Andrew Jones <ajones@ventanamicro.com> Reviewed-by: Atish Patra <atishp@rivosinc.com>
diff --git a/include/linux/perf/riscv_pmu.h b/include/linux/perf/riscv_pmu.h index 43fc892aa7d9..9f70d94942e0 100644 --- a/include/linux/perf/riscv_pmu.h +++ b/include/linux/perf/riscv_pmu.h @@ -6,8 +6,8 @@ * */ -#ifndef _ASM_RISCV_PERF_EVENT_H -#define _ASM_RISCV_PERF_EVENT_H +#ifndef _RISCV_PMU_H +#define _RISCV_PMU_H #include <linux/perf_event.h> #include <linux/ptrace.h> @@ -81,4 +81,4 @@ int riscv_pmu_get_hpm_info(u32 *hw_ctr_width, u32 *num_hw_ctr); #endif /* CONFIG_RISCV_PMU */ -#endif /* _ASM_RISCV_PERF_EVENT_H */ +#endif /* _RISCV_PMU_H */