aboutsummaryrefslogtreecommitdiffstats
path: root/arch/frv/kernel
diff options
context:
space:
mode:
authorDavid Rientjes <rientjes@google.com>2007-05-11 01:22:22 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-11 11:29:33 -0400
commit0a9d6e7cb0d1e5acc61d481d7a1ea25c294c3dff (patch)
tree0e4226207554880384eeeaed2ebc0221461a70b4 /arch/frv/kernel
parent39bf6270f524bbe2682b56f2a979703abf937dd1 (diff)
frv: gdb: use __maybe_unused
Replace function instances of __attribute__((unused)) with __maybe_unused to suppress warnings. Cc: David Howells <dhowells@redhat.com> Signed-off-by: David Rientjes <rientjes@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/frv/kernel')
-rw-r--r--arch/frv/kernel/gdb-stub.c12
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 */
1198static void __attribute__((unused)) gdbstub_show_regs(void) 1198static 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 */
1226static void __attribute__((unused)) gdbstub_dump_debugregs(void) 1226static 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 */
2082static void *malloc(size_t size) __attribute__((unused)); 2082static void *malloc(size_t size) __maybe_unused;
2083static void *malloc(size_t size) 2083static void *malloc(size_t size)
2084{ 2084{
2085 return kmalloc(size, GFP_ATOMIC); 2085 return kmalloc(size, GFP_ATOMIC);
2086} 2086}
2087 2087
2088static void free(void *p) __attribute__((unused)); 2088static void free(void *p) __maybe_unused;
2089static void free(void *p) 2089static void free(void *p)
2090{ 2090{
2091 kfree(p); 2091 kfree(p);
2092} 2092}
2093 2093
2094static uint32_t ___get_HSR0(void) __attribute__((unused)); 2094static uint32_t ___get_HSR0(void) __maybe_unused;
2095static uint32_t ___get_HSR0(void) 2095static uint32_t ___get_HSR0(void)
2096{ 2096{
2097 return __get_HSR(0); 2097 return __get_HSR(0);
2098} 2098}
2099 2099
2100static uint32_t ___set_HSR0(uint32_t x) __attribute__((unused)); 2100static uint32_t ___set_HSR0(uint32_t x) __maybe_unused;
2101static uint32_t ___set_HSR0(uint32_t x) 2101static uint32_t ___set_HSR0(uint32_t x)
2102{ 2102{
2103 __set_HSR(0, x); 2103 __set_HSR(0, x);