]> git.baikalelectronics.ru Git - kernel.git/commit
perf/x86: Fixup typo in stub functions
authorPeter Zijlstra <peterz@infradead.org>
Fri, 15 Mar 2019 08:14:10 +0000 (09:14 +0100)
committerIngo Molnar <mingo@kernel.org>
Fri, 15 Mar 2019 12:12:42 +0000 (13:12 +0100)
commit485294be87116ecb439790d72376ab0b12cb5bf5
treedf20e4d6e28b4c39c67dac49be0f5d22af2f2d67
parent12bb578590499a9bb5a70b7887aa89012a833053
perf/x86: Fixup typo in stub functions

Guenter reported a build warning for CONFIG_CPU_SUP_INTEL=n:

  > With allmodconfig-CONFIG_CPU_SUP_INTEL, this patch results in:
  >
  > In file included from arch/x86/events/amd/core.c:8:0:
  > arch/x86/events/amd/../perf_event.h:1036:45: warning: â€˜struct cpu_hw_event’ declared inside parameter list will not be visible outside of this definition or declaration
  >  static inline int intel_cpuc_prepare(struct cpu_hw_event *cpuc, int cpu)

While harmless (an unsed pointer is an unused pointer, no matter the type)
it needs fixing.

Reported-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: stable@vger.kernel.org
Fixes: 9120f8702a48 ("perf/x86/intel: Make cpuc allocations consistent")
Link: http://lkml.kernel.org/r/20190315081410.GR5996@hirez.programming.kicks-ass.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/events/perf_event.h