diff options
author | Takashi Iwai <tiwai@suse.de> | 2011-08-08 10:45:31 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-08-08 10:45:31 +0200 |
commit | 8c285645ab3b05942124020b5f0b89d3b539823a (patch) | |
tree | db15972689f7f0b794244294836a1233beb37dd4 /lib/bitmap.c | |
parent | 151798f872d6b386d82cd1707ad703e981fef8f2 (diff) | |
parent | 844970916c8e50f630ea1a6ac82f09c42b12660a (diff) |
Merge branch 'wm8996-rename' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound-2.6 into fix/asoc
Diffstat (limited to 'lib/bitmap.c')
-rw-r--r-- | lib/bitmap.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/bitmap.c b/lib/bitmap.c index 41baf02924e6..2f4412e4d071 100644 --- a/lib/bitmap.c +++ b/lib/bitmap.c @@ -271,8 +271,6 @@ int __bitmap_weight(const unsigned long *bitmap, int bits) } EXPORT_SYMBOL(__bitmap_weight); -#define BITMAP_FIRST_WORD_MASK(start) (~0UL << ((start) % BITS_PER_LONG)) - void bitmap_set(unsigned long *map, int start, int nr) { unsigned long *p = map + BIT_WORD(start); @@ -572,7 +570,7 @@ EXPORT_SYMBOL(bitmap_scnlistprintf); /** * __bitmap_parselist - convert list format ASCII string to bitmap - * @bp: read nul-terminated user string from this buffer + * @buf: read nul-terminated user string from this buffer * @buflen: buffer size in bytes. If string is smaller than this * then it must be terminated with a \0. * @is_user: location of buffer, 0 indicates kernel space @@ -756,7 +754,7 @@ static int bitmap_pos_to_ord(const unsigned long *buf, int pos, int bits) * * The bit positions 0 through @bits are valid positions in @buf. */ -static int bitmap_ord_to_pos(const unsigned long *buf, int ord, int bits) +int bitmap_ord_to_pos(const unsigned long *buf, int ord, int bits) { int pos = 0; |