From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751824AbeAZSK2 (ORCPT ); Fri, 26 Jan 2018 13:10:28 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:51898 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750864AbeAZSK1 (ORCPT ); Fri, 26 Jan 2018 13:10:27 -0500 Subject: Re: [PATCH 03/14] arm/arm64: KVM: Consolidate the PSCI include files From: Marc Zyngier To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu Cc: Catalin Marinas , Will Deacon , Peter Maydell , Christoffer Dall , Lorenzo Pieralisi , Mark Rutland , Jon Masters References: <20180126142847.31240-1-marc.zyngier@arm.com> <20180126142847.31240-4-marc.zyngier@arm.com> Organization: ARM Ltd Message-ID: <94c9a057-cb41-a92a-aaca-8b8e95676a32@arm.com> Date: Fri, 26 Jan 2018 18:10:23 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <20180126142847.31240-4-marc.zyngier@arm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 26/01/18 14:28, 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. > > Signed-off-by: Marc Zyngier > --- > arch/arm/include/asm/psci.h | 25 ---------------------- > 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(+), 32 deletions(-) > delete mode 100644 arch/arm/include/asm/psci.h > rename arch/arm64/include/asm/kvm_psci.h => include/kvm/arm_psci.h (89%) > > diff --git a/arch/arm/include/asm/psci.h b/arch/arm/include/asm/psci.h > deleted file mode 100644 > index e1b825dfab23..000000000000 > --- a/arch/arm/include/asm/psci.h > +++ /dev/null > @@ -1,25 +0,0 @@ > -/* > - * 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. > - * > - * Copyright (C) 2012 ARM Limited > - */ > - > -#ifndef __ASM_ARM_PSCI_H > -#define __ASM_ARM_PSCI_H > - > -extern const struct smp_operations psci_smp_ops; > - > -#if defined(CONFIG_SMP) && defined(CONFIG_ARM_PSCI) > -bool psci_smp_available(void); > -#else > -static inline bool psci_smp_available(void) { return false; } > -#endif > - > -#endif /* __ASM_ARM_PSCI_H */ Doh. I deleted the wrong file. That was supposed to be kvm_psci.h, and not psci.h. Not sure how I managed that one... M. -- Jazz is not dead. It just smells funny...