diff options
Diffstat (limited to 'arch/frv/kernel/gdb-stub.c')
-rw-r--r-- | arch/frv/kernel/gdb-stub.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/frv/kernel/gdb-stub.c b/arch/frv/kernel/gdb-stub.c index 9550f37fb62c..1e7a101cbf4c 100644 --- a/arch/frv/kernel/gdb-stub.c +++ b/arch/frv/kernel/gdb-stub.c | |||
@@ -1195,7 +1195,7 @@ static void gdbstub_check_breakpoint(void) | |||
1195 | /* | 1195 | /* |
1196 | * | 1196 | * |
1197 | */ | 1197 | */ |
1198 | static void __attribute__((unused)) gdbstub_show_regs(void) | 1198 | static void __maybe_unused gdbstub_show_regs(void) |
1199 | { | 1199 | { |
1200 | unsigned long *reg; | 1200 | unsigned long *reg; |
1201 | int loop; | 1201 | int loop; |
@@ -1223,7 +1223,7 @@ static void __attribute__((unused)) gdbstub_show_regs(void) | |||
1223 | /* | 1223 | /* |
1224 | * dump debugging regs | 1224 | * dump debugging regs |
1225 | */ | 1225 | */ |
1226 | static void __attribute__((unused)) gdbstub_dump_debugregs(void) | 1226 | static void __maybe_unused gdbstub_dump_debugregs(void) |
1227 | { | 1227 | { |
1228 | gdbstub_printk("DCR %08lx ", __debug_status.dcr); | 1228 | gdbstub_printk("DCR %08lx ", __debug_status.dcr); |
1229 | gdbstub_printk("BRR %08lx\n", __debug_status.brr); | 1229 | gdbstub_printk("BRR %08lx\n", __debug_status.brr); |
@@ -2079,25 +2079,25 @@ void gdbstub_exit(int status) | |||
2079 | * GDB wants to call malloc() and free() to allocate memory for calling kernel | 2079 | * GDB wants to call malloc() and free() to allocate memory for calling kernel |
2080 | * functions directly from its command line | 2080 | * functions directly from its command line |
2081 | */ | 2081 | */ |
2082 | static void *malloc(size_t size) __attribute__((unused)); | 2082 | static void *malloc(size_t size) __maybe_unused; |
2083 | static void *malloc(size_t size) | 2083 | static void *malloc(size_t size) |
2084 | { | 2084 | { |
2085 | return kmalloc(size, GFP_ATOMIC); | 2085 | return kmalloc(size, GFP_ATOMIC); |
2086 | } | 2086 | } |
2087 | 2087 | ||
2088 | static void free(void *p) __attribute__((unused)); | 2088 | static void free(void *p) __maybe_unused; |
2089 | static void free(void *p) | 2089 | static void free(void *p) |
2090 | { | 2090 | { |
2091 | kfree(p); | 2091 | kfree(p); |
2092 | } | 2092 | } |
2093 | 2093 | ||
2094 | static uint32_t ___get_HSR0(void) __attribute__((unused)); | 2094 | static uint32_t ___get_HSR0(void) __maybe_unused; |
2095 | static uint32_t ___get_HSR0(void) | 2095 | static uint32_t ___get_HSR0(void) |
2096 | { | 2096 | { |
2097 | return __get_HSR(0); | 2097 | return __get_HSR(0); |
2098 | } | 2098 | } |
2099 | 2099 | ||
2100 | static uint32_t ___set_HSR0(uint32_t x) __attribute__((unused)); | 2100 | static uint32_t ___set_HSR0(uint32_t x) __maybe_unused; |
2101 | static uint32_t ___set_HSR0(uint32_t x) | 2101 | static uint32_t ___set_HSR0(uint32_t x) |
2102 | { | 2102 | { |
2103 | __set_HSR(0, x); | 2103 | __set_HSR(0, x); |