aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2008-12-29 17:35:14 -0500
committerRusty Russell <rusty@rustcorp.com.au>2008-12-29 17:35:14 -0500
commitcb78a0ce69fad2026825f957e24e2d9cda1ec9f1 (patch)
tree9a1359350c46f34394f715d9bebadc9cde842fa5 /include/linux
parent4b0bc0bca83f3fb7cf920e2ec80684c15d2269c0 (diff)
bitmap: fix seq_bitmap and seq_cpumask to take const pointer
Impact: cleanup seq_bitmap just calls bitmap_scnprintf on the bits: that arg can be const. Similarly, seq_cpumask just calls seq_bitmap. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/seq_file.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/seq_file.h b/include/linux/seq_file.h
index b3dfa72f13b9..952e0187ba16 100644
--- a/include/linux/seq_file.h
+++ b/include/linux/seq_file.h
@@ -50,8 +50,9 @@ int seq_path(struct seq_file *, struct path *, char *);
50int seq_dentry(struct seq_file *, struct dentry *, char *); 50int seq_dentry(struct seq_file *, struct dentry *, char *);
51int seq_path_root(struct seq_file *m, struct path *path, struct path *root, 51int seq_path_root(struct seq_file *m, struct path *path, struct path *root,
52 char *esc); 52 char *esc);
53int seq_bitmap(struct seq_file *m, unsigned long *bits, unsigned int nr_bits); 53int seq_bitmap(struct seq_file *m, const unsigned long *bits,
54static inline int seq_cpumask(struct seq_file *m, cpumask_t *mask) 54 unsigned int nr_bits);
55static inline int seq_cpumask(struct seq_file *m, const struct cpumask *mask)
55{ 56{
56 return seq_bitmap(m, mask->bits, NR_CPUS); 57 return seq_bitmap(m, mask->bits, NR_CPUS);
57} 58}