]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drivers: hv: Mark the function hv_synic_free_cpu() as static in hv.c
authorRashika Kheria <rashika.kheria@gmail.com>
Sat, 14 Dec 2013 13:30:06 +0000 (19:00 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Dec 2013 00:41:52 +0000 (16:41 -0800)
This patch marks the function hv_synic_free_cpu() as static in hv.c
because it is not used outside this file.

Thus, it also eliminates the following warning in hv.c:
drivers/hv/hv.c:304:6: warning: no previous prototype for ‘hv_synic_free_cpu’ [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hv/hv.c

index f0c5e07c25ec9f88d4bc0cee66a990da77f3636e..bcb49502c3bf2204d19ca76a2143b2510207ddea 100644 (file)
@@ -301,7 +301,7 @@ err:
        return -ENOMEM;
 }
 
-void hv_synic_free_cpu(int cpu)
+static void hv_synic_free_cpu(int cpu)
 {
        kfree(hv_context.event_dpc[cpu]);
        if (hv_context.synic_event_page[cpu])