linux_dsm_epyc7002/drivers/net/wireless/ath/wil6210
Chen Gang c20e7789be wil6210: use 'uint64_t' instead of 'cycles_t' to avoid warnings
do_div() checks the type strictly. 'cycles_t' may be 32-bit under quite
a few architectures (parisc, arm, avr32 ...). So use 'uint64_t' instead
of, the related warning (with allmodconfig under parisc):

    CC [M]  drivers/net/wireless/ath/wil6210/debugfs.o
  In file included from arch/parisc/include/generated/asm/div64.h:1:0,
                   from include/linux/kernel.h:124,
                   from include/linux/list.h:8,
                   from include/linux/module.h:9,
                   from drivers/net/wireless/ath/wil6210/debugfs.c:17:
  drivers/net/wireless/ath/wil6210/debugfs.c: In function ‘wil_vring_debugfs_show’:
  include/asm-generic/div64.h:43:28: warning: comparison of distinct pointer types lacks a cast
    (void)(((typeof((n)) *)0) == ((uint64_t *)0)); \
                              ^
  drivers/net/wireless/ath/wil6210/debugfs.c:107:4: note: in expansion of macro ‘do_div’
      do_div(idle, total);
      ^
  In file included from include/uapi/linux/stddef.h:1:0,
                   from include/linux/stddef.h:4,
                   from ./include/uapi/linux/posix_types.h:4,
                   from include/uapi/linux/types.h:13,
                   from include/linux/types.h:5,
                   from include/linux/list.h:4,
                   from include/linux/module.h:9,
                   from drivers/net/wireless/ath/wil6210/debugfs.c:17:
  include/asm-generic/div64.h:44:18: warning: right shift count >= width of type [-Wshift-count-overflow]
    if (likely(((n) >> 32) == 0)) {   \
                    ^
  include/linux/compiler.h:159:40: note: in definition of macro ‘likely’
   # define likely(x) __builtin_expect(!!(x), 1)
                                          ^
  drivers/net/wireless/ath/wil6210/debugfs.c:107:4: note: in expansion of macro ‘do_div’
      do_div(idle, total);
      ^
  In file included from arch/parisc/include/generated/asm/div64.h:1:0,
                   from include/linux/kernel.h:124,
                   from include/linux/list.h:8,
                   from include/linux/module.h:9,
                   from drivers/net/wireless/ath/wil6210/debugfs.c:17:
  include/asm-generic/div64.h:48:22: warning: passing argument 1 of ‘__div64_32’ from incompatible pointer type [-Wincompatible-pointer-types]
     __rem = __div64_32(&(n), __base); \
                        ^
  drivers/net/wireless/ath/wil6210/debugfs.c:107:4: note: in expansion of macro ‘do_div’
      do_div(idle, total);
      ^
  include/asm-generic/div64.h:35:17: note: expected ‘uint64_t * {aka long long unsigned int *}’ but argument is of type ‘cycles_t * {aka long unsigned int *}’
   extern uint32_t __div64_32(uint64_t *dividend, uint32_t divisor);
                   ^

Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2015-01-07 10:39:58 +02:00
..
cfg80211.c wil6210: propagate disconnect reason 2014-12-01 15:57:22 -05:00
debug.c wil6210: add handling of RX HTRSH interrupt 2014-12-01 15:57:22 -05:00
debugfs.c wil6210: use 'uint64_t' instead of 'cycles_t' to avoid warnings 2015-01-07 10:39:58 +02:00
ethtool.c wil6210: ethtool ops 2014-09-26 17:06:52 -04:00
fw_inc.c wil6210: fix warning in pointer arithmetic 2014-12-01 15:57:23 -05:00
fw.c wil6210: remove wil_to_pcie_dev() 2014-12-01 15:57:23 -05:00
fw.h wil6210: firmware download 2014-09-11 15:27:36 -04:00
interrupt.c wil6210: add handling of RX HTRSH interrupt 2014-12-01 15:57:22 -05:00
ioctl.c wil6210: atomic I/O for the card memory 2014-10-02 14:23:14 -04:00
Kconfig wil6210: platform specific module 2014-09-11 15:27:37 -04:00
main.c wil6210: reset flow update 2014-12-01 15:57:23 -05:00
Makefile wil6210: atomic I/O for the card memory 2014-10-02 14:23:14 -04:00
netdev.c wil6210: Add support for large packets 2014-10-30 15:26:52 -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
trace.h
txrx.c wil6210: remove TODO wrt buffer alignment 2014-12-01 15:57:23 -05:00
txrx.h wil6210: Add support for large packets 2014-10-30 15:26:52 -04:00
wil6210.h wil6210: configurable vring sizes 2014-12-01 15:57:23 -05: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
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
wmi.c wil6210: propagate disconnect reason 2014-12-01 15:57:22 -05:00
wmi.h wil6210: coding style fixes 2014-09-11 15:27:36 -04:00