Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb mark several init-only functions as noinline to ...



details:   https://anonhg.NetBSD.org/src/rev/14d7d650fdb1
branches:  trunk
changeset: 935207:14d7d650fdb1
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Sat Jun 27 14:34:45 2020 +0000

description:
mark several init-only functions as noinline to avoid bumping into the
stack limit

diffstat:

 sys/dev/usb/if_urtwn.c |  34 +++++++++++++++++-----------------
 1 files changed, 17 insertions(+), 17 deletions(-)

diffs (153 lines):

diff -r e8d59919e752 -r 14d7d650fdb1 sys/dev/usb/if_urtwn.c
--- a/sys/dev/usb/if_urtwn.c    Sat Jun 27 14:04:17 2020 +0000
+++ b/sys/dev/usb/if_urtwn.c    Sat Jun 27 14:34:45 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_urtwn.c,v 1.87 2020/05/02 00:50:07 mrg Exp $        */
+/*     $NetBSD: if_urtwn.c,v 1.88 2020/06/27 14:34:45 jdolecek Exp $   */
 /*     $OpenBSD: if_urtwn.c,v 1.42 2015/02/10 23:25:46 mpi Exp $       */
 
 /*-
@@ -25,7 +25,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_urtwn.c,v 1.87 2020/05/02 00:50:07 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_urtwn.c,v 1.88 2020/06/27 14:34:45 jdolecek Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -733,7 +733,7 @@
        }
 }
 
-static int
+static int __noinline
 urtwn_alloc_rx_list(struct urtwn_softc *sc)
 {
        struct urtwn_rx_data *data;
@@ -785,7 +785,7 @@
        }
 }
 
-static int
+static int __noinline
 urtwn_alloc_tx_list(struct urtwn_softc *sc)
 {
        struct urtwn_tx_data *data;
@@ -1566,7 +1566,7 @@
 /*
  * Initialize rate adaptation in firmware.
  */
-static int
+static int __noinline
 urtwn_ra_init(struct urtwn_softc *sc)
 {
        static const uint8_t map[] = {
@@ -3271,7 +3271,7 @@
        return 0;
 }
 
-static int
+static int __noinline
 urtwn_llt_init(struct urtwn_softc *sc)
 {
        size_t i, page_count, pktbuf_count;
@@ -3413,7 +3413,7 @@
        return error;
 }
 
-static int
+static int __noinline
 urtwn_load_firmware(struct urtwn_softc *sc)
 {
        firmware_handle_t fwh;
@@ -3707,7 +3707,7 @@
        return 0;
 }
 
-static void
+static void __noinline
 urtwn_mac_init(struct urtwn_softc *sc)
 {
        size_t i;
@@ -3732,7 +3732,7 @@
        }
 }
 
-static void
+static void __noinline
 urtwn_bb_init(struct urtwn_softc *sc)
 {
        const struct rtwn_bb_prog *prog;
@@ -3896,7 +3896,7 @@
        }
 }
 
-static void
+static void __noinline
 urtwn_rf_init(struct urtwn_softc *sc)
 {
        const struct rtwn_rf_prog *prog;
@@ -3982,7 +3982,7 @@
        }
 }
 
-static void
+static void __noinline
 urtwn_cam_init(struct urtwn_softc *sc)
 {
        uint32_t content, command;
@@ -4032,7 +4032,7 @@
        urtwn_write_4(sc, R92C_CAMCMD, R92C_CAMCMD_POLLING | R92C_CAMCMD_CLR);
 }
 
-static void
+static void __noinline
 urtwn_pa_bias_init(struct urtwn_softc *sc)
 {
        uint8_t reg;
@@ -4058,7 +4058,7 @@
        }
 }
 
-static void
+static void __noinline
 urtwn_rxfilter_init(struct urtwn_softc *sc)
 {
 
@@ -4083,7 +4083,7 @@
        urtwn_write_2(sc, R92C_RXFLTMAP2, 0xffff);
 }
 
-static void
+static void __noinline
 urtwn_edca_init(struct urtwn_softc *sc)
 {
 
@@ -4370,7 +4370,7 @@
        }
 }
 
-static void
+static void __noinline
 urtwn_set_chan(struct urtwn_softc *sc, struct ieee80211_channel *c, u_int ht40m)
 {
        struct ieee80211com *ic = &sc->sc_ic;
@@ -4460,7 +4460,7 @@
        }
 }
 
-static void
+static void __noinline
 urtwn_iq_calib(struct urtwn_softc *sc, bool inited)
 {
 
@@ -4971,7 +4971,7 @@
        return error;
 }
 
-static void
+static void __noinline
 urtwn_stop(struct ifnet *ifp, int disable)
 {
        struct urtwn_softc *sc = ifp->if_softc;



Home | Main Index | Thread Index | Old Index