Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm Mark unused inline functions as such.



details:   https://anonhg.NetBSD.org/src/rev/062743629090
branches:  trunk
changeset: 325036:062743629090
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sun Dec 01 02:53:46 2013 +0000

description:
Mark unused inline functions as such.

diffstat:

 sys/arch/arm/arm32/arm11_pmc.c   |  6 +++---
 sys/arch/arm/omap/omap2_mputmr.c |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r 0bdf13507b32 -r 062743629090 sys/arch/arm/arm32/arm11_pmc.c
--- a/sys/arch/arm/arm32/arm11_pmc.c    Sun Dec 01 02:53:07 2013 +0000
+++ b/sys/arch/arm/arm32/arm11_pmc.c    Sun Dec 01 02:53:46 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: arm11_pmc.c,v 1.3 2008/07/03 06:12:02 matt Exp $       */
+/*     $NetBSD: arm11_pmc.c,v 1.4 2013/12/01 02:53:46 joerg Exp $      */
 
 /* Copyright (c) 2007 Microsoft
  * All rights reserved.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: arm11_pmc.c,v 1.3 2008/07/03 06:12:02 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: arm11_pmc.c,v 1.4 2013/12/01 02:53:46 joerg Exp $");
 #include "opt_perfctrs.h"
 #include <sys/types.h>
 #include <sys/param.h>
@@ -82,7 +82,7 @@
        return val;
 }
 
-static inline void
+__unused static inline void
 arm11_pmc_ccnt_write(uint32_t val)
 {
        __asm volatile ("mcr p15, 0, %0, c15, c12, 1;" :: "r" (val));
diff -r 0bdf13507b32 -r 062743629090 sys/arch/arm/omap/omap2_mputmr.c
--- a/sys/arch/arm/omap/omap2_mputmr.c  Sun Dec 01 02:53:07 2013 +0000
+++ b/sys/arch/arm/omap/omap2_mputmr.c  Sun Dec 01 02:53:46 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: omap2_mputmr.c,v 1.7 2013/06/16 17:47:54 matt Exp $    */
+/*     $NetBSD: omap2_mputmr.c,v 1.8 2013/12/01 02:53:46 joerg Exp $   */
 
 /*
  * OMAP 2430 GP timers
@@ -77,7 +77,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: omap2_mputmr.c,v 1.7 2013/06/16 17:47:54 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: omap2_mputmr.c,v 1.8 2013/12/01 02:53:46 joerg Exp $");
 
 #include "opt_omap.h"
 #include "opt_cpuoptions.h"
@@ -129,7 +129,7 @@
        bus_space_write_4(sc->sc_iot, sc->sc_ioh, TIER, TIER_OVF_IT_ENA);
 }
 
-static inline uint32_t
+__unused static inline uint32_t
 _timer_intr_sts(struct mputmr_softc *sc)
 {
        return bus_space_read_4(sc->sc_iot, sc->sc_ioh, TISR);



Home | Main Index | Thread Index | Old Index