Skip to content

Commit

Permalink
[PATCH] powerpc: powermac adb fix udbg_adb_use_btext warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andy Whitcroft authored and Paul Mackerras committed Jan 9, 2006
1 parent 52020d2 commit 54b9a9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/powerpc/platforms/powermac/udbg_adb.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ static enum {
input_adb_cuda,
} input_type = input_adb_none;

static int udbg_adb_use_btext;

int xmon_wants_key, xmon_adb_keycode;

static inline void udbg_adb_poll(void)
Expand All @@ -55,6 +53,8 @@ static inline void udbg_adb_poll(void)
}

#ifdef CONFIG_BOOTX_TEXT

static int udbg_adb_use_btext;
static int xmon_adb_shiftstate;

static unsigned char xmon_keytab[128] =
Expand Down

0 comments on commit 54b9a9a

Please sign in to comment.