Re: [PATCH] target/iblock: use ilog2 to compute block size

2016-06-22 Thread Christoph Hellwig
This doesn't compute the block size, it computes the number of block in a block device. I think it would be useful to add a generic helper (e.g. in blkdev.h) as this calculation seems to be open coded in various places. -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in

[PATCH] target/iblock: use ilog2 to compute block size

2016-06-22 Thread Arnd Bergmann
Enabling CONFIG_UBSAN_SANITIZE_ALL on ARM caused a link error: drivers/target/built-in.o: In function `iblock_emulate_read_cap_with_block_size.constprop.1': target_core_iblock.c:(.text+0xc2774): undefined reference to `ilog2_NaN' target_core_iblock.c:(.text+0xc27f8): undefined reference to