diff options
author | Jacob Keller <[email protected]> | 2020-03-11 18:58:10 -0700 |
---|---|---|
committer | Jeff Kirsher <[email protected]> | 2020-03-20 23:38:40 -0700 |
commit | 2efefb56f92689b2e216857834df69dd3ea47d2b (patch) | |
tree | 5202b4bee3771b9f611f0bebedeecc1dad9c092b /scripts/gcc-plugins/cyc_complexity_plugin.c | |
parent | 0d7043f355d0045bd38b025630a7defefa3ec07f (diff) |
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 <[email protected]>
Reviewed-by: Jesse Brandeburg <[email protected]>
Tested-by: Andrew Bowers <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions