diff options
author | 2020-03-11 18:58:10 -0700 | |
---|---|---|
committer | 2020-03-20 23:38:40 -0700 | |
commit | 2efefb56f92689b2e216857834df69dd3ea47d2b (patch) | |
tree | 5202b4bee3771b9f611f0bebedeecc1dad9c092b /tools/perf/scripts/python/stackcollapse.py | |
parent | Merge tag 'mac80211-next-for-net-next-2020-03-20' of git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next (diff) | |
download | wireguard-linux-2efefb56f92689b2e216857834df69dd3ea47d2b.tar.xz wireguard-linux-2efefb56f92689b2e216857834df69dd3ea47d2b.zip |
ice: use __le16 types for explicitly Little Endian values
The ice_read_sr_aq function returns words in the Little Endian format.
Remove the need for __force and typecasting by using a local variable in
the ice_read_sr_word_aq function.
Additionally clarify explicitly that the ice_read_sr_aq function takes
storage for __le16 values instead of using u16.
Being explicit about the endianness of this data helps when using tools
like sparse to catch endian-related issues.
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions