diff options
| author | Michael Zoran <[email protected]> | 2016-10-19 15:58:48 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2016-10-24 15:21:27 +0200 |
| commit | 8e8e2e36f77ab074016f79ac63b7255f645da3ed (patch) | |
| tree | 66d97d808ad006ac104d6bc7293858565d961559 /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | 24a4262afb10907fce3cdbc3ae336fcf4cdaece5 (diff) | |
staging: vc04_services: Handle conversion from VCHIQ_SERVICE_HANDLE_T to VCHI_SERVICE_HANDLE_T
A VCHIQ_SERVICE_HANDLE_T which is an int is stuffed into a
VCHI_SERVICE_HANDLE_T which is a pointer, passed around, then
converted back to a VCHIQ_SERVICE_HANDLE_T. Since the data is
always actually a VCHIQ_SERVICE_HANDLE_T(int), never actually a
pointer, it is safe to simply cast the two back in forth.
Note that pointers are never stuffed into an int.
Signed-off-by: Michael Zoran <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions