From cf09370d4e8a06162abd3a3441a8005f52f62d5a Mon Sep 17 00:00:00 2001 From: Flavio Santes Date: Fri, 2 Dec 2016 18:24:54 -0600 Subject: [PATCH] arm: Remove unused parameter warning This patch fixes the unused parameter warning found at the arch/arm/core/fault.c and arch/arm/soc/st_stm32/stm32f1/soc_gpio.c files. Change-Id: I5b3013c1514cff30f4e98feb31169fb28546c534 Signed-off-by: Flavio Santes --- arch/arm/core/fault.c | 4 ++++ arch/arm/soc/st_stm32/stm32f1/soc_gpio.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/arch/arm/core/fault.c b/arch/arm/core/fault.c index 9dab730296f..7969d816ac6 100644 --- a/arch/arm/core/fault.c +++ b/arch/arm/core/fault.c @@ -239,6 +239,8 @@ static void _UsageFault(const NANO_ESF *esf) */ static void _DebugMonitor(const NANO_ESF *esf) { + ARG_UNUSED(esf); + PR_EXC("***** Debug monitor exception (not implemented) *****\n"); } @@ -284,6 +286,8 @@ static void _HardFault(const NANO_ESF *esf) */ static void _ReservedException(const NANO_ESF *esf, int fault) { + ARG_UNUSED(esf); + PR_EXC("***** %s %d) *****\n", fault < 16 ? "Reserved Exception (" : "Spurious interrupt (IRQ ", fault - 16); diff --git a/arch/arm/soc/st_stm32/stm32f1/soc_gpio.c b/arch/arm/soc/st_stm32/stm32f1/soc_gpio.c index c9e461e8ac2..37acf4bc7ec 100644 --- a/arch/arm/soc/st_stm32/stm32f1/soc_gpio.c +++ b/arch/arm/soc/st_stm32/stm32f1/soc_gpio.c @@ -119,6 +119,8 @@ int stm32_gpio_configure(uint32_t *base_addr, int pin, int conf, int altf) */ volatile uint32_t *reg = &gpio->crl; + ARG_UNUSED(altf); + if (crpin > 7) { reg = &gpio->crh; crpin -= 8;