From patchwork Fri Jun 1 11:41:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksandr Andrushchenko X-Patchwork-Id: 10443167 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BC0F3603D7 for ; Fri, 1 Jun 2018 11:44:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AC7B527CF9 for ; Fri, 1 Jun 2018 11:44:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A122F28D35; Fri, 1 Jun 2018 11:44:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 52AC827CF9 for ; Fri, 1 Jun 2018 11:44:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751835AbeFALoW (ORCPT ); Fri, 1 Jun 2018 07:44:22 -0400 Received: from mail-lf0-f66.google.com ([209.85.215.66]:36303 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751693AbeFALlm (ORCPT ); Fri, 1 Jun 2018 07:41:42 -0400 Received: by mail-lf0-f66.google.com with SMTP id u4-v6so14378751lff.3; Fri, 01 Jun 2018 04:41:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=lcHWvUpR+Yuv2rtdBGz3AcjOEgYeip1tJ2L0TtLsurY=; b=Fx7QwKNtc1iHulLVVDkJhrhAk622zquCw7cIGrwIW7shVVG1rT5ESFws+EA5MSPupU YbI8i1zSDpsRY28xFCC/9HgmgTotItvqLfXsa2kcQxn+wc2F/jwCX7QmXHlTUn01x5Ji lwSWB69hJxEiweglIsOHc1zgcXSAu6oWF/iKLoUl5Dzh0QaHLo9TrPMZMdKC7xA8xNRi sJJgp9ztrAtve1uORR+9b0QMQUHqZYIet6qiOnCxH0C1CM3bgF757/iKIahdbUIOWyFV tGHy3aDzr6v4y+3gzYyfDnoYsHru2E5E2BL9rhfH9n5XD1zBg5Esuq9yGY8glQ3XTQSA 2Jbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=lcHWvUpR+Yuv2rtdBGz3AcjOEgYeip1tJ2L0TtLsurY=; b=Ju2qsRGh1QZ6AQ7b6n3i456vXB14vHPiZWHmKpD/inCOzvuPnvpbrY+Y3ZTebhWULJ FkMiLs2tBHyXR4HktYFhW+neCHVwdK/Yy1XUGobLhO82iVxDOuavNCwDYx03B02t/JX6 wFGC70bMCOjHmbOOB7Vl7bWmB0cXEXW8KgLXlPWAaJRwCT2oAdOD//1EzutgxKvG4bWZ sEx3IixlV89RPA7q7fT1gqQPMG6uhRpmrd7Pw88uPitLQ61JeSkwNL/M+O9WCbBdWb20 +8UmJH97z7nbLw+/Nkb6Ox3NisBW/aIhpCp8+RwojqeJmxMTi1nj7OLiiLPObR0iP5wd VS8Q== X-Gm-Message-State: ALKqPwc9TlSUhj66yd0ggiwFv2/ar26/I+VmcDDfJ+3HOm2eNdjZCP4I kDpBaWLL8JU87/vIrZkkRhs= X-Google-Smtp-Source: ADUXVKKQejw6CmdzFB4vPBitKleJKxZDiUXdcDzzNe0geJLYUQA23OXr3tXMMCbkcFaxCTrYmmR6kg== X-Received: by 2002:a2e:9f06:: with SMTP id u6-v6mr7738779ljk.42.1527853301197; Fri, 01 Jun 2018 04:41:41 -0700 (PDT) Received: from a2k-HP-ProDesk-600-G2-SFF.kyiv.epam.com (ll-51.209.223.85.sovam.net.ua. [85.223.209.51]) by smtp.gmail.com with ESMTPSA id c6-v6sm8066280lja.22.2018.06.01.04.41.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 01 Jun 2018 04:41:40 -0700 (PDT) From: Oleksandr Andrushchenko To: xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-media@vger.kernel.org, jgross@suse.com, boris.ostrovsky@oracle.com, konrad.wilk@oracle.com Cc: daniel.vetter@intel.com, andr2000@gmail.com, dongwon.kim@intel.com, matthew.d.roper@intel.com, Oleksandr Andrushchenko Subject: [PATCH v2 1/9] xen/grant-table: Export gnttab_{alloc|free}_pages as GPL Date: Fri, 1 Jun 2018 14:41:24 +0300 Message-Id: <20180601114132.22596-2-andr2000@gmail.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180601114132.22596-1-andr2000@gmail.com> References: <20180601114132.22596-1-andr2000@gmail.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Oleksandr Andrushchenko 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 Reviewed-by: Juergen Gross --- 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