[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <d85fc46b-2076-ee0b-ac73-f7a3f393d87f@huawei.com>
Date: Sat, 17 Apr 2021 16:42:37 +0800
From: Zenghui Yu <yuzenghui@...wei.com>
To: Marc Zyngier <maz@...nel.org>
CC: <netdev@...r.kernel.org>, <yangbo.lu@....com>,
<john.stultz@...aro.org>, <tglx@...utronix.de>,
<pbonzini@...hat.com>, <seanjc@...gle.com>,
<richardcochran@...il.com>, <Mark.Rutland@....com>,
<will@...nel.org>, <suzuki.poulose@....com>,
<Andre.Przywara@....com>, <steven.price@....com>,
<lorenzo.pieralisi@....com>, <sudeep.holla@....com>,
<justin.he@....com>, <kvm@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <kernel-team@...roid.com>,
<kvmarm@...ts.cs.columbia.edu>,
<linux-arm-kernel@...ts.infradead.org>
Subject: Re: [PATCH v19 7/7] ptp: arm/arm64: Enable ptp_kvm for arm/arm64
On 2021/3/30 22:54, Marc Zyngier wrote:
> +int kvm_arch_ptp_init(void)
> +{
> + int ret;
> +
> + ret = kvm_arm_hyp_service_available(ARM_SMCCC_KVM_FUNC_PTP);
> + if (ret <= 0)
kvm_arm_hyp_service_available() returns boolean. Maybe write as ?
bool ret;
ret = kvm_arm_hyp_service_available();
if (!ret)
return -ENODEV;
> + return -EOPNOTSUPP;
> +
> + return 0;
> +}
Powered by blists - more mailing lists