diff options
author | Martin Wilck <mwilck@suse.com> | 2018-04-18 02:35:06 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-04-20 22:57:32 +0300 |
commit | dbef91ec5482239055dd2db8ec656fc13d382add (patch) | |
tree | 713484f124faf033bd7970cfbb8cdcfd080891b2 /drivers/scsi/scsi_debugfs.c | |
parent | 2217a47de42f85b69714c2a621af13cfeae35b40 (diff) | |
download | linux-dbef91ec5482239055dd2db8ec656fc13d382add.tar.xz |
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 <mwilck@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/scsi_debugfs.c')
0 files changed, 0 insertions, 0 deletions