diff options
author | Alexandre Oliva <oliva@lsd.ic.unicamp.br> | 2012-01-16 14:00:12 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-01-17 10:12:19 -0500 |
commit | 5addc0de28f5e286f9d121112c4222250807b5a5 (patch) | |
tree | 83e07ecd0cbc5462111b30d31624d6c2a654df32 /drivers/net | |
parent | 7e9e7fa414e47fccc6127f23bc866cbcc7e27dcb (diff) |
brcmfmac: work-around gcc 4.7 build issue
Alexandre Oliva <oliva@lsd.ic.unicamp.br> says:
"It's an issue brought about by GCC 4.7's partial-inlining, that ends up
splitting the udelay function just at the wrong spot, in such a way that
some sanity checks for constants fails, and we end up calling
bad_udelay.
This patch fixes the problem. Feel free to push it upstream if it makes
sense to you."
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c b/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c index f23b0c3e4ea3..bf11850a20f1 100644 --- a/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c +++ b/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c | |||
@@ -2475,7 +2475,7 @@ static s32 brcmf_init_iscan(struct brcmf_cfg80211_priv *cfg_priv) | |||
2475 | return err; | 2475 | return err; |
2476 | } | 2476 | } |
2477 | 2477 | ||
2478 | static void brcmf_delay(u32 ms) | 2478 | static __always_inline void brcmf_delay(u32 ms) |
2479 | { | 2479 | { |
2480 | if (ms < 1000 / HZ) { | 2480 | if (ms < 1000 / HZ) { |
2481 | cond_resched(); | 2481 | cond_resched(); |