summaryrefslogtreecommitdiff
path: root/drivers/scsi/scsi_sysfs.c
diff options
context:
space:
mode:
authorMartin Wilck <mwilck@suse.com>2018-04-18 01:35:06 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2018-04-20 15:57:32 -0400
commitdbef91ec5482239055dd2db8ec656fc13d382add (patch)
tree713484f124faf033bd7970cfbb8cdcfd080891b2 /drivers/scsi/scsi_sysfs.c
parent2217a47de42f85b69714c2a621af13cfeae35b40 (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 <mwilck@suse.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/scsi_sysfs.c')
0 files changed, 0 insertions, 0 deletions