Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5358960imm; Tue, 12 Jun 2018 06:46:16 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIDf1xJsTUip9Icd1luzORUrKhgOhfuNKSu/5QdC0EjfkC+fMPVpeES9pHjy5CUSBjAMuSC X-Received: by 2002:a17:902:e10f:: with SMTP id cc15-v6mr543285plb.100.1528811176551; Tue, 12 Jun 2018 06:46:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528811176; cv=none; d=google.com; s=arc-20160816; b=KTheR6sQJ5nA2sqOHlbv0GraoPkXy7ONRCkEULrw5Tmz1A8Xvdrmi0+mqyufnwORnP ZjZH7keq1MKmAgeZtbwbNC2n9mpHU/VQOSJWNunb/FZYEZGsI6TEomcNGiPMRDatohRF b9MgjTZddfBS9cJePF3Ft5/EJU3EuygmlTbEd/uPu9lrWmpph/Ao1r/EBw878SjVCp4J t+cdQV68ZJXQFu3OVuS7AFKKHxtemIJ1vvTrMAQxKYHhZSiOJoJG6s8E3Twm3yHghHFv su6kJ8n0l2Dh0OpX8ewvy2zLBFM4ooA7n0AjLq8AewuOzKu6Ffku/QmNHGTmFVjinpDg 9kLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=dhkkTlp2qwFS5yPkjU3sYNdZxOZni/6Y3AJB2+5XVs0=; b=wU7kbey2AToDiZr7M56pFdwDuHiAX1j9DYwAEvzm8+Kf9nB2e4TMWnOVyKipRVwj+o fBH7992H/aym4cpxQBNNgv9SlPBfcrRXP+Z27531fLbhj1Pd9xsEltSUZWyIVWYsCViB YU3MagDtER4+hOyi/XfUovC+JNBCXdEp6JcxxEx8BSqOw4T/e3CfP+w+vNG7aeQHyADC gdbG/6lnPPjCEd3473J1jF3aCx95Bb79dLNCOZqxWqBbzzsC9/kRsCoyw452+MzgyN1l v/VnQh5lZVBFv9NpD6k8NLRk3Tu3rbEEVGZo+6plFPicv+aoaxGOApl5/rQGfNwRDbYX nWlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PvjThtgI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e11-v6si159433pgt.63.2018.06.12.06.46.02; Tue, 12 Jun 2018 06:46:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PvjThtgI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933757AbeFLNmP (ORCPT + 99 others); Tue, 12 Jun 2018 09:42:15 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:42530 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933203AbeFLNmM (ORCPT ); Tue, 12 Jun 2018 09:42:12 -0400 Received: by mail-lf0-f67.google.com with SMTP id v135-v6so36086309lfa.9; Tue, 12 Jun 2018 06:42:11 -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=dhkkTlp2qwFS5yPkjU3sYNdZxOZni/6Y3AJB2+5XVs0=; b=PvjThtgIUjk9nWYLTg6DKgh5LccNkiQjOCmVvRR8M3oDWdMcXLXMDynX3fpZRl1hmt 9RezOdOH9OwUbjlQh5hxavaGVtmjkVvEiVgTIZP/5tTRuP83RtPv1ZsNUpgHHkihPAVd x8Nz2qlT3vKcpOI7z1wIPayUHMU93TTlXfsvDDJADPNRAYqWPUtGg36I1Hho32zkmIWe gO1lBiE8UP5lbc4Fk/HJVQWkLgX7ewRD+FqtO2BRi5pEk2Pp8S64s3tD4PiO/GKehw6+ iiUntsaHbVi5Uwe0HowCxfzDfBVmTi9QJIResT+WPYxv67TfDpeQsNOY4n0nZ2QMWbF6 dLJQ== 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=dhkkTlp2qwFS5yPkjU3sYNdZxOZni/6Y3AJB2+5XVs0=; b=sIAztr4jiKjypBqEdfPJrkBx064m+eqN2KXsIWdl3lIJYkXELjzAS2xvUR4m3C/Q7v v3Y/ENANCk0HqONMbJmlTtUiFkYmog+XgqyEH1NQNoSFl/fGLJ3RgozmTv3PvLO8pH0A 3C8DIHJweZNuWkgOE2ladcsSZRDO0uJrfHKPK8QwhJZ0kLsrQYbmn5T2vgMmrmTkP2R7 VftYhImM1elBh0in5ira8pcofIxtd8qB1G5S79guEh737qlPOCR+wsiZ7aM7n5P3FZLQ A+4RcchrmDwS9XdyNShBAftOcghV+7eghGUWgObb7G/GnmbjfMfD8BLd/xGH4f+WW6z5 FLWg== X-Gm-Message-State: APt69E2RcGq+Jf2PckeKQ0iw/hyM17chqJiILiPHEO4ZpDEn9fRLD0mk p/7U4osl+2Yniuk/88aQX7I= X-Received: by 2002:a2e:8590:: with SMTP id b16-v6mr277600lji.131.1528810930470; Tue, 12 Jun 2018 06:42:10 -0700 (PDT) Received: from a2k-HP-ProDesk-600-G2-SFF.kyiv.epam.com (ll-74.141.223.85.sovam.net.ua. [85.223.141.74]) by smtp.gmail.com with ESMTPSA id x18-v6sm46692ljh.63.2018.06.12.06.42.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 12 Jun 2018 06:42:09 -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 v3 1/9] xen/grant-table: Export gnttab_{alloc|free}_pages as GPL Date: Tue, 12 Jun 2018 16:41:52 +0300 Message-Id: <20180612134200.17456-2-andr2000@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180612134200.17456-1-andr2000@gmail.com> References: <20180612134200.17456-1-andr2000@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- 2.17.1