summaryrefslogtreecommitdiffstats
path: root/fs/seq_file.c
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2008-12-30 09:05:14 +1030
committerRusty Russell <rusty@rustcorp.com.au>2008-12-30 09:05:14 +1030
commitcb78a0ce69fad2026825f957e24e2d9cda1ec9f1 (patch)
tree9a1359350c46f34394f715d9bebadc9cde842fa5 /fs/seq_file.c
parent4b0bc0bca83f3fb7cf920e2ec80684c15d2269c0 (diff)
downloadtalos-obmc-linux-cb78a0ce69fad2026825f957e24e2d9cda1ec9f1.tar.gz
talos-obmc-linux-cb78a0ce69fad2026825f957e24e2d9cda1ec9f1.zip
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 'fs/seq_file.c')
-rw-r--r--fs/seq_file.c3
1 files changed, 2 insertions, 1 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)
return -1;
}
-int seq_bitmap(struct seq_file *m, unsigned long *bits, unsigned int nr_bits)
+int seq_bitmap(struct seq_file *m, const unsigned long *bits,
+ unsigned int nr_bits)
{
if (m->count < m->size) {
int len = bitmap_scnprintf(m->buf + m->count,
OpenPOWER on IntegriCloud