diff options
| author | jdolecek <jdolecek@NetBSD.org> | 2020-06-27 14:34:45 +0000 |
|---|---|---|
| committer | jdolecek <jdolecek@NetBSD.org> | 2020-06-27 14:34:45 +0000 |
| commit | f710bed6fe967f158d13bb1fa300ac15110d682c (patch) | |
| tree | 2388c25c52df050bf1d4ffabed2564808e513e9b /sys/dev | |
| parent | a29b0d20b43022e695ef39fe138896bd224eff54 (diff) | |
mark several init-only functions as noinline to avoid bumping into the
stack limit
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/usb/if_urtwn.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/sys/dev/usb/if_urtwn.c b/sys/dev/usb/if_urtwn.c index 5fe1b3831ad..404709f4b37 100644 --- a/sys/dev/usb/if_urtwn.c +++ b/sys/dev/usb/if_urtwn.c @@ -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 @@ urtwn_close_pipes(struct urtwn_softc *sc) } } -static int +static int __noinline urtwn_alloc_rx_list(struct urtwn_softc *sc) { struct urtwn_rx_data *data; @@ -785,7 +785,7 @@ urtwn_free_rx_list(struct urtwn_softc *sc) } } -static int +static int __noinline urtwn_alloc_tx_list(struct urtwn_softc *sc) { struct urtwn_tx_data *data; @@ -1566,7 +1566,7 @@ urtwn_media_change(struct ifnet *ifp) /* * 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 @@ urtwn_r88e_power_on(struct urtwn_softc *sc) 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 @@ urtwn_fw_loadpage(struct urtwn_softc *sc, int page, uint8_t *buf, int len) return error; } -static int +static int __noinline urtwn_load_firmware(struct urtwn_softc *sc) { firmware_handle_t fwh; @@ -3707,7 +3707,7 @@ urtwn_r88e_dma_init(struct urtwn_softc *sc) return 0; } -static void +static void __noinline urtwn_mac_init(struct urtwn_softc *sc) { size_t i; @@ -3732,7 +3732,7 @@ urtwn_mac_init(struct urtwn_softc *sc) } } -static void +static void __noinline urtwn_bb_init(struct urtwn_softc *sc) { const struct rtwn_bb_prog *prog; @@ -3896,7 +3896,7 @@ urtwn_bb_init(struct urtwn_softc *sc) } } -static void +static void __noinline urtwn_rf_init(struct urtwn_softc *sc) { const struct rtwn_rf_prog *prog; @@ -3982,7 +3982,7 @@ urtwn_rf_init(struct urtwn_softc *sc) } } -static void +static void __noinline urtwn_cam_init(struct urtwn_softc *sc) { uint32_t content, command; @@ -4032,7 +4032,7 @@ urtwn_cam_init(struct urtwn_softc *sc) 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 @@ urtwn_pa_bias_init(struct urtwn_softc *sc) } } -static void +static void __noinline urtwn_rxfilter_init(struct urtwn_softc *sc) { @@ -4083,7 +4083,7 @@ urtwn_rxfilter_init(struct urtwn_softc *sc) urtwn_write_2(sc, R92C_RXFLTMAP2, 0xffff); } -static void +static void __noinline urtwn_edca_init(struct urtwn_softc *sc) { @@ -4370,7 +4370,7 @@ urtwn_set_txpower(struct urtwn_softc *sc, u_int chan, u_int ht40m) } } -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 @@ urtwn_set_chan(struct urtwn_softc *sc, struct ieee80211_channel *c, u_int ht40m) } } -static void +static void __noinline urtwn_iq_calib(struct urtwn_softc *sc, bool inited) { @@ -4971,7 +4971,7 @@ urtwn_init(struct ifnet *ifp) return error; } -static void +static void __noinline urtwn_stop(struct ifnet *ifp, int disable) { struct urtwn_softc *sc = ifp->if_softc; |
