From a13d73af42ae9b0dd312e9cf96eb7d02653a6a4e Mon Sep 17 00:00:00 2001 From: Dave Jones Date: Tue, 12 Feb 2013 11:49:36 -0500 Subject: [PATCH] Silence brcmsmac warnings. (Fixed in 3.8, but not backporting to 3.7) --- kernel.spec | 7 +++++++ silence-brcmsmac-warning.patch | 14 ++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 silence-brcmsmac-warning.patch diff --git a/kernel.spec b/kernel.spec index b7adea984..cd613c73a 100644 --- a/kernel.spec +++ b/kernel.spec @@ -789,6 +789,8 @@ Patch21246: rtlwifi-Fix-scheduling-while-atomic-bug.patch #rhbz 892811 Patch21247: ath9k_rx_dma_stop_check.patch +Patch23000: silence-brcmsmac-warning.patch + # END OF PATCH DEFINITIONS %endif @@ -1515,6 +1517,8 @@ ApplyPatch rtlwifi-Fix-scheduling-while-atomic-bug.patch #rhbz 892811 ApplyPatch ath9k_rx_dma_stop_check.patch +ApplyPatch silence-brcmsmac-warning.patch + # END OF PATCH APPLICATIONS %endif @@ -2378,6 +2382,9 @@ fi # ||----w | # || || %changelog +* Tue Feb 12 2013 Dave Jones +- Silence brcmsmac warnings. (Fixed in 3.8, but not backporting to 3.7) + * Tue Feb 12 2013 Justin M. Forbes - Linux v3.7.7 diff --git a/silence-brcmsmac-warning.patch b/silence-brcmsmac-warning.patch new file mode 100644 index 000000000..b1915e9f1 --- /dev/null +++ b/silence-brcmsmac-warning.patch @@ -0,0 +1,14 @@ +This is fixed in 3.8, but is too much to backport for now. +As there's no point in abrt telling us this is broken, we'll just silence it. + +--- linux-3.7.7-201.fc18.x86_64/drivers/net/wireless/brcm80211/brcmsmac/main.c~ 2013-02-12 11:36:18.787973130 -0500 ++++ linux-3.7.7-201.fc18.x86_64/drivers/net/wireless/brcm80211/brcmsmac/main.c 2013-02-12 11:37:02.950969879 -0500 +@@ -7993,8 +7993,6 @@ void brcms_c_wait_for_tx_completion(stru + if (--timeout == 0) + break; + } +- +- WARN_ON_ONCE(timeout == 0); + } + + void brcms_c_set_beacon_listen_interval(struct brcms_c_info *wlc, u8 interval)