Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1559783pxj; Sat, 15 May 2021 20:01:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJybSKkFk8AbUwZGphtIxZxABab4T5NeloKUs9NrLVRkfwx4F/DHMdB7jgyYLwzREg0+kfbO X-Received: by 2002:a17:907:d14:: with SMTP id gn20mr18011809ejc.486.1621134104870; Sat, 15 May 2021 20:01:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621134104; cv=none; d=google.com; s=arc-20160816; b=GS04c2z0p9SKvCJEHHttp+Avh7sAVwKhyR9ArmQJN/DLPPQa1rtREptUrwWfMX2seV wNRNct13TyRLoI7OTN5bileZIsA90rpwF5yYhdF7sJMY8nPw1zZmOsyLQHdLJ0okFevf p6LdB5aE0mgIotVKY31hQFejS/IULtTosj0Z5f9x9BuaKeDylR4X9Ppce5q11BXs9pRI IgOJRWr6ZcTgV61jYclND3IrLJGS0J8FVl61fHPJBX3h2vWQ9bU/Kny1UuKdpcggfsMB tQ03nhLymcbLA6Yx4+eyqKL9EG3eIHhti+Ht9Fn3rJew3eO9ZWSUj+Rf6TxVVWdGrvXf ktIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=ziuBJAu+Mb9fTP75gEpK2txrCbMrczSXcZOBd9igvIg=; b=uINYhewuGUi/jWRL6BUbMA3Kvi1RvQ2iv7sg9RB37UQIchWuRkfCjjirmYcEFsXu7K IpoIj/ipSox+RsngNcxRdnfrgpQh+yqq5Lr5BOfTBcpR2m8/0NBSLEKifNAHEqRt5cHG 8H1+qfgBskg+2/9Tts5YP5FZ67vEqY0042rf5iq9fk0lgye1i5Bgn9Z5oZY7nxrfPIbG WqNczkCM9LVzxXweBTuMtb0MMomTHLHBrYB9N3JnqfvO4REnvaDUYbEX/2fAI0wn9Gzv cFFHidq0OE5GReea+yWowexac/6p3+HNRMVsBjHcf4SxSXHtMPs92gg+PChQq+gsP10s FqFw== 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 q17si9718145ejn.503.2021.05.15.20.01.21; Sat, 15 May 2021 20:01:44 -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 S232923AbhEOPv5 (ORCPT + 99 others); Sat, 15 May 2021 11:51:57 -0400 Received: from mail-wr1-f52.google.com ([209.85.221.52]:43718 "EHLO mail-wr1-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230204AbhEOPvz (ORCPT ); Sat, 15 May 2021 11:51:55 -0400 Received: by mail-wr1-f52.google.com with SMTP id s8so2032581wrw.10; Sat, 15 May 2021 08:50:41 -0700 (PDT) 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; bh=ziuBJAu+Mb9fTP75gEpK2txrCbMrczSXcZOBd9igvIg=; b=s/owaGyZe/LHhW5UBTxALRDbHrGdO7BA0Y/G0lHFrc6E+nQ8OmyU9Wdq3OKPN8YMoU nADTf1SOu6lNJBXY6LauQJx4vhmAsLCCFTcOYHA6yAezW+bE8dU+Wwmuk43GoeJMK4VB WeXdfc8KS3LYT/QW1VpgV5W/1KT0gvojARyGnvO+uqz4RkG2n5YH0vQE4lP3Pajo6CnK zD/IqNH9COsUYIXQC5fIaBqucowh9hUJxArMrg7QX8oofkBaIKO+TCDjXvumy0L/i1O7 tIlaIpl6nw3LwVmVo+B/fdcmVHXcQeFU3QjAiIeCoe3dVUvzSc0LcLylBJo9D/BzallJ qiBQ== X-Gm-Message-State: AOAM53090O8uqY9umKOkc/k6LBx2pV2sOay+vmZOIkt4elTsl9GPHe3w OCqQZ9cnI6BhRXUBmuLxIVE= X-Received: by 2002:a5d:4561:: with SMTP id a1mr15912532wrc.55.1621093841125; Sat, 15 May 2021 08:50:41 -0700 (PDT) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id k9sm7447863wmk.5.2021.05.15.08.50.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 May 2021 08:50:40 -0700 (PDT) Date: Sat, 15 May 2021 15:50:39 +0000 From: Wei Liu To: YueHaibing Cc: kys@microsoft.com, haiyangz@microsoft.com, sthemmin@microsoft.com, wei.liu@kernel.org, decui@microsoft.com, lkmlabelt@gmail.com, linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH -next] hv_utils: Fix passing zero to 'PTR_ERR' warning Message-ID: <20210515155039.pf3q2vpxhov5afdp@liuwe-devbox-debian-v2> References: <20210514070116.16800-1-yuehaibing@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210514070116.16800-1-yuehaibing@huawei.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 14, 2021 at 03:01:16PM +0800, YueHaibing wrote: > Sparse warn this: > > drivers/hv/hv_util.c:753 hv_timesync_init() warn: > passing zero to 'PTR_ERR' > > Use PTR_ERR_OR_ZERO instead of PTR_ERR to fix this. > > Signed-off-by: YueHaibing Applied to hyperv-next. Thanks.