Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp491054imm; Fri, 1 Jun 2018 04:45:51 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK230B7YdFy1OvYdfoc4wEgodOS8WRlE/O1W8SQOV0I61sRv4jU4JNOW4KJ29xZYb/EMpBU X-Received: by 2002:a63:43c6:: with SMTP id q189-v6mr8900107pga.123.1527853551364; Fri, 01 Jun 2018 04:45:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527853551; cv=none; d=google.com; s=arc-20160816; b=hEhx4ESxOnaYro5z+Yn3vgnuLTum2Qg8fRN9aMioUSvTCVEsG1vRrZmXsyr7jb0Cfj WwcWWPLGeGpXbzePQ99F5iA2x3QlJ2txeJMbTeK0+LANHoC+dlgxjDKXXt0feRHCw6+b 3DHx23MlMqjUqn3DpBwgi1xoMeBdyun5n2z78Y28KDf+mbeER7B5DAmd6bJ+/HaXmvg8 GEDyjMnOg26DBNrEoMJBRTnegezDVXdR03/ZbS97cjIKOvx6gJMGvU0MSsP6LDO8/Wew qh9dJKnZ6Njao1eZKKfiIbUuPokJg64AGcdFtnr/WoA4bMmWec/+qpwd0Z0IMrAuIP1J UYYg== 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=lcHWvUpR+Yuv2rtdBGz3AcjOEgYeip1tJ2L0TtLsurY=; b=Ql5ngTdd7q9Ya3bYyLoBtluyqjykBLu4BUBikqgJSbC4sd13HHK+6I8Yt6/1JUqYNm aCEz92CfUiGI7PXyk4IzynlSdMVN/06OUXUg5DVeX8NiCkkEEeX45SJqx/M4mpooK7pq OhG1RVA8e4FrhEPVbBn5z6kcSRRCCv3neS9WLAdDJyc4EmHr2TOUatbwFz6f8oY/JW0A w8ZcMFoek5dz/di6eQuBjC5vt/Z0UJbJKR4ABXTOqbtkn6ZFP+F6AjCNwqGtZFbIfD0b nMmDYEuc0WwUk8bRYPKDIrL/fGJ8BLrPzsX70ifeGNTK6UH6cdM5WaXV37neHmlSNz+4 Fwlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Fx7QwKNt; 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 c7-v6si6113330pfg.77.2018.06.01.04.45.36; Fri, 01 Jun 2018 04:45:51 -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=Fx7QwKNt; 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 S1752062AbeFALoX (ORCPT + 99 others); Fri, 1 Jun 2018 07:44:23 -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-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-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 --- 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