linux_dsm_epyc7002/drivers/net/wireless/intel
Luca Coelho 276c4b4b74 iwlwifi: mvm: use ssize_t for len in iwl_debugfs_mem_read()
In iwl_dbgfs_mem_read(), the len variable may become negative and is
compared to < 0 (an error case).  Comparing size_t (which is unsigned)
to < 0 causes a warning on certain platforms (like i386):

drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c:1561:5-8: WARNING: Unsigned expression compared with zero: len < 0

To prevent that, use ssize_t for len instead.

Fixes: commit 2b55f43f8e ("iwlwifi: mvm: Add mem debugfs entry")
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
2016-10-19 08:40:35 +03:00
..
ipw2x00 wireless: ipw2200: fix old-style declaration 2016-06-29 18:56:21 +03:00
iwlegacy wireless-drivers-next patches for 4.9 2016-09-17 09:53:29 -04:00
iwlwifi iwlwifi: mvm: use ssize_t for len in iwl_debugfs_mem_read() 2016-10-19 08:40:35 +03:00
Kconfig
Makefile