]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: fix powerpc64-linux- compilation warnings
authorBing Zhao <bzhao@marvell.com>
Tue, 7 Aug 2012 23:08:08 +0000 (16:08 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 10 Aug 2012 19:26:59 +0000 (15:26 -0400)
commit00cb011096c769ebc92d5169e4541ce1e6cc6cc8
treeaa6339f353458d0a26e467cf43e2a53ebd45fd75
parentf64da28d96c3dfa33de9305828600b2f67d8d974
mwifiex: fix powerpc64-linux- compilation warnings

These warnings can be detected by using powerpc64-linux toolchain
(gcc-4.6.3-nolibc).

  CC [M]  drivers/net/wireless/mwifiex/sta_event.o
drivers/net/wireless/mwifiex/sta_event.c: In function 'mwifiex_process_sta_event':
drivers/net/wireless/mwifiex/sta_event.c:388:4: warning: comparison of distinct pointer types lacks a cast [enabled by default]
  CC [M]  drivers/net/wireless/mwifiex/uap_event.o
drivers/net/wireless/mwifiex/uap_event.c: In function 'mwifiex_process_uap_event':
drivers/net/wireless/mwifiex/uap_event.c:258:11: warning: comparison of distinct pointer types lacks a cast [enabled by default]

Use min_t() instead of min() to fix the warnings.

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/sta_event.c
drivers/net/wireless/mwifiex/uap_event.c