Commit cf09370d authored by Flavio Santes's avatar Flavio Santes Committed by Anas Nashif
Browse files

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: default avatarFlavio Santes <flavio.santes@intel.com>
parent 290a2aba
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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);
+2 −0
Original line number Diff line number Diff line
@@ -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;