Commit 05c54de8 authored by Rashika Kheria's avatar Rashika Kheria Committed by Rusty Russell

drivers: virtio: Mark function virtballoon_migratepage() as static in virtio_balloon.c

Mark the function virtballoon_migratepage() as static in
virtio_balloon.c because it is not used outside this file.

This eliminates the following warning in virtio_balloon.c:
drivers/virtio/virtio_balloon.c:372:5: warning: no previous prototype for ‘virtballoon_migratepage’ [-Wmissing-prototypes]
Signed-off-by: default avatarRashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: default avatarJosh Triplett <josh@joshtriplett.org>
Acked-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent f466f753
...@@ -369,7 +369,7 @@ static const struct address_space_operations virtio_balloon_aops; ...@@ -369,7 +369,7 @@ static const struct address_space_operations virtio_balloon_aops;
* This function preforms the balloon page migration task. * This function preforms the balloon page migration task.
* Called through balloon_mapping->a_ops->migratepage * Called through balloon_mapping->a_ops->migratepage
*/ */
int virtballoon_migratepage(struct address_space *mapping, static int virtballoon_migratepage(struct address_space *mapping,
struct page *newpage, struct page *page, enum migrate_mode mode) struct page *newpage, struct page *page, enum migrate_mode mode)
{ {
struct balloon_dev_info *vb_dev_info = balloon_page_device(page); struct balloon_dev_info *vb_dev_info = balloon_page_device(page);
......
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