diff options
author | Martin Wilck <[email protected]> | 2018-04-18 01:35:06 +0200 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2018-04-20 15:57:32 -0400 |
commit | dbef91ec5482239055dd2db8ec656fc13d382add (patch) | |
tree | 713484f124faf033bd7970cfbb8cdcfd080891b2 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | 2217a47de42f85b69714c2a621af13cfeae35b40 (diff) |
scsi: ilog2: create truly constant version for sparse
Sparse emits errors about ilog2() in array indices because of the use of
__ilog2_32() and __ilog2_64(), rightly so
(https://www.spinics.net/lists/linux-sparse/msg03471.html).
Create a const_ilog2() variant that works with sparse for this scenario.
(Note: checkpatch.pl complains about missing parentheses, but that
appears to be a false positive. I can get rid of the warning simply by
inserting whitespace, making checkpatch "see" the whole macro).
Signed-off-by: Martin Wilck <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions