Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2408191ybz; Sun, 19 Apr 2020 00:32:21 -0700 (PDT) X-Google-Smtp-Source: APiQypLz+2daL3JjlJ02ERZGYT9VOI6FeUHOSduJAl3vYIC/rUwlXn07Zfpc5lOfMYeD2ntE298q X-Received: by 2002:a17:906:f251:: with SMTP id gy17mr9937396ejb.369.1587281541707; Sun, 19 Apr 2020 00:32:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587281541; cv=none; d=google.com; s=arc-20160816; b=PumN2gTzBTlhh0ruMZwUY+Ek/67hy7b7MBjDCYy523MlmjtqSZ36AL0GhEXgY+1cQp svUJ8f08UlUaqtx+2S9HMgT2NE/YQa0Zb1OI9IR/kKNPM+V6BKNXuxtZNaAdiUu7At7r JQkiW11A9EqDmFDVoYqa05PBTrdsypZz6JZMVOX7VzKarvx1mnBicfJSctMG8rWJgho3 /4X2XeZBZyA5zi22KVTRyyfyq1JBi6rev/GnSGsxCNwKOemZ5hjf7eQ7hS7E2IVCkohJ ROCHMgcmciWeGswJck/+VNRGAR3lUKaRZ6Os0Xbah5w15sz4FEHtEIMO5ONWZx8qqaqG m8bA== 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 :message-id:date:subject:cc:to:from; bh=C78PIOeejpP6K9bX0JzngAnN9Z9g5WUPr3kETYdKw+s=; b=goBTV1zwMF1zWAlbCoOLgsNDhqIhvwRLYe9fJe4QZFTjAPc++8Cma24C6Qem3MyfIa sYDfv4OSr5qB0eaEd/YINGkBiFSMa6DyUC7AjsjJ38gsgrFlqRqBU9dBmWf7/ZVgrYM3 jfqeZ4aWBgoTeTzhUnhM/q08gBfUx8f90dNlTd75j/jGNDBhwBlnn8H/SAJN3tWJbV7M 6ska/o08xHHCuxk7vFDRP8gSn9hAr6CfhrkkIPiZC8FCyDBWFaSY5X/IOONwzi8Ltadc evuoZ7jNoo+EXbiKFaPbC/Iaa97Tg+4MjMmmO0VywL5oQiuUjleuJXxhVPDyqtpNjglS h7cQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x68si15027627ede.282.2020.04.19.00.31.53; Sun, 19 Apr 2020 00:32:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725959AbgDSHa4 (ORCPT + 99 others); Sun, 19 Apr 2020 03:30:56 -0400 Received: from out30-132.freemail.mail.aliyun.com ([115.124.30.132]:35555 "EHLO out30-132.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725446AbgDSHa4 (ORCPT ); Sun, 19 Apr 2020 03:30:56 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R131e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e01358;MF=tianjia.zhang@linux.alibaba.com;NM=1;PH=DS;RN=37;SR=0;TI=SMTPD_---0TvywI99_1587281447; Received: from localhost(mailfrom:tianjia.zhang@linux.alibaba.com fp:SMTPD_---0TvywI99_1587281447) by smtp.aliyun-inc.com(127.0.0.1); Sun, 19 Apr 2020 15:30:48 +0800 From: Tianjia Zhang To: pbonzini@redhat.com, tsbogend@alpha.franken.de, paulus@ozlabs.org, mpe@ellerman.id.au, benh@kernel.crashing.org, borntraeger@de.ibm.com, frankja@linux.ibm.com, david@redhat.com, cohuck@redhat.com, heiko.carstens@de.ibm.com, gor@linux.ibm.com, sean.j.christopherson@intel.com, vkuznets@redhat.com, wanpengli@tencent.com, jmattson@google.com, joro@8bytes.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, x86@kernel.org, hpa@zytor.com, maz@kernel.org, james.morse@arm.com, julien.thierry.kdev@gmail.com, suzuki.poulose@arm.com, christoffer.dall@arm.com, peterx@redhat.com, thuth@redhat.com Cc: kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, linux-mips@vger.kernel.org, kvm-ppc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, tianjia.zhang@linux.alibaba.com Subject: [PATCH] KVM: X86: Fix compile error in svm/sev.c Date: Sun, 19 Apr 2020 15:30:47 +0800 Message-Id: <20200419073047.14413-1-tianjia.zhang@linux.alibaba.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The compiler reported the following compilation errors: arch/x86/kvm/svm/sev.c: In function ‘sev_pin_memory’: arch/x86/kvm/svm/sev.c:361:3: error: implicit declaration of function ‘release_pages’ [-Werror=implicit-function-declaration] release_pages(pages, npinned); ^~~~~~~~~~~~~ The reason is that the 'pagemap.h' header file is not included. Signed-off-by: Tianjia Zhang --- arch/x86/kvm/svm/sev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/kvm/svm/sev.c b/arch/x86/kvm/svm/sev.c index 0e3fc311d7da..3ef99e87c1db 100644 --- a/arch/x86/kvm/svm/sev.c +++ b/arch/x86/kvm/svm/sev.c @@ -13,6 +13,7 @@ #include #include #include +#include #include "x86.h" #include "svm.h" -- 2.17.1