This patch resolve below waring.
warning: implicit conversion from 'unsigned long' to 'int' changes
value from
18446744073709551615 to -1 [-Wconstant-conversion]
Change-Id: I88e9f844dfdbb310eb4bb1a5ac85d14a2eafe53c
Signed-off-by: JaeHun Jung <jh0801.jung@samsung.com>
do {
tmp = ~hba->lrb_in_use;
tmp &= BITMAP_LAST_WORD_MASK(hba->nutrs);
- tag = (tmp) ? __fls(tmp) : ~0ul;
+ tag = (int)(tmp) ? __fls(tmp) : ~0;
if (tag >= hba->nutrs)
goto out;
} while (test_and_set_bit_lock(tag, &hba->lrb_in_use));