diff options
| author | Serge Semin <[email protected]> | 2018-01-24 07:48:45 +0000 |
|---|---|---|
| committer | Jon Mason <[email protected]> | 2018-01-29 03:17:24 +0000 |
| commit | 3b28c987fb9547ca9aac73241d0e281cf646387c (patch) | |
| tree | 1ab415447ed8abd1336ffc71cfa53b08883e9dea /tools/perf/scripts/python/call-graph-from-sql.py | |
| parent | ntb_perf: Fix an error code in perf_copy_chunk() (diff) | |
| download | kernel-3b28c987fb9547ca9aac73241d0e281cf646387c.tar.gz kernel-3b28c987fb9547ca9aac73241d0e281cf646387c.zip | |
NTB: ntb_perf: fix cast to restricted __le32
Sparse is whining about the u32 and __le32 mixed usage in the driver
drivers/ntb/test/ntb_perf.c:288:21: warning: cast to restricted __le32
drivers/ntb/test/ntb_perf.c:295:37: warning: incorrect type in argument 4 (different base types)
drivers/ntb/test/ntb_perf.c:295:37: expected unsigned int [unsigned] [usertype] val
drivers/ntb/test/ntb_perf.c:295:37: got restricted __le32 [usertype] <noident>
...
NTB hardware drivers shall accept CPU-endian data and translate it to
the portable formate by internal means, so the explicit conversions
are not necessary before Scratchpad/Messages API usage anymore.
Fixes: b83003b3fdc1 ("NTB: ntb_perf: Add full multi-port NTB API support")
Signed-off-by: Serge Semin <[email protected]>
Acked-by: Arnd Bergmann <[email protected]>
Signed-off-by: Jon Mason <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions
