Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 115944
b: refs/heads/master
c: c459643
h: refs/heads/master
v: v3
  • Loading branch information
Lai Jiangshan authored and Linus Torvalds committed Oct 20, 2008
1 parent 6b2024e commit ebaf967
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 30e8e13603c247c301fdacabef2a765c84840994
refs/heads/master: c4596435404976b0ded9cdf18b456ca2e1408ddd
1 change: 0 additions & 1 deletion trunk/include/linux/bitmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ extern int __bitmap_weight(const unsigned long *bitmap, int bits);

extern int bitmap_scnprintf(char *buf, unsigned int len,
const unsigned long *src, int nbits);
extern int bitmap_scnprintf_len(unsigned int nr_bits);
extern int __bitmap_parse(const char *buf, unsigned int buflen, int is_user,
unsigned long *dst, int nbits);
extern int bitmap_parse_user(const char __user *ubuf, unsigned int ulen,
Expand Down
11 changes: 0 additions & 11 deletions trunk/lib/bitmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -315,17 +315,6 @@ int bitmap_scnprintf(char *buf, unsigned int buflen,
}
EXPORT_SYMBOL(bitmap_scnprintf);

/**
* bitmap_scnprintf_len - return buffer length needed to convert
* bitmap to an ASCII hex string
* @nr_bits: number of bits to be converted
*/
int bitmap_scnprintf_len(unsigned int nr_bits)
{
unsigned int nr_nibbles = ALIGN(nr_bits, 4) / 4;
return nr_nibbles + ALIGN(nr_nibbles, CHUNKSZ / 4) / (CHUNKSZ / 4) - 1;
}

/**
* __bitmap_parse - convert an ASCII hex string into a bitmap.
* @buf: pointer to buffer containing string.
Expand Down

0 comments on commit ebaf967

Please sign in to comment.