Commit 8712954d authored by Rashika Kheria's avatar Rashika Kheria Committed by Greg Kroah-Hartman

drivers: hv: Mark the function hv_synic_free_cpu() as static in hv.c

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: default avatarRashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: default avatarJosh Triplett <josh@joshtriplett.org>
Signed-off-by: default avatarK. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1bdd2c45
...@@ -301,7 +301,7 @@ int hv_synic_alloc(void) ...@@ -301,7 +301,7 @@ int hv_synic_alloc(void)
return -ENOMEM; return -ENOMEM;
} }
void hv_synic_free_cpu(int cpu) static void hv_synic_free_cpu(int cpu)
{ {
kfree(hv_context.event_dpc[cpu]); kfree(hv_context.event_dpc[cpu]);
if (hv_context.synic_event_page[cpu]) if (hv_context.synic_event_page[cpu])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment