Commit 848cfdc5 authored by Geoff Levand's avatar Geoff Levand Committed by Paul Mackerras

[POWERPC] PS3: Use __maybe_unused

Change the PS3 debug routines from using the GCC specific
'__attribute__ ((unused))' to the preprocessor macro
__maybe_unused.
Signed-off-by: default avatarGeoff Levand <geoffrey.levand@am.sony.com>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 7961f20c
...@@ -533,7 +533,7 @@ static void _dump_64_bmp(const char *header, const u64 *p, unsigned cpu, ...@@ -533,7 +533,7 @@ static void _dump_64_bmp(const char *header, const u64 *p, unsigned cpu,
*p & 0xffff); *p & 0xffff);
} }
static void __attribute__ ((unused)) _dump_256_bmp(const char *header, static void __maybe_unused _dump_256_bmp(const char *header,
const u64 *p, unsigned cpu, const char* func, int line) const u64 *p, unsigned cpu, const char* func, int line)
{ {
pr_debug("%s:%d: %s %u {%016lx:%016lx:%016lx:%016lx}\n", pr_debug("%s:%d: %s %u {%016lx:%016lx:%016lx:%016lx}\n",
...@@ -552,7 +552,7 @@ static void _dump_bmp(struct ps3_private* pd, const char* func, int line) ...@@ -552,7 +552,7 @@ static void _dump_bmp(struct ps3_private* pd, const char* func, int line)
} }
#define dump_mask(_x) _dump_mask(_x, __func__, __LINE__) #define dump_mask(_x) _dump_mask(_x, __func__, __LINE__)
static void __attribute__ ((unused)) _dump_mask(struct ps3_private* pd, static void __maybe_unused _dump_mask(struct ps3_private *pd,
const char* func, int line) const char* func, int line)
{ {
unsigned long flags; unsigned long flags;
......
...@@ -39,7 +39,7 @@ static void _dump_tm(const struct rtc_time *tm, const char* func, int line) ...@@ -39,7 +39,7 @@ static void _dump_tm(const struct rtc_time *tm, const char* func, int line)
} }
#define dump_time(_a) _dump_time(_a, __func__, __LINE__) #define dump_time(_a) _dump_time(_a, __func__, __LINE__)
static void __attribute__ ((unused)) _dump_time(int time, const char* func, static void __maybe_unused _dump_time(int time, const char *func,
int line) int line)
{ {
struct rtc_time tm; struct rtc_time tm;
......
...@@ -83,7 +83,7 @@ struct ports_bmp { ...@@ -83,7 +83,7 @@ struct ports_bmp {
} __attribute__ ((aligned (32))); } __attribute__ ((aligned (32)));
#define dump_ports_bmp(_b) _dump_ports_bmp(_b, __func__, __LINE__) #define dump_ports_bmp(_b) _dump_ports_bmp(_b, __func__, __LINE__)
static void __attribute__ ((unused)) _dump_ports_bmp( static void __maybe_unused _dump_ports_bmp(
const struct ports_bmp* bmp, const char* func, int line) const struct ports_bmp* bmp, const char* func, int line)
{ {
pr_debug("%s:%d: ports_bmp: %016lxh\n", func, line, bmp->status); pr_debug("%s:%d: ports_bmp: %016lxh\n", func, line, bmp->status);
...@@ -107,7 +107,7 @@ static int ps3_vuart_match_id_to_port(enum ps3_match_id match_id, ...@@ -107,7 +107,7 @@ static int ps3_vuart_match_id_to_port(enum ps3_match_id match_id,
} }
#define dump_port_params(_b) _dump_port_params(_b, __func__, __LINE__) #define dump_port_params(_b) _dump_port_params(_b, __func__, __LINE__)
static void __attribute__ ((unused)) _dump_port_params(unsigned int port_number, static void __maybe_unused _dump_port_params(unsigned int port_number,
const char* func, int line) const char* func, int line)
{ {
#if defined(DEBUG) #if defined(DEBUG)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment