diff options
-rw-r--r-- | fs/seq_file.c | 3 | ||||
-rw-r--r-- | include/linux/seq_file.h | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/fs/seq_file.c b/fs/seq_file.c index 16c211558c22..c99358a52176 100644 --- a/fs/seq_file.c +++ b/fs/seq_file.c | |||
@@ -462,7 +462,8 @@ int seq_dentry(struct seq_file *m, struct dentry *dentry, char *esc) | |||
462 | return -1; | 462 | return -1; |
463 | } | 463 | } |
464 | 464 | ||
465 | int seq_bitmap(struct seq_file *m, unsigned long *bits, unsigned int nr_bits) | 465 | int seq_bitmap(struct seq_file *m, const unsigned long *bits, |
466 | unsigned int nr_bits) | ||
466 | { | 467 | { |
467 | if (m->count < m->size) { | 468 | if (m->count < m->size) { |
468 | int len = bitmap_scnprintf(m->buf + m->count, | 469 | int len = bitmap_scnprintf(m->buf + m->count, |
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 *); | |||
50 | int seq_dentry(struct seq_file *, struct dentry *, char *); | 50 | int seq_dentry(struct seq_file *, struct dentry *, char *); |
51 | int seq_path_root(struct seq_file *m, struct path *path, struct path *root, | 51 | int seq_path_root(struct seq_file *m, struct path *path, struct path *root, |
52 | char *esc); | 52 | char *esc); |
53 | int seq_bitmap(struct seq_file *m, unsigned long *bits, unsigned int nr_bits); | 53 | int seq_bitmap(struct seq_file *m, const unsigned long *bits, |
54 | static inline int seq_cpumask(struct seq_file *m, cpumask_t *mask) | 54 | unsigned int nr_bits); |
55 | static 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 | } |