diff options
author | Luca Coelho <luciano.coelho@intel.com> | 2016-09-28 11:32:35 +0300 |
---|---|---|
committer | Luca Coelho <luciano.coelho@intel.com> | 2016-10-19 08:40:35 +0300 |
commit | 276c4b4b74b6d5bc3cab35534409f3ad32464b78 (patch) | |
tree | cae9149e5e31511f2f8f7b2487ba0484fe14f5f8 /tools/perf/scripts/python/syscall-counts.py | |
parent | faead41cc7213ccef5a58c1bf518ac24816fe8a6 (diff) | |
download | linux-276c4b4b74b6d5bc3cab35534409f3ad32464b78.tar.xz |
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 2b55f43f8e47 ("iwlwifi: mvm: Add mem debugfs entry")
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions