]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
arm64: debug: Rename addr parameter for non-watchpoint exception hooks
authorWill Deacon <will.deacon@arm.com>
Mon, 25 Feb 2019 12:42:26 +0000 (12:42 +0000)
committerWill Deacon <will.deacon@arm.com>
Tue, 9 Apr 2019 10:21:12 +0000 (11:21 +0100)
Since the 'addr' parameter contains an UNKNOWN value for non-watchpoint
debug exceptions, rename it to 'unused' for those hooks so we don't get
tempted to use it in the future.

Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/debug-monitors.c

index d7bb6aefae0a8b4c19387208e71ef6021c234d3a..c4c263d0cf0ff461f0b516138ab5973334cc7180 100644 (file)
@@ -222,7 +222,7 @@ static void send_user_sigtrap(int si_code)
                             "User debug trap");
 }
 
-static int single_step_handler(unsigned long addr, unsigned int esr,
+static int single_step_handler(unsigned long unused, unsigned int esr,
                               struct pt_regs *regs)
 {
        bool handler_found = false;
@@ -302,7 +302,7 @@ static int call_break_hook(struct pt_regs *regs, unsigned int esr)
 }
 NOKPROBE_SYMBOL(call_break_hook);
 
-static int brk_handler(unsigned long addr, unsigned int esr,
+static int brk_handler(unsigned long unused, unsigned int esr,
                       struct pt_regs *regs)
 {
        bool handler_found = false;