aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2022-04-21 10:58:02 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-04-22 16:19:52 +0200
commit7a5f86e86b7a2466c80c7d383efd66151d70c015 (patch)
tree03b8bc05f21456085805bc9652453dd21c78a6b8 /tools/perf/scripts/python/bin
parentserial: icom: remove to_icom_adapter() and icom_kref_release() (diff)
downloadlinux-7a5f86e86b7a2466c80c7d383efd66151d70c015.tar.gz
linux-7a5f86e86b7a2466c80c7d383efd66151d70c015.zip
serial: icom: use proper __le types and functions
There is a lot of sparse warnings: .../icom.c:228:30: warning: cast from restricted __le16 .../icom.c:232:66: warning: incorrect type in assignment (different base types) .../icom.c:232:66: expected unsigned int [usertype] leBuffer .../icom.c:232:66: got restricted __le32 [usertype] .../icom.c:237:30: warning: cast from restricted __le16 ... .../icom.c:1228:22: warning: cast from restricted __le16 And they are correct. So sort them all out by using proper __leXX and uXX types and the right direction of conversion: le16_to_cpu() instead of cpu_to_le16(), where appropriate. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Link: https://lore.kernel.org/r/20220421085808.24152-5-jslaby@suse.cz Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions