drivers: virtio: Mark function virtballoon_migratepage() as static in virtio_balloon.c
Subsystems (2)
PATCH 1/1 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]
--- drivers/virtio/virtio_balloon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/virtio/virtio_balloon.c +1 -1
@@ -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);
Signature · 1 line
1.7.9.5
Quoted 7 lines · Rashika Kheria
Mark the function
virtballoon_migratepage()as static invirtio_balloon.cbecause 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 <[email protected]>
Quoted 19 lines
drivers/virtio/virtio_balloon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/virtio/virtio_balloon.c +1
-1@@ -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);Signature · 1 line
1.7.9.5
_______________________________________________
Virtualization mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Quoted 10 lines · Josh Triplett
Quoted 7 lines · Rashika Kheria
Mark the function
virtballoon_migratepage()as static invirtio_balloon.cbecause 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 <[email protected]>Reviewed-by Josh Triplett <[email protected]>
Quoted 19 lines
Quoted 19 lines
drivers/virtio/virtio_balloon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/virtio/virtio_balloon.c +1
-1@@ -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);Signature · 1 line
1.7.9.5
Rusty Russell
AppliedQuoted 5 lines · Michael S. Tsirkin
Quoted 4 lines · Josh Triplett
Quoted 3 lines · Rashika Kheria
Mark the function
virtballoon_migratepage()as static invirtio_balloon.cbecause it is not used outside this file.
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
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 <[email protected]>Reviewed-by Josh Triplett <[email protected]>
Thanks, applied.
Cheers,
Rusty.
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
drivers/virtio/virtio_balloon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 16 lines
Quoted 8 lines
Quoted 8 lines
drivers/virtio/virtio_balloon.c +0
-0@@ -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 */ Quoted 8 lines
Quoted 8 lines
drivers/virtio/virtio_balloon.c +1
-1-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);Signature · 1 line
1.7.9.5
_______________________________________________
Virtualization mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/virtualization