aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorRajat Asthana <[email protected]>2021-05-19 19:11:19 +0530
committerGreg Kroah-Hartman <[email protected]>2021-05-20 11:39:26 +0200
commit9a032e3f7e045236ad529b7669257cd57b4f9dc0 (patch)
treee6be1b4dd9857e5bfeb4279f1719b4ea77d19204 /tools/perf/scripts/python
parentb9f38e913a926b455e5048a95f53a993b515509f (diff)
staging: greybus: audio: Fix sparse warning.
Sparse complains that: warning: restricted send_ctl_elem_iface_t degrades to integer. I have looked at this code, and the code is fine as-is. Normally we would frown on using the __force directive to silence Sparse warnings but in this case it's fine. Case statements can't be made into __bitwise types. We also can't change the type of "ctl->iface" either because that is part of the user space API. So just add a (__force int) to make the warning go away. Reviewed-by: Dan Carpenter <[email protected]> Signed-off-by: Rajat Asthana <[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')
0 files changed, 0 insertions, 0 deletions