diff options
author | Rashika Kheria <rashika.kheria@gmail.com> | 2014-01-16 10:18:48 +1030 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2014-01-16 10:22:28 +1030 |
commit | 05c54de8c88c02bd0a44de8316d5e276b856632e (patch) | |
tree | 284d78a4e5abb0315ae2f9fbf8278ffcbdd60590 /drivers/virtio/virtio_balloon.c | |
parent | f466f75385369a181409e46da272db3de6f5c5cb (diff) | |
download | linux-05c54de8c88c02bd0a44de8316d5e276b856632e.tar.gz linux-05c54de8c88c02bd0a44de8316d5e276b856632e.tar.bz2 linux-05c54de8c88c02bd0a44de8316d5e276b856632e.zip |
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: Rashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/virtio/virtio_balloon.c')
-rw-r--r-- | drivers/virtio/virtio_balloon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/virtio/virtio_balloon.c b/drivers/virtio/virtio_balloon.c index c444654fc33f..8c5943de9fd0 100644 --- a/drivers/virtio/virtio_balloon.c +++ b/drivers/virtio/virtio_balloon.c @@ -369,7 +369,7 @@ static const struct address_space_operations virtio_balloon_aops; * This function preforms the balloon page migration task. * 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 balloon_dev_info *vb_dev_info = balloon_page_device(page); |