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
|
|
@ -126,31 +126,6 @@ int seq_path(struct seq_file *, const struct path *, const char *);
|
|||
int seq_dentry(struct seq_file *, struct dentry *, const char *);
|
||||
int seq_path_root(struct seq_file *m, const struct path *path,
|
||||
const struct path *root, const char *esc);
|
||||
int seq_bitmap(struct seq_file *m, const unsigned long *bits,
|
||||
unsigned int nr_bits);
|
||||
static inline int seq_cpumask(struct seq_file *m, const struct cpumask *mask)
|
||||
{
|
||||
return seq_bitmap(m, cpumask_bits(mask), nr_cpu_ids);
|
||||
}
|
||||
|
||||
static inline int seq_nodemask(struct seq_file *m, nodemask_t *mask)
|
||||
{
|
||||
return seq_bitmap(m, mask->bits, MAX_NUMNODES);
|
||||
}
|
||||
|
||||
int seq_bitmap_list(struct seq_file *m, const unsigned long *bits,
|
||||
unsigned int nr_bits);
|
||||
|
||||
static inline int seq_cpumask_list(struct seq_file *m,
|
||||
const struct cpumask *mask)
|
||||
{
|
||||
return seq_bitmap_list(m, cpumask_bits(mask), nr_cpu_ids);
|
||||
}
|
||||
|
||||
static inline int seq_nodemask_list(struct seq_file *m, nodemask_t *mask)
|
||||
{
|
||||
return seq_bitmap_list(m, mask->bits, MAX_NUMNODES);
|
||||
}
|
||||
|
||||
int single_open(struct file *, int (*)(struct seq_file *, void *), void *);
|
||||
int single_open_size(struct file *, int (*)(struct seq_file *, void *), void *, size_t);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue