Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 54b9a9ae authored by Andy Whitcroft's avatar Andy Whitcroft Committed by Paul Mackerras
Browse files

[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: default avatarAndy Whitcroft <apw@shadowen.org>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 52020d2b
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -38,8 +38,6 @@ static enum {
	input_adb_cuda,
	input_adb_cuda,
} input_type = input_adb_none;
} input_type = input_adb_none;


static int udbg_adb_use_btext;

int xmon_wants_key, xmon_adb_keycode;
int xmon_wants_key, xmon_adb_keycode;


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


#ifdef CONFIG_BOOTX_TEXT
#ifdef CONFIG_BOOTX_TEXT

static int udbg_adb_use_btext;
static int xmon_adb_shiftstate;
static int xmon_adb_shiftstate;


static unsigned char xmon_keytab[128] =
static unsigned char xmon_keytab[128] =