Skip to content

Commit 6e3cc2a

Browse files
Oleksandr Andrushchenkojgross1
authored andcommitted
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 <[email protected]> Reviewed-by: Juergen Gross <[email protected]> Signed-off-by: Juergen Gross <[email protected]>
1 parent 84c029a commit 6e3cc2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/xen/grant-table.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ int gnttab_alloc_pages(int nr_pages, struct page **pages)
799799

800800
return 0;
801801
}
802-
EXPORT_SYMBOL(gnttab_alloc_pages);
802+
EXPORT_SYMBOL_GPL(gnttab_alloc_pages);
803803

804804
/**
805805
* gnttab_free_pages - free pages allocated by gnttab_alloc_pages()
@@ -820,7 +820,7 @@ void gnttab_free_pages(int nr_pages, struct page **pages)
820820
}
821821
free_xenballooned_pages(nr_pages, pages);
822822
}
823-
EXPORT_SYMBOL(gnttab_free_pages);
823+
EXPORT_SYMBOL_GPL(gnttab_free_pages);
824824

825825
/* Handling of paged out grant targets (GNTST_eagain) */
826826
#define MAX_DELAY 256

0 commit comments

Comments
 (0)