ARM: show_regs: on v7-M there are no FIQs, different processor modes, ...
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 16 Dec 2013 09:38:57 +0000 (10:38 +0100)
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 3 Feb 2014 16:30:21 +0000 (17:30 +0100)
commite2e55fde3f2eaeb1d341508108a51a61dd0fb470
treed86a8d03852ed10d05919e2e451e893f14c6ec6c
parent3f18b1bf599d3d13cd81fdf6bf869c458772adfe
ARM: show_regs: on v7-M there are no FIQs, different processor modes, ...

no indication about irqs in PSR and only a single ISA. So skip the whole
decoding and just print the xPSR on v7-M.

Also mark two static variables as __maybe_unused to prevent the compiler
from emitting:

arch/arm/kernel/process.c:51:20: warning: 'processor_modes' defined but not used [-Wunused-variable]
arch/arm/kernel/process.c:58:20: warning: 'isa_modes' defined but not used [-Wunused-variable]

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
arch/arm/kernel/process.c