]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drivers: block: Mark function seq_printf_with_thousands_grouping() as static in drbd_...
authorRashika Kheria <rashika.kheria@gmail.com>
Thu, 19 Dec 2013 09:34:47 +0000 (15:04 +0530)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Mon, 17 Feb 2014 15:19:39 +0000 (16:19 +0100)
Mark function seq_printf_with_thousands_grouping() as static in
drbd/drbd_proc.c because it is not used outside this file.

This eliminates the following warning in drbd/drbd_proc.c:
drivers/block/drbd/drbd_proc.c:49:6: warning: no previous prototype for ‘seq_printf_with_thousands_grouping’ [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
drivers/block/drbd/drbd_proc.c

index bf31d41dbaadf023a57057bb03006c77146c7879..84fbe33908e2301daeab6aa1043ab6b8599e2ffa 100644 (file)
@@ -46,7 +46,7 @@ const struct file_operations drbd_proc_fops = {
        .release        = drbd_proc_release,
 };
 
-void seq_printf_with_thousands_grouping(struct seq_file *seq, long v)
+static void seq_printf_with_thousands_grouping(struct seq_file *seq, long v)
 {
        /* v is in kB/sec. We don't expect TiByte/sec yet. */
        if (unlikely(v >= 1000000)) {