From ba9c4a7e3bb69956681d4971569a865731aa1205 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 17 Oct 2014 10:09:55 -0500 Subject: powerpc/psim: Fix warnings --- c/src/lib/libbsp/powerpc/psim/irq/irq_init.c | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'c/src/lib/libbsp/powerpc/psim') diff --git a/c/src/lib/libbsp/powerpc/psim/irq/irq_init.c b/c/src/lib/libbsp/powerpc/psim/irq/irq_init.c index a6377f7e61..59f0e1dcea 100644 --- a/c/src/lib/libbsp/powerpc/psim/irq/irq_init.c +++ b/c/src/lib/libbsp/powerpc/psim/irq/irq_init.c @@ -1,12 +1,13 @@ -/* irq_init.c - * +/* * This file contains the implementation of rtems initialization - * related to interrupt handling. - * - * CopyRight (C) 1999 valette@crf.canon.fr + * related to interrupt handling + */ + +/* + * Copyright (C) 1999 valette@crf.canon.fr * - * Enhanced by Jay Kulpinski - * to make it valid for MVME2300 Motorola boards. + * Enhanced by Jay Kulpinski + * to make it valid for MVME2300 Motorola boards. * * The license and distribution terms for this file may be * found in the file LICENSE in this distribution or at @@ -21,6 +22,7 @@ #include #include #include +#include static rtems_irq_connect_data rtemsIrq[BSP_IRQ_NUMBER]; static rtems_irq_global_settings initial_config; @@ -88,7 +90,10 @@ void BSP_rtems_irq_mng_init(unsigned cpuId) #endif } -int psim_exception_handler( BSP_Exception_frame *frame, unsigned exception_number) +static int psim_exception_handler( + BSP_Exception_frame *frame, + unsigned exception_number +) { BSP_panic("Unexpected interrupt occured"); return 0; -- cgit v1.2.3