[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1588065491-27292-1-git-send-email-huangll@lemote.com>
Date: Tue, 28 Apr 2020 17:18:11 +0800
From: Liangliang Huang <huanglllzu@...il.com>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: Huacai Chen <chenhuacai@...il.com>,
Liangliang Huang <huanglllzu@...il.com>,
linux-kernel@...r.kernel.org, Liangliang Huang <huangll@...ote.com>
Subject: [PATCH] include/bitmap.h: add the type of the nbits parameter in bitmap_empty()
The type of parameter in bitmap_empty() is lack. In order to
keep context consistent, so add the type of the parameter in
bitmap_empty().
Signed-off-by: Liangliang Huang <huangll@...ote.com>
---
include/linux/bitmap.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/bitmap.h b/include/linux/bitmap.h
index 99058eb..768f7b7 100644
--- a/include/linux/bitmap.h
+++ b/include/linux/bitmap.h
@@ -379,7 +379,7 @@ static inline int bitmap_subset(const unsigned long *src1,
return __bitmap_subset(src1, src2, nbits);
}
-static inline int bitmap_empty(const unsigned long *src, unsigned nbits)
+static inline int bitmap_empty(const unsigned long *src, unsigned int nbits)
{
if (small_const_nbits(nbits))
return ! (*src & BITMAP_LAST_WORD_MASK(nbits));
--
2.7.0
Powered by blists - more mailing lists