linux/drivers/net/wireless/ath/wil6210
Vladimir Kondratiev a43b5142ad fixup! wil6210: fix usage of print_hex_dump_debug
Use empty inline functions instead of empty #define. Fix for "unused variable"
as reported below:

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next.git master
head:   167bf96dd8
commit: 871d8c4bbb [45/62] wil6210: fix usage of print_hex_dump_debug
config: i386-allyesconfig
reproduce:
  git checkout 871d8c4bbb
  make ARCH=i386  allyesconfig
  make ARCH=i386

All warnings:

   drivers/net/wireless/ath/wil6210/wmi.c: In function 'wmi_evt_rx_mgmt':

>> drivers/net/wireless/ath/wil6210/wmi.c:341:10: warning: unused variable 'ie_len' [-Wunused-variable]
      size_t ie_len = d_len - offsetof(struct ieee80211_mgmt,
             ^

>> drivers/net/wireless/ath/wil6210/wmi.c:340:13: warning: unused variable 'ie_buf' [-Wunused-variable]
      const u8 *ie_buf = rx_mgmt_frame->u.beacon.variable;
                ^

vim +/ie_len +341 drivers/net/wireless/ath/wil6210/wmi.c

2be7d22f Vladimir Kondratiev 2012-12-20  334
2be7d22f Vladimir Kondratiev 2012-12-20  335    if (ieee80211_is_beacon(fc) || ieee80211_is_probe_resp(fc)) {
2be7d22f Vladimir Kondratiev 2012-12-20  336            struct cfg80211_bss *bss;
8eea944a Vladimir Kondratiev 2014-06-16  337            u64 tsf = le64_to_cpu(rx_mgmt_frame->u.beacon.timestamp);
8eea944a Vladimir Kondratiev 2014-06-16  338            u16 cap = le16_to_cpu(rx_mgmt_frame->u.beacon.capab_info);
8eea944a Vladimir Kondratiev 2014-06-16  339            u16 bi = le16_to_cpu(rx_mgmt_frame->u.beacon.beacon_int);
8eea944a Vladimir Kondratiev 2014-06-16  340            const u8 *ie_buf = rx_mgmt_frame->u.beacon.variable;
8eea944a Vladimir Kondratiev 2014-06-16  341            size_t ie_len = d_len - offsetof(struct ieee80211_mgmt,
8eea944a Vladimir Kondratiev 2014-06-16  342                                             u.beacon.variable);
8eea944a Vladimir Kondratiev 2014-06-16  343            wil_dbg_wmi(wil, "Capability info : 0x%04x\n", cap);
8eea944a Vladimir Kondratiev 2014-06-16  344            wil_dbg_wmi(wil, "TSF : 0x%016llx\n", tsf);

:::::: The code at line 341 was first introduced by commit
:::::: 8eea944af0 wil6210: print more info about BSS found

Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2014-09-15 15:00:53 -04:00
..
Kconfig wil6210: platform specific module 2014-09-11 15:27:37 -04:00
Makefile wil6210: platform specific module 2014-09-11 15:27:37 -04:00
cfg80211.c wil6210: fix for oops while stopping interface 2014-09-11 15:27:39 -04:00
debug.c wil6210: trace support 2013-05-22 15:08:27 -04:00
debugfs.c wil6210: fix PTR_ERR() usage after initialization to constant 2014-09-11 15:27:39 -04:00
fw.c wil6210: firmware download 2014-09-11 15:27:36 -04:00
fw.h wil6210: firmware download 2014-09-11 15:27:36 -04:00
fw_inc.c wil6210: firmware download 2014-09-11 15:27:36 -04:00
interrupt.c wil6210: fix for oops while stopping interface 2014-09-11 15:27:39 -04:00
main.c wil6210: fix for oops while stopping interface 2014-09-11 15:27:39 -04:00
netdev.c wil6210: enlarge TX/RX buffer length 2014-09-11 15:27:38 -04:00
pcie_bus.c wil6210: fix for oops while stopping interface 2014-09-11 15:27:39 -04:00
rx_reorder.c wil6210: fix race condition between BACK event and Rx data 2014-09-11 15:27:38 -04:00
trace.c wil6210: trace support 2013-05-22 15:08:27 -04:00
trace.h wil6210: Align WMI header with latest FW 2013-07-22 16:54:37 -04:00
txrx.c wil6210: enlarge TX/RX buffer length 2014-09-11 15:27:38 -04:00
txrx.h wil6210: enlarge TX/RX buffer length 2014-09-11 15:27:38 -04:00
wil6210.h fixup! wil6210: fix usage of print_hex_dump_debug 2014-09-15 15:00:53 -04:00
wil_platform.c wil6210: platform specific module 2014-09-11 15:27:37 -04:00
wil_platform.h wil6210: platform specific module 2014-09-11 15:27:37 -04:00
wil_platform_msm.c wil6210: platform specific module 2014-09-11 15:27:37 -04:00
wil_platform_msm.h wil6210: platform specific module 2014-09-11 15:27:37 -04:00
wmi.c wil6210: introduce separate completion for WMI 2014-09-11 15:27:38 -04:00
wmi.h wil6210: coding style fixes 2014-09-11 15:27:36 -04:00