Commit 875dd7bf authored by Haocheng Xie's avatar Haocheng Xie Committed by Ingo Molnar
Browse files

perf/hw_breakpoint: Fix DocBook warnings in perf hw_breakpoint



Fix the following W=1 kernel build warning(s):

  kernel/events/hw_breakpoint.c:461: warning: Function parameter or member 'context' not described in 'register_user_hw_breakpoint'
  kernel/events/hw_breakpoint.c:560: warning: Function parameter or member 'context' not described in 'register_wide_hw_breakpoint'

Signed-off-by: default avatarHaocheng Xie <xiehaocheng.cn@gmail.com>
Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20210527031947.1801-4-xiehaocheng.cn@gmail.com
parent a1ddf524
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -451,6 +451,7 @@ int register_perf_hw_breakpoint(struct perf_event *bp)
 * register_user_hw_breakpoint - register a hardware breakpoint for user space
 * register_user_hw_breakpoint - register a hardware breakpoint for user space
 * @attr: breakpoint attributes
 * @attr: breakpoint attributes
 * @triggered: callback to trigger when we hit the breakpoint
 * @triggered: callback to trigger when we hit the breakpoint
 * @context: context data could be used in the triggered callback
 * @tsk: pointer to 'task_struct' of the process to which the address belongs
 * @tsk: pointer to 'task_struct' of the process to which the address belongs
 */
 */
struct perf_event *
struct perf_event *
@@ -550,6 +551,7 @@ EXPORT_SYMBOL_GPL(unregister_hw_breakpoint);
 * register_wide_hw_breakpoint - register a wide breakpoint in the kernel
 * register_wide_hw_breakpoint - register a wide breakpoint in the kernel
 * @attr: breakpoint attributes
 * @attr: breakpoint attributes
 * @triggered: callback to trigger when we hit the breakpoint
 * @triggered: callback to trigger when we hit the breakpoint
 * @context: context data could be used in the triggered callback
 *
 *
 * @return a set of per_cpu pointers to perf events
 * @return a set of per_cpu pointers to perf events
 */
 */