Source-Changes-HG archive

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

[src/trunk]: src/sys GC unused functions. Don't bother building ieee80211_acl...



details:   https://anonhg.NetBSD.org/src/rev/43ee91b6f8c2
branches:  trunk
changeset: 789931:43ee91b6f8c2
user:      joerg <joerg%NetBSD.org@localhost>
date:      Fri Sep 13 20:19:53 2013 +0000

description:
GC unused functions. Don't bother building ieee80211_acl.c, nothing in
it is non-static.

diffstat:

 sys/net80211/files.net80211           |   3 +--
 sys/net80211/ieee80211_crypto.c       |  10 ++--------
 sys/net80211/ieee80211_input.c        |  10 ++--------
 sys/rump/net/lib/libnet80211/Makefile |   4 ++--
 4 files changed, 7 insertions(+), 20 deletions(-)

diffs (91 lines):

diff -r 25f930903748 -r 43ee91b6f8c2 sys/net80211/files.net80211
--- a/sys/net80211/files.net80211       Fri Sep 13 20:15:33 2013 +0000
+++ b/sys/net80211/files.net80211       Fri Sep 13 20:19:53 2013 +0000
@@ -1,7 +1,6 @@
-#      $NetBSD: files.net80211,v 1.2 2006/10/31 21:53:41 joerg Exp $
+#      $NetBSD: files.net80211,v 1.3 2013/09/13 20:19:53 joerg Exp $
 
 file   net80211/ieee80211.c                    wlan
-file   net80211/ieee80211_acl.c                wlan
 file   net80211/ieee80211_amrr.c               wlan
 file   net80211/ieee80211_crypto.c             wlan
 file   net80211/ieee80211_crypto_ccmp.c        wlan
diff -r 25f930903748 -r 43ee91b6f8c2 sys/net80211/ieee80211_crypto.c
--- a/sys/net80211/ieee80211_crypto.c   Fri Sep 13 20:15:33 2013 +0000
+++ b/sys/net80211/ieee80211_crypto.c   Fri Sep 13 20:19:53 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ieee80211_crypto.c,v 1.15 2011/05/23 15:37:36 drochner Exp $   */
+/*     $NetBSD: ieee80211_crypto.c,v 1.16 2013/09/13 20:19:53 joerg Exp $      */
 /*-
  * Copyright (c) 2001 Atsushi Onoe
  * Copyright (c) 2002-2005 Sam Leffler, Errno Consulting
@@ -36,7 +36,7 @@
 __FBSDID("$FreeBSD: src/sys/net80211/ieee80211_crypto.c,v 1.12 2005/08/08 18:46:35 sam Exp $");
 #endif
 #ifdef __NetBSD__
-__KERNEL_RCSID(0, "$NetBSD: ieee80211_crypto.c,v 1.15 2011/05/23 15:37:36 drochner Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ieee80211_crypto.c,v 1.16 2013/09/13 20:19:53 joerg Exp $");
 #endif
 
 #include "opt_inet.h"
@@ -128,12 +128,6 @@
        key->wk_cipher->ic_detach(key);
 }
 
-static __inline void *
-cipher_attach(struct ieee80211com *ic, struct ieee80211_key *key)
-{
-       return key->wk_cipher->ic_attach(ic, key);
-}
-
 /* 
  * Wrappers for driver key management methods.
  */
diff -r 25f930903748 -r 43ee91b6f8c2 sys/net80211/ieee80211_input.c
--- a/sys/net80211/ieee80211_input.c    Fri Sep 13 20:15:33 2013 +0000
+++ b/sys/net80211/ieee80211_input.c    Fri Sep 13 20:19:53 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ieee80211_input.c,v 1.76 2013/03/30 19:03:02 christos Exp $    */
+/*     $NetBSD: ieee80211_input.c,v 1.77 2013/09/13 20:19:53 joerg Exp $       */
 /*-
  * Copyright (c) 2001 Atsushi Onoe
  * Copyright (c) 2002-2005 Sam Leffler, Errno Consulting
@@ -36,7 +36,7 @@
 __FBSDID("$FreeBSD: src/sys/net80211/ieee80211_input.c,v 1.81 2005/08/10 16:22:29 sam Exp $");
 #endif
 #ifdef __NetBSD__
-__KERNEL_RCSID(0, "$NetBSD: ieee80211_input.c,v 1.76 2013/03/30 19:03:02 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ieee80211_input.c,v 1.77 2013/09/13 20:19:53 joerg Exp $");
 #endif
 
 #include "opt_inet.h"
@@ -1378,12 +1378,6 @@
                frm[6] == WME_INFO_OUI_SUBTYPE;
 }
 
-static __inline int
-isatherosoui(const u_int8_t *frm)
-{
-       return frm[1] > 3 && LE_READ_4(frm+2) == ((ATH_OUI_TYPE<<24)|ATH_OUI);
-}
-
 /*
  * Convert a WPA cipher selector OUI to an internal
  * cipher algorithm.  Where appropriate we also
diff -r 25f930903748 -r 43ee91b6f8c2 sys/rump/net/lib/libnet80211/Makefile
--- a/sys/rump/net/lib/libnet80211/Makefile     Fri Sep 13 20:15:33 2013 +0000
+++ b/sys/rump/net/lib/libnet80211/Makefile     Fri Sep 13 20:19:53 2013 +0000
@@ -1,11 +1,11 @@
-#      $NetBSD: Makefile,v 1.2 2010/02/16 20:42:47 pooka Exp $
+#      $NetBSD: Makefile,v 1.3 2013/09/13 20:19:53 joerg Exp $
 #
 
 .PATH: ${.CURDIR}/../../../../net80211
 
 LIB=   rumpnet_net80211
 
-SRCS=   ieee80211.c ieee80211_acl.c ieee80211_amrr.c ieee80211_crypto.c        \
+SRCS=   ieee80211.c ieee80211_amrr.c ieee80211_crypto.c                        \
        ieee80211_crypto_ccmp.c ieee80211_crypto_none.c                 \
        ieee80211_crypto_tkip.c ieee80211_crypto_wep.c ieee80211_input.c\
        ieee80211_ioctl.c ieee80211_netbsd.c ieee80211_node.c           \



Home | Main Index | Thread Index | Old Index