projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tools: bitmap: sync function declarations with the kernel
[linux-2.6-microblaze.git]
/
tools
/
include
/
linux
/
bitmap.h
diff --git
a/tools/include/linux/bitmap.h
b/tools/include/linux/bitmap.h
index
477a1ca
..
7cbd23e
100644
(file)
--- a/
tools/include/linux/bitmap.h
+++ b/
tools/include/linux/bitmap.h
@@
-30,7
+30,7
@@
void bitmap_clear(unsigned long *map, unsigned int start, int len);
#define small_const_nbits(nbits) \
(__builtin_constant_p(nbits) && (nbits) <= BITS_PER_LONG)
#define small_const_nbits(nbits) \
(__builtin_constant_p(nbits) && (nbits) <= BITS_PER_LONG)
-static inline void bitmap_zero(unsigned long *dst, int nbits)
+static inline void bitmap_zero(unsigned long *dst,
unsigned
int nbits)
{
if (small_const_nbits(nbits))
*dst = 0UL;
{
if (small_const_nbits(nbits))
*dst = 0UL;
@@
-66,7
+66,7
@@
static inline int bitmap_full(const unsigned long *src, unsigned int nbits)
return find_first_zero_bit(src, nbits) == nbits;
}
return find_first_zero_bit(src, nbits) == nbits;
}
-static inline int bitmap_weight(const unsigned long *src, int nbits)
+static inline int bitmap_weight(const unsigned long *src,
unsigned
int nbits)
{
if (small_const_nbits(nbits))
return hweight_long(*src & BITMAP_LAST_WORD_MASK(nbits));
{
if (small_const_nbits(nbits))
return hweight_long(*src & BITMAP_LAST_WORD_MASK(nbits));
@@
-74,7
+74,7
@@
static inline int bitmap_weight(const unsigned long *src, int nbits)
}
static inline void bitmap_or(unsigned long *dst, const unsigned long *src1,
}
static inline void bitmap_or(unsigned long *dst, const unsigned long *src1,
- const unsigned long *src2, int nbits)
+ const unsigned long *src2,
unsigned
int nbits)
{
if (small_const_nbits(nbits))
*dst = *src1 | *src2;
{
if (small_const_nbits(nbits))
*dst = *src1 | *src2;
@@
-141,7
+141,7
@@
static inline void bitmap_free(unsigned long *bitmap)
* @buf: buffer to store output
* @size: size of @buf
*/
* @buf: buffer to store output
* @size: size of @buf
*/
-size_t bitmap_scnprintf(unsigned long *bitmap, int nbits,
+size_t bitmap_scnprintf(unsigned long *bitmap,
unsigned
int nbits,
char *buf, size_t size);
/**
char *buf, size_t size);
/**