Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp959284pxb; Sat, 17 Apr 2021 02:07:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFgyER9FTuaoWrepj1AG7iUiimErw4SPzflwHcaYaoDZ6DjTfzDC4Dxfq7y9K5NQ+csPTK X-Received: by 2002:a17:902:8544:b029:ec:8b6b:d98f with SMTP id d4-20020a1709028544b02900ec8b6bd98fmr3011399plo.68.1618650477377; Sat, 17 Apr 2021 02:07:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618650477; cv=none; d=google.com; s=arc-20160816; b=UeWam2SBA7WVY2xnkDKzmRPXGh0W8qo6uTNFzJg2WHkttCdgsOCt1dUwfqsSOzl/Fc iX6PYr7XkrJzMipgbfbgp3ew1yB3OXiAZdVLuKRkBaQm7lgQ9/f+v820/iEDQUs8BmB9 mrFV5GuDhFIDv7Q0EPRayR3mHJmJr7j5m5iwU5YXz3qchYvNnIkInPMWTOamSfZb6PPH ELmR/6VyE1IxUeXro8HUR/n3sOiVgvSf/EIxHTdsHQEn1jn2atgCH+icBkC8Y+MnVv9i P8yr4FjXjCkkYDBRFiYXQfV8kneg5Dhh1BeZ6I+H8di6+BgS0RHo+006a41IcZhoiiXK d3xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date; bh=Xj5oJcUQPD5pyHCp3WcQhunu76GinuTv9UfdscCiI1M=; b=hpuAnoFChccUuvbJAOykJPLyuN6bEKjHro6etvGEf1qrmJwjH+pVh8NLegiyU4I00O nM2AZxVQzUOmqhFd0SGvz/TtIlHFubkYRvqLeaiT/YAO6FHCw08T/UeZea+pY6ZjinWO dhlg0vK+Kwn3K4pJOc8edKdBRWNdN5Ejfl0xufPPI0N6UdtXuPtkZbek94sR+o2ZSmzq +Rup/wengNvp1ZuEpuUWIsxQEjlKtYIkYUX2H5qFOkGnvIs2rQPfVcTF46E/xgrfrP5n j1ZTAUw0YPyTdQQCE443EXYX9kaItNWLg8Ef1VyyOlAt8mjEIBMQVwcN3e1pN6o+s+Dg MpOA== 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nk1si9209795pjb.106.2021.04.17.02.07.44; Sat, 17 Apr 2021 02:07:57 -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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235774AbhDQJF6 (ORCPT + 99 others); Sat, 17 Apr 2021 05:05:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:37132 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229870AbhDQJF5 (ORCPT ); Sat, 17 Apr 2021 05:05:57 -0400 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 89C0061152; Sat, 17 Apr 2021 09:05:31 +0000 (UTC) Received: from 78.163-31-62.static.virginmediabusiness.co.uk ([62.31.163.78] helo=wait-a-minute.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1lXgtN-00814k-E1; Sat, 17 Apr 2021 10:05:29 +0100 Date: Sat, 17 Apr 2021 10:05:28 +0100 Message-ID: <87wnt1s2lj.wl-maz@kernel.org> From: Marc Zyngier To: Zenghui Yu Cc: , , , , , , , , , , , , , , , , , , , Subject: Re: [PATCH v19 7/7] ptp: arm/arm64: Enable ptp_kvm for arm/arm64 In-Reply-To: References: <20210330145430.996981-1-maz@kernel.org> <20210330145430.996981-8-maz@kernel.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 62.31.163.78 X-SA-Exim-Rcpt-To: yuzenghui@huawei.com, netdev@vger.kernel.org, yangbo.lu@nxp.com, john.stultz@linaro.org, tglx@linutronix.de, pbonzini@redhat.com, seanjc@google.com, richardcochran@gmail.com, Mark.Rutland@arm.com, will@kernel.org, suzuki.poulose@arm.com, Andre.Przywara@arm.com, steven.price@arm.com, lorenzo.pieralisi@arm.com, sudeep.holla@arm.com, justin.he@arm.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@android.com, kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 17 Apr 2021 09:42:37 +0100, Zenghui Yu wrote: > > 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; Fixed in 300bb1fe7671, as previously reported by Dan Carpenter in [1]. Thanks, M. https://lore.kernel.org/r/20210331043704.GG2065@kadam -- Without deviation from the norm, progress is not possible.