diff options
author | Jacob Keller <jacob.e.keller@intel.com> | 2020-03-12 04:58:10 +0300 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2020-03-21 09:38:40 +0300 |
commit | 2efefb56f92689b2e216857834df69dd3ea47d2b (patch) | |
tree | 5202b4bee3771b9f611f0bebedeecc1dad9c092b /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 0d7043f355d0045bd38b025630a7defefa3ec07f (diff) | |
download | linux-2efefb56f92689b2e216857834df69dd3ea47d2b.tar.xz |
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/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions