Received: by 10.223.176.5 with SMTP id f5csp687804wra; Fri, 2 Feb 2018 04:35:58 -0800 (PST) X-Google-Smtp-Source: AH8x2241WUr5br3ZMM2JH9swJ3x8tuBlqMr0CK6tIYuXM+c6GAL6W+LChvcMSmta+ZjHUgjSTry+ X-Received: by 10.99.127.78 with SMTP id p14mr1362926pgn.346.1517574958049; Fri, 02 Feb 2018 04:35:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517574958; cv=none; d=google.com; s=arc-20160816; b=u0tmdCSl8NlsEmFEryXe7GjdEFXKyhFWxQszDLPPFmwVx/cASp+kjv+SlwXr9wM5YT lqueKkZivbXrlK21oo3rlQG66cmVfUcsOTm48foHNyC0fg+T2wn9gebEhT5vLDL5NPnX 0koPXMnA1VBB/9mmQQ6x/8MHDLmtD4ukTaL2o1Fkb2hG8fa/Fnmm4MpgKB8syglkc1RI oX150INJ/ZPdnQejevCrZ8v9s2X4lKQ4ArrEOstt1ibqOo2uQlNsHFmF/gEfXccvKdMi DKl/e51aBPLqNsFptH/N3MfBtst2YiesffXK+w3Ro26IQ9WcgzYY2/4JPKBT+Gz4QKOA XsvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=mnM60y6M3vn2x9dguH+tOdODjsWM43Gm2yQn12C/550=; b=yCEv7HWF+On0gn3CDoiG7Lu0H+cWBr6+8yxEUgyCRL+AOgy/n+MRomQW1ZztgcR+Hn 18iuXnRllK9TJhCoKh/QWSxrEOv+s82lPgx3j1yN3MxshPnG08ycmFW+JE5YWfVH26D1 DEtijm/VDmEyapkSmQ/8JGRy7xcgsILcCvUb96FTSOVBuxz0haDbqfxcqwkD+QWSGQkL JqEvD0+ZjtJyX0+out9nolMJ6b2Aa/8dWOq+gd9lfp8BrpjwZn9fhSearwopFTTqbkDZ 1Lkf23tt/w1G8e26AqoyUdHe1hh1w6XHgFDbBTbEYpwc48fth/OGfclT72ah6oVuDC6e teLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LHLTQTEI; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p2-v6si1821145pll.733.2018.02.02.04.35.43; Fri, 02 Feb 2018 04:35:58 -0800 (PST) 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=@linaro.org header.s=google header.b=LHLTQTEI; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751914AbeBBMd0 (ORCPT + 99 others); Fri, 2 Feb 2018 07:33:26 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:36836 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751853AbeBBMdM (ORCPT ); Fri, 2 Feb 2018 07:33:12 -0500 Received: by mail-wm0-f67.google.com with SMTP id f3so12083818wmc.1 for ; Fri, 02 Feb 2018 04:33:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=mnM60y6M3vn2x9dguH+tOdODjsWM43Gm2yQn12C/550=; b=LHLTQTEIdbrAo83CF4erGnR1LJB9jjDAlycw4LL5Ul+kpYTCpOHmjmSXuvtIihznsj Oxivuu0eWCu46PizwIaoHq3gZ4FwPbKAqQrds12qkX52eH55jILYlWX1f+Rw98WoJUs7 1oo9IcYm3cttzlnW3w4evADcUChcK/fCFFrgw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=mnM60y6M3vn2x9dguH+tOdODjsWM43Gm2yQn12C/550=; b=LvG8xPvXsgQ+C8y7o+ReTRA1qXgVlpVo0z0NHIjwN+aW9d2OZBnRLnVRICf01ltIOd b/EavpFtd3jsGQuHWhRRcSejkD5/+aFqbDKeLX+TTLqe4PjvQcwA5c6JBhkvNjAOeJhC EhX3gfdfMUgje8JhVXtj5RQD4ScXiS9zpnv5xKFr5vZ9d4XxUuXTikAIiQlMY8r9bw9Q u32xzOfQfTNj2SvtHfnYA4x7IsYP958162vO32uwSdI29i+iBgCZBa8rYTynkOUVlfbX pw2BVgaVTyS9e3TWsDTBKJ6CmG1yHM9G6ZhPqxNapCmyzy4V8wfRMbCMLhwS+0QHTb9B uYeA== X-Gm-Message-State: AKwxyteq9PZj5gU/B3zsxoXXkwRdwByrgoDGyQNKibfS8POPNBf7SFl6 Ic3mxwOBIrVD6mF2Eg8PrA/uvA== X-Received: by 10.80.136.85 with SMTP id c21mr41066911edc.259.1517574790731; Fri, 02 Feb 2018 04:33:10 -0800 (PST) Received: from localhost (x50d2404e.cust.hiper.dk. [80.210.64.78]) by smtp.gmail.com with ESMTPSA id g30sm1626883edb.48.2018.02.02.04.33.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Feb 2018 04:33:09 -0800 (PST) Date: Fri, 2 Feb 2018 13:33:09 +0100 From: Christoffer Dall To: Marc Zyngier Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, Catalin Marinas , Will Deacon , Peter Maydell , Lorenzo Pieralisi , Mark Rutland , Robin Murphy , Ard Biesheuvel , Andrew Jones , Hanjun Guo , Jayachandran C , Jon Masters , Russell King - ARM Linux Subject: Re: [PATCH v3 04/18] arm/arm64: KVM: Consolidate the PSCI include files Message-ID: <20180202123309.GG21802@cbox> References: <20180201114657.7323-1-marc.zyngier@arm.com> <20180201114657.7323-5-marc.zyngier@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180201114657.7323-5-marc.zyngier@arm.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 01, 2018 at 11:46:43AM +0000, Marc Zyngier wrote: > As we're about to update the PSCI support, and because I'm lazy, > let's move the PSCI include file to include/kvm so that both > ARM architectures can find it. > Acked-by: Christoffer Dall > Signed-off-by: Marc Zyngier > --- > arch/arm/include/asm/kvm_psci.h | 27 ---------------------- > arch/arm/kvm/handle_exit.c | 2 +- > arch/arm64/kvm/handle_exit.c | 3 ++- > .../asm/kvm_psci.h => include/kvm/arm_psci.h | 6 ++--- > virt/kvm/arm/arm.c | 2 +- > virt/kvm/arm/psci.c | 3 ++- > 6 files changed, 9 insertions(+), 34 deletions(-) > delete mode 100644 arch/arm/include/asm/kvm_psci.h > rename arch/arm64/include/asm/kvm_psci.h => include/kvm/arm_psci.h (89%) > > diff --git a/arch/arm/include/asm/kvm_psci.h b/arch/arm/include/asm/kvm_psci.h > deleted file mode 100644 > index 6bda945d31fa..000000000000 > --- a/arch/arm/include/asm/kvm_psci.h > +++ /dev/null > @@ -1,27 +0,0 @@ > -/* > - * Copyright (C) 2012 - ARM Ltd > - * Author: Marc Zyngier > - * > - * This program is free software; you can redistribute it and/or modify > - * it under the terms of the GNU General Public License version 2 as > - * published by the Free Software Foundation. > - * > - * This program is distributed in the hope that it will be useful, > - * but WITHOUT ANY WARRANTY; without even the implied warranty of > - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > - * GNU General Public License for more details. > - * > - * You should have received a copy of the GNU General Public License > - * along with this program. If not, see . > - */ > - > -#ifndef __ARM_KVM_PSCI_H__ > -#define __ARM_KVM_PSCI_H__ > - > -#define KVM_ARM_PSCI_0_1 1 > -#define KVM_ARM_PSCI_0_2 2 > - > -int kvm_psci_version(struct kvm_vcpu *vcpu); > -int kvm_psci_call(struct kvm_vcpu *vcpu); > - > -#endif /* __ARM_KVM_PSCI_H__ */ > diff --git a/arch/arm/kvm/handle_exit.c b/arch/arm/kvm/handle_exit.c > index a4bf0f6f024a..230ae4079108 100644 > --- a/arch/arm/kvm/handle_exit.c > +++ b/arch/arm/kvm/handle_exit.c > @@ -21,7 +21,7 @@ > #include > #include > #include > -#include > +#include > #include > > #include "trace.h" > diff --git a/arch/arm64/kvm/handle_exit.c b/arch/arm64/kvm/handle_exit.c > index 5493bbefbd0d..588f910632a7 100644 > --- a/arch/arm64/kvm/handle_exit.c > +++ b/arch/arm64/kvm/handle_exit.c > @@ -22,13 +22,14 @@ > #include > #include > > +#include > + > #include > #include > #include > #include > #include > #include > -#include > #include > #include > > diff --git a/arch/arm64/include/asm/kvm_psci.h b/include/kvm/arm_psci.h > similarity index 89% > rename from arch/arm64/include/asm/kvm_psci.h > rename to include/kvm/arm_psci.h > index bc39e557c56c..2042bb909474 100644 > --- a/arch/arm64/include/asm/kvm_psci.h > +++ b/include/kvm/arm_psci.h > @@ -15,8 +15,8 @@ > * along with this program. If not, see . > */ > > -#ifndef __ARM64_KVM_PSCI_H__ > -#define __ARM64_KVM_PSCI_H__ > +#ifndef __KVM_ARM_PSCI_H__ > +#define __KVM_ARM_PSCI_H__ > > #define KVM_ARM_PSCI_0_1 1 > #define KVM_ARM_PSCI_0_2 2 > @@ -24,4 +24,4 @@ > int kvm_psci_version(struct kvm_vcpu *vcpu); > int kvm_psci_call(struct kvm_vcpu *vcpu); > > -#endif /* __ARM64_KVM_PSCI_H__ */ > +#endif /* __KVM_ARM_PSCI_H__ */ > diff --git a/virt/kvm/arm/arm.c b/virt/kvm/arm/arm.c > index 15bf026eb182..af3e98fc377e 100644 > --- a/virt/kvm/arm/arm.c > +++ b/virt/kvm/arm/arm.c > @@ -31,6 +31,7 @@ > #include > #include > #include > +#include > > #define CREATE_TRACE_POINTS > #include "trace.h" > @@ -46,7 +47,6 @@ > #include > #include > #include > -#include > #include > > #ifdef REQUIRES_VIRT > diff --git a/virt/kvm/arm/psci.c b/virt/kvm/arm/psci.c > index f1e363bab5e8..b322e46fd142 100644 > --- a/virt/kvm/arm/psci.c > +++ b/virt/kvm/arm/psci.c > @@ -21,9 +21,10 @@ > > #include > #include > -#include > #include > > +#include > + > #include > > /* > -- > 2.14.2 >