mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-24 15:42:32 +00:00
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:
parent
ccbd59c1c1
commit
46385326cc
8 changed files with 7 additions and 201 deletions
|
@ -546,21 +546,6 @@ static inline void cpumask_copy(struct cpumask *dstp,
|
|||
*/
|
||||
#define cpumask_of(cpu) (get_cpu_mask(cpu))
|
||||
|
||||
/**
|
||||
* cpumask_scnprintf - print a cpumask into a string as comma-separated hex
|
||||
* @buf: the buffer to sprintf into
|
||||
* @len: the length of the buffer
|
||||
* @srcp: the cpumask to print
|
||||
*
|
||||
* If len is zero, returns zero. Otherwise returns the length of the
|
||||
* (nul-terminated) @buf string.
|
||||
*/
|
||||
static inline int cpumask_scnprintf(char *buf, int len,
|
||||
const struct cpumask *srcp)
|
||||
{
|
||||
return bitmap_scnprintf(buf, len, cpumask_bits(srcp), nr_cpu_ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* cpumask_parse_user - extract a cpumask from a user string
|
||||
* @buf: the buffer to extract from
|
||||
|
@ -590,22 +575,6 @@ static inline int cpumask_parselist_user(const char __user *buf, int len,
|
|||
nr_cpu_ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* cpulist_scnprintf - print a cpumask into a string as comma-separated list
|
||||
* @buf: the buffer to sprintf into
|
||||
* @len: the length of the buffer
|
||||
* @srcp: the cpumask to print
|
||||
*
|
||||
* If len is zero, returns zero. Otherwise returns the length of the
|
||||
* (nul-terminated) @buf string.
|
||||
*/
|
||||
static inline int cpulist_scnprintf(char *buf, int len,
|
||||
const struct cpumask *srcp)
|
||||
{
|
||||
return bitmap_scnlistprintf(buf, len, cpumask_bits(srcp),
|
||||
nr_cpu_ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* cpumask_parse - extract a cpumask from from a string
|
||||
* @buf: the buffer to extract from
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue