From: JaeHun Jung Date: Thu, 24 May 2018 06:00:59 +0000 (+0900) Subject: [COMMON] scsi: ufs: fix clang warning X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=236f242bb3b3a520421e27742ffe33ec54e892a0;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] scsi: ufs: fix clang warning 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 --- diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 7460a5ad645a..521474a6df3f 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -2718,7 +2718,7 @@ static bool ufshcd_get_dev_cmd_tag(struct ufs_hba *hba, int *tag_out) 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));