diff options
| author | Andy Whitcroft <apw@shadowen.org> | 2005-11-30 12:35:01 -0500 |
|---|---|---|
| committer | Paul Mackerras <paulus@samba.org> | 2006-01-08 22:51:19 -0500 |
| commit | 54b9a9aedc990dd2aefc45ab16d84f245cb7d8d0 (patch) | |
| tree | 30b78a921ab6b5e28e2e99b4a4427d76813ccce1 | |
| parent | 52020d2bda9fe447bb50674a2e39e4064b6a10b5 (diff) | |
[PATCH] powerpc: powermac adb fix udbg_adb_use_btext warning
When compiling without BOOTX_TEXT the following warning is emitted.
Fix up the definition to only be made when required.
CC arch/powerpc/platforms/powermac/udbg_adb.o
.../arch/powerpc/platforms/powermac/udbg_adb.c:41: warning:
`udbg_adb_use_btext' defined but not used
Signed-off-by: Andy Whitcroft <apw@shadowen.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
| -rw-r--r-- | arch/powerpc/platforms/powermac/udbg_adb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/powermac/udbg_adb.c b/arch/powerpc/platforms/powermac/udbg_adb.c index d1c40e27e37d..3d5ed23bf0e0 100644 --- a/arch/powerpc/platforms/powermac/udbg_adb.c +++ b/arch/powerpc/platforms/powermac/udbg_adb.c | |||
| @@ -38,8 +38,6 @@ static enum { | |||
| 38 | input_adb_cuda, | 38 | input_adb_cuda, |
| 39 | } input_type = input_adb_none; | 39 | } input_type = input_adb_none; |
| 40 | 40 | ||
| 41 | static int udbg_adb_use_btext; | ||
| 42 | |||
| 43 | int xmon_wants_key, xmon_adb_keycode; | 41 | int xmon_wants_key, xmon_adb_keycode; |
| 44 | 42 | ||
| 45 | static inline void udbg_adb_poll(void) | 43 | static inline void udbg_adb_poll(void) |
| @@ -55,6 +53,8 @@ static inline void udbg_adb_poll(void) | |||
| 55 | } | 53 | } |
| 56 | 54 | ||
| 57 | #ifdef CONFIG_BOOTX_TEXT | 55 | #ifdef CONFIG_BOOTX_TEXT |
| 56 | |||
| 57 | static int udbg_adb_use_btext; | ||
| 58 | static int xmon_adb_shiftstate; | 58 | static int xmon_adb_shiftstate; |
| 59 | 59 | ||
| 60 | static unsigned char xmon_keytab[128] = | 60 | static unsigned char xmon_keytab[128] = |
