lkml.org 
[lkml]   [2018]   [Jun]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v2 1/9] xen/grant-table: Export gnttab_{alloc|free}_pages as GPL
    Date
    From: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>

    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>
    ---
    drivers/xen/grant-table.c | 4 ++--
    1 file 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)

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

    /**
    * gnttab_free_pages - free pages allocated by gnttab_alloc_pages()
    @@ -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
    --
    2.17.0
    \
     
     \ /
      Last update: 2018-06-01 13:45    [W:2.772 / U:0.132 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site