aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>2018-06-01 07:41:24 -0400
committerJuergen Gross <jgross@suse.com>2018-06-19 08:45:27 -0400
commit6e3cc2a6e259f49f5817d1561109832eff90f8e4 (patch)
treec3ece701f16c74abb5c5085d216fbdb4f7bfb5fe
parent84c029a73327cef571eaa61c7d6e67e8031b52ec (diff)
xen/grant-table: Export gnttab_{alloc|free}_pages as GPL
Only gnttab_{alloc|free}_pages are exported as EXPORT_SYMBOL while all the rest are exported as EXPORT_SYMBOL_GPL, thus effectively making it not possible for non-GPL driver modules to use grant table module. Export gnttab_{alloc|free}_pages as EXPORT_SYMBOL_GPL so all the exports are aligned. Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com> Reviewed-by: Juergen Gross <jgross@suse.com> Signed-off-by: Juergen Gross <jgross@suse.com>
-rw-r--r--drivers/xen/grant-table.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/xen/grant-table.c b/drivers/xen/grant-table.c
index 27be107d6480..ba36ff3e4903 100644
--- a/drivers/xen/grant-table.c
+++ b/drivers/xen/grant-table.c
@@ -799,7 +799,7 @@ int gnttab_alloc_pages(int nr_pages, struct page **pages)
799 799
800 return 0; 800 return 0;
801} 801}
802EXPORT_SYMBOL(gnttab_alloc_pages); 802EXPORT_SYMBOL_GPL(gnttab_alloc_pages);
803 803
804/** 804/**
805 * gnttab_free_pages - free pages allocated by gnttab_alloc_pages() 805 * gnttab_free_pages - free pages allocated by gnttab_alloc_pages()
@@ -820,7 +820,7 @@ void gnttab_free_pages(int nr_pages, struct page **pages)
820 } 820 }
821 free_xenballooned_pages(nr_pages, pages); 821 free_xenballooned_pages(nr_pages, pages);
822} 822}
823EXPORT_SYMBOL(gnttab_free_pages); 823EXPORT_SYMBOL_GPL(gnttab_free_pages);
824 824
825/* Handling of paged out grant targets (GNTST_eagain) */ 825/* Handling of paged out grant targets (GNTST_eagain) */
826#define MAX_DELAY 256 826#define MAX_DELAY 256