[rtems commit] gen5200/startup/cpuinit.c: Warning for function which should have been void

Joel Sherrill joel at rtems.org
Thu Oct 9 15:03:39 UTC 2014


Module:    rtems
Branch:    master
Commit:    9827d51e7405aad26d3eda2d3fb82504b7fa68c3
Changeset: http://git.rtems.org/rtems/commit/?id=9827d51e7405aad26d3eda2d3fb82504b7fa68c3

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Wed Oct  8 09:24:02 2014 -0500

gen5200/startup/cpuinit.c: Warning for function which should have been void

---

 c/src/lib/libbsp/powerpc/gen5200/startup/cpuinit.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/c/src/lib/libbsp/powerpc/gen5200/startup/cpuinit.c b/c/src/lib/libbsp/powerpc/gen5200/startup/cpuinit.c
index a3df0be..77787c4 100644
--- a/c/src/lib/libbsp/powerpc/gen5200/startup/cpuinit.c
+++ b/c/src/lib/libbsp/powerpc/gen5200/startup/cpuinit.c
@@ -112,7 +112,7 @@ static void calc_dbat_regvals(
   bat_ptr->batl.pp   = flg_bpp;
 }
 
-static inline enable_bat_4_to_7(void)
+static inline void enable_bat_4_to_7(void)
 {
   PPC_SET_SPECIAL_PURPOSE_REGISTER_BITS(HID2, BSP_BBIT32(13));
 }



More information about the vc mailing list