Skip to content

Commit

Permalink
xen/grant-table: Export gnttab_{alloc|free}_pages as GPL
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Oleksandr Andrushchenko authored and jgross1 committed Jun 19, 2018
1 parent 84c029a commit 6e3cc2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/xen/grant-table.c
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@ int gnttab_alloc_pages(int nr_pages, struct page **pages)

return 0;
}
EXPORT_SYMBOL(gnttab_alloc_pages);
EXPORT_SYMBOL_GPL(gnttab_alloc_pages);

/**
* gnttab_free_pages - free pages allocated by gnttab_alloc_pages()
Expand All @@ -820,7 +820,7 @@ void gnttab_free_pages(int nr_pages, struct page **pages)
}
free_xenballooned_pages(nr_pages, pages);
}
EXPORT_SYMBOL(gnttab_free_pages);
EXPORT_SYMBOL_GPL(gnttab_free_pages);

/* Handling of paged out grant targets (GNTST_eagain) */
#define MAX_DELAY 256
Expand Down

0 comments on commit 6e3cc2a

Please sign in to comment.