Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5099394yba; Wed, 8 May 2019 07:53:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqyco0WG+F3zJvTawsJv73v3MAoZWZfA0iBn3dvuvaQHkvulMYsz5sduoKXOZjRuPLcGC8Qk X-Received: by 2002:a17:902:108a:: with SMTP id c10mr41243736pla.48.1557327239182; Wed, 08 May 2019 07:53:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557327239; cv=none; d=google.com; s=arc-20160816; b=OphthC680+F8IYX7lrYSVc/mKUCgK2BjxBmzONn1j/mBo+TxOdld9jLy0N4Y7Ko5gM tRwforIrS+XzBJfOXbq87uRHvqxC6gyCUCdZtWC9eECLcxQuhYbIakem9qtwfmbyjqS0 Z3X/vjb3ToLY8ZNB6W8N8BSlV7wd1myFxkDiYzp8QXMEMi6ZhgSVLVmSnTM5hP8+9hEt a7qx4L6LtUaLDpRUXAFCYsav5mc5iWtzbMs2wbsHsAm46UbUZyMGLPKMPXwLLxPXdshK 6eN/N5mdenisUpb3l20FzNQKubWD51nbidsdj7Fj3Svwee7jZGbjUouJiyTgkIzgVPEG 1y9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=hzud1pZzk11Z4MTkeEFL/myfLNNdwcv2ATalXrKplz0=; b=rkMMRaNpwtGbYgJLTV9crr5BeRnx4M8odcJ+R1v7o4rRHiAEvOyrhGBW5BgQOyQZKQ Jd+O5kOdYPNd7AhbHSu7RWh6yAM1XoYupn9kdu5WKjN/ky+aZ7LH9fxo68DsP6KW3s/5 KCCgDaFQUdPIK9oFOPocHhYdNUKgpZpCADhv73hRxLTJ7VtB8iyuubLKqdlLNR4YvVCU J64l9sR8qN+Usr47r0Wnj/r6jAwG7mjs8xkUEE8pKlBCzb/pa7yjEvV1CZWxUvBnG+/X s7wuOBQ6JhnItiwzB0LIZ+NIX9pXeKLuJjUAMryGJXTbmD6ItEDABQ2yD+vj4WNIrVAx W6fA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h185si24068297pfc.241.2019.05.08.07.53.43; Wed, 08 May 2019 07:53:59 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727964AbfEHOvB (ORCPT + 99 others); Wed, 8 May 2019 10:51:01 -0400 Received: from mga06.intel.com ([134.134.136.31]:57649 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728251AbfEHOoo (ORCPT ); Wed, 8 May 2019 10:44:44 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 May 2019 07:44:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,446,1549958400"; d="scan'208";a="169656539" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga002.fm.intel.com with ESMTP; 08 May 2019 07:44:39 -0700 Received: by black.fi.intel.com (Postfix, from userid 1000) id AF1AFA17; Wed, 8 May 2019 17:44:29 +0300 (EEST) From: "Kirill A. Shutemov" To: Andrew Morton , x86@kernel.org, Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Borislav Petkov , Peter Zijlstra , Andy Lutomirski , David Howells Cc: Kees Cook , Dave Hansen , Kai Huang , Jacob Pan , Alison Schofield , linux-mm@kvack.org, kvm@vger.kernel.org, keyrings@vger.kernel.org, linux-kernel@vger.kernel.org, "Kirill A. Shutemov" Subject: [PATCH, RFC 20/62] mm/page_ext: Export lookup_page_ext() symbol Date: Wed, 8 May 2019 17:43:40 +0300 Message-Id: <20190508144422.13171-21-kirill.shutemov@linux.intel.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190508144422.13171-1-kirill.shutemov@linux.intel.com> References: <20190508144422.13171-1-kirill.shutemov@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org page_keyid() is inline funcation that uses lookup_page_ext(). KVM is going to use page_keyid() and since KVM can be built as a module lookup_page_ext() has to be exported. Signed-off-by: Kirill A. Shutemov --- mm/page_ext.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mm/page_ext.c b/mm/page_ext.c index 1af8b82087f2..91e4e87f6e41 100644 --- a/mm/page_ext.c +++ b/mm/page_ext.c @@ -142,6 +142,7 @@ struct page_ext *lookup_page_ext(const struct page *page) MAX_ORDER_NR_PAGES); return get_entry(base, index); } +EXPORT_SYMBOL_GPL(lookup_page_ext); static int __init alloc_node_page_ext(int nid) { @@ -212,6 +213,7 @@ struct page_ext *lookup_page_ext(const struct page *page) return NULL; return get_entry(section->page_ext, pfn); } +EXPORT_SYMBOL_GPL(lookup_page_ext); static void *__meminit alloc_page_ext(size_t size, int nid) { -- 2.20.1