diff options
author | Ben Dooks (Codethink) <[email protected]> | 2019-10-25 17:30:29 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2019-10-28 17:47:08 +0100 |
commit | d5501d5c29a2e684640507cfee428178d6fd82ca (patch) | |
tree | 418826205e441cd599731d2a96eb046782aca02f /tools/perf/scripts/python/export-to-postgresql.py | |
parent | bfa3dbb343f664573292afb9e44f9abeb81a19de (diff) |
usb: xhci: fix __le32/__le64 accessors in debugfs code
It looks like some of the xhci debug code is passing u32 to functions
directly from __le32/__le64 fields.
Fix this by using le{32,64}_to_cpu() on these to fix the following
sparse warnings;
xhci-debugfs.c:205:62: warning: incorrect type in argument 1 (different base types)
xhci-debugfs.c:205:62: expected unsigned int [usertype] field0
xhci-debugfs.c:205:62: got restricted __le32
xhci-debugfs.c:206:62: warning: incorrect type in argument 2 (different base types)
xhci-debugfs.c:206:62: expected unsigned int [usertype] field1
xhci-debugfs.c:206:62: got restricted __le32
...
[Trim down commit message, sparse warnings were similar -Mathias]
Cc: <[email protected]> # 4.15+
Signed-off-by: Ben Dooks <[email protected]>
Signed-off-by: Mathias Nyman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions