parisc: unwind: Mark start and stop variables __maybe_unused
authorHelge Deller <deller@gmx.de>
Fri, 30 Jun 2023 10:44:33 +0000 (12:44 +0200)
committerHelge Deller <deller@gmx.de>
Fri, 30 Jun 2023 15:14:15 +0000 (17:14 +0200)
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/kernel/unwind.c

index 42acc3b..043184c 100644 (file)
 #include <asm/unwind.h>
 #include <asm/switch_to.h>
 #include <asm/sections.h>
+#include <asm/ftrace.h>
 
 /* #define DEBUG 1 */
 #ifdef DEBUG
 #define dbg(x...) pr_debug(x)
 #else
-#define dbg(x...)
+#define dbg(x...) do { } while (0)
 #endif
 
 #define KERNEL_START (KERNEL_BINARY_TEXT_START)
@@ -179,7 +180,7 @@ void unwind_table_remove(struct unwind_table *table)
 /* Called from setup_arch to import the kernel unwind info */
 int __init unwind_init(void)
 {
-       long start, stop;
+       long start __maybe_unused, stop __maybe_unused;
        register unsigned long gp __asm__ ("r27");
 
        start = (long)&__start___unwind[0];