Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci use static inline for msk_rxvalid(), it is not r...



details:   https://anonhg.NetBSD.org/src/rev/4ab861451701
branches:  trunk
changeset: 764461:4ab861451701
user:      plunky <plunky%NetBSD.org@localhost>
date:      Sun Apr 24 18:53:02 2011 +0000

description:
use static inline for msk_rxvalid(), it is not referenced elsewhere

(avoids C99 vs GNU semantics for external inline functions)

diffstat:

 sys/dev/pci/if_msk.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (35 lines):

diff -r 6223572fd2fb -r 4ab861451701 sys/dev/pci/if_msk.c
--- a/sys/dev/pci/if_msk.c      Sun Apr 24 18:52:26 2011 +0000
+++ b/sys/dev/pci/if_msk.c      Sun Apr 24 18:53:02 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_msk.c,v 1.37 2011/04/16 14:03:28 jakllsch Exp $ */
+/* $NetBSD: if_msk.c,v 1.38 2011/04/24 18:53:02 plunky Exp $ */
 /*     $OpenBSD: if_msk.c,v 1.42 2007/01/17 02:43:02 krw Exp $ */
 
 /*
@@ -52,7 +52,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_msk.c,v 1.37 2011/04/16 14:03:28 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_msk.c,v 1.38 2011/04/24 18:53:02 plunky Exp $");
 
 #include "rnd.h"
 
@@ -105,7 +105,6 @@
 int mskcprint(void *, const char *);
 int msk_intr(void *);
 void msk_intr_yukon(struct sk_if_softc *);
-__inline int msk_rxvalid(struct sk_softc *, u_int32_t, u_int32_t);
 void msk_rxeof(struct sk_if_softc *, u_int16_t, u_int32_t);
 void msk_txeof(struct sk_if_softc *, int);
 int msk_encap(struct sk_if_softc *, struct mbuf *, u_int32_t *);
@@ -1677,7 +1676,7 @@
        return true;
 }
 
-__inline int
+static __inline int
 msk_rxvalid(struct sk_softc *sc, u_int32_t stat, u_int32_t len)
 {
        if ((stat & (YU_RXSTAT_CRCERR | YU_RXSTAT_LONGERR |



Home | Main Index | Thread Index | Old Index