bitmap, cpumask, nodemask: remove dedicated formatting functions
Now that all bitmap formatting usages have been converted to '%*pb[l]', the separate formatting functions are unnecessary. The following functions are removed. * bitmap_scn[list]printf() * cpumask_scnprintf(), cpulist_scnprintf() * [__]nodemask_scnprintf(), [__]nodelist_scnprintf() * seq_bitmap[_list](), seq_cpumask[_list](), seq_nodemask[_list]() * seq_buf_bitmask() Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:

committed by
Linus Torvalds

parent
ccbd59c1c1
commit
46385326cc
@@ -8,14 +8,13 @@
|
||||
* See detailed comments in the file linux/bitmap.h describing the
|
||||
* data type on which these nodemasks are based.
|
||||
*
|
||||
* For details of nodemask_scnprintf() and nodemask_parse_user(),
|
||||
* see bitmap_scnprintf() and bitmap_parse_user() in lib/bitmap.c.
|
||||
* For details of nodelist_scnprintf() and nodelist_parse(), see
|
||||
* bitmap_scnlistprintf() and bitmap_parselist(), also in bitmap.c.
|
||||
* For details of node_remap(), see bitmap_bitremap in lib/bitmap.c.
|
||||
* For details of nodes_remap(), see bitmap_remap in lib/bitmap.c.
|
||||
* For details of nodes_onto(), see bitmap_onto in lib/bitmap.c.
|
||||
* For details of nodes_fold(), see bitmap_fold in lib/bitmap.c.
|
||||
* For details of nodemask_parse_user(), see bitmap_parse_user() in
|
||||
* lib/bitmap.c. For details of nodelist_parse(), see bitmap_parselist(),
|
||||
* also in bitmap.c. For details of node_remap(), see bitmap_bitremap in
|
||||
* lib/bitmap.c. For details of nodes_remap(), see bitmap_remap in
|
||||
* lib/bitmap.c. For details of nodes_onto(), see bitmap_onto in
|
||||
* lib/bitmap.c. For details of nodes_fold(), see bitmap_fold in
|
||||
* lib/bitmap.c.
|
||||
*
|
||||
* The available nodemask operations are:
|
||||
*
|
||||
@@ -52,9 +51,7 @@
|
||||
* NODE_MASK_NONE Initializer - no bits set
|
||||
* unsigned long *nodes_addr(mask) Array of unsigned long's in mask
|
||||
*
|
||||
* int nodemask_scnprintf(buf, len, mask) Format nodemask for printing
|
||||
* int nodemask_parse_user(ubuf, ulen, mask) Parse ascii string as nodemask
|
||||
* int nodelist_scnprintf(buf, len, mask) Format nodemask as list for printing
|
||||
* int nodelist_parse(buf, map) Parse ascii string as nodelist
|
||||
* int node_remap(oldbit, old, new) newbit = map(old, new)(oldbit)
|
||||
* void nodes_remap(dst, src, old, new) *dst = map(old, new)(src)
|
||||
@@ -312,14 +309,6 @@ static inline int __first_unset_node(const nodemask_t *maskp)
|
||||
|
||||
#define nodes_addr(src) ((src).bits)
|
||||
|
||||
#define nodemask_scnprintf(buf, len, src) \
|
||||
__nodemask_scnprintf((buf), (len), &(src), MAX_NUMNODES)
|
||||
static inline int __nodemask_scnprintf(char *buf, int len,
|
||||
const nodemask_t *srcp, int nbits)
|
||||
{
|
||||
return bitmap_scnprintf(buf, len, srcp->bits, nbits);
|
||||
}
|
||||
|
||||
#define nodemask_parse_user(ubuf, ulen, dst) \
|
||||
__nodemask_parse_user((ubuf), (ulen), &(dst), MAX_NUMNODES)
|
||||
static inline int __nodemask_parse_user(const char __user *buf, int len,
|
||||
@@ -328,14 +317,6 @@ static inline int __nodemask_parse_user(const char __user *buf, int len,
|
||||
return bitmap_parse_user(buf, len, dstp->bits, nbits);
|
||||
}
|
||||
|
||||
#define nodelist_scnprintf(buf, len, src) \
|
||||
__nodelist_scnprintf((buf), (len), &(src), MAX_NUMNODES)
|
||||
static inline int __nodelist_scnprintf(char *buf, int len,
|
||||
const nodemask_t *srcp, int nbits)
|
||||
{
|
||||
return bitmap_scnlistprintf(buf, len, srcp->bits, nbits);
|
||||
}
|
||||
|
||||
#define nodelist_parse(buf, dst) __nodelist_parse((buf), &(dst), MAX_NUMNODES)
|
||||
static inline int __nodelist_parse(const char *buf, nodemask_t *dstp, int nbits)
|
||||
{
|
||||
|
Reference in New Issue
Block a user