Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp555104pxf; Wed, 17 Mar 2021 10:22:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwi5b4ihKDw6Aomkw1R4gpKJQnY5WEUA0mkgrxX9gKDo2JaH8S0SY+1EEEKt+QunRGCNoTE X-Received: by 2002:a17:906:dfce:: with SMTP id jt14mr36950763ejc.83.1616001755158; Wed, 17 Mar 2021 10:22:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616001755; cv=none; d=google.com; s=arc-20160816; b=HXEsWyVJGeAiwRCx4jYn7I/XPqkKlPQCeC8u3fW4mPGmvJNknFJKPXBAmBbmg/RbPY 24107c+lTlTV50kHarvDzNeer78VAMu95ByLW7O+0KbRdgUo2HJGGp1poYxw2J28PMjA mNPpbg5DPMuJ5CSPiCcFNCA5wIOvw5kCQ9e+y4VZ1RQMWnLPyWH1eo2/N1+WRmfu3lk/ 8RLCewsCT6j8MHYEPV6xa91rPTUpP7sqUs5M/ZoEARdCGiyO19wHX6XZ5LL5Rp0imADl vxYs53dBIgfGLqsStBVSbrUwLYnr8Q76l9H/S2gVPRe7ilVPMautqW/ZiH/kbfPmhLyw LUhw== 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:dkim-signature; bh=yPbmjoM0qgv8iKUll9Xu7C8bQAFVGFgpW2hdJ+GTI4w=; b=wMyzggzSLffX9m6FyYK3J3xQO0wUzVAt9J0//z2y6kLOq0Jq3ZvFi4Bye8CyegK+A1 h8VKL2qLWrrZ0e9uLGxfEflnic60BYp+fLsGi1YIlVoIwxyYnG9PltRjLDG/qw/GwSVc hOOgI5JnEsI46K5zsRV9qeDRwtlEdaDPPgx/YhIZTY2iEKyFOOh7x+Nj0lTsj6kkB0aX 2sI/DI9YOK2jKMSViHrVv5L46DA6QwWKDqLFbskar9IQMOVyYgdQIaGGfX0XEjd8Y2IC AdArnEga6B9wEMMS3UGW/XlbMYCe+g1Id8cxDShzlBt4yP+fXxncKDuZ6/qhrSctytYS q2Bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=FnVN9efg; 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=hpe.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l6si15124086ejo.624.2021.03.17.10.22.11; Wed, 17 Mar 2021 10:22:35 -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; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=FnVN9efg; 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=hpe.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232572AbhCQQfM (ORCPT + 99 others); Wed, 17 Mar 2021 12:35:12 -0400 Received: from mx0a-002e3701.pphosted.com ([148.163.147.86]:8206 "EHLO mx0a-002e3701.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232544AbhCQQfG (ORCPT ); Wed, 17 Mar 2021 12:35:06 -0400 Received: from pps.filterd (m0148663.ppops.net [127.0.0.1]) by mx0a-002e3701.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 12HEmhcD023067; Wed, 17 Mar 2021 14:53:11 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=pps0720; bh=yPbmjoM0qgv8iKUll9Xu7C8bQAFVGFgpW2hdJ+GTI4w=; b=FnVN9efgSyScEZSCjGZT8OFaf/AzJrSQzSBuFXNHiJAoKiIttnjJFrT7Vr3VFW6L4x9/ ytOPryJtFXjFhIo1oKBc34gzD4DZ+QO6VFB88Uhvg4OfTecqBepUA0oiyqeOgeDZN8PE DdNrMvnByeZzTtU8uDMIKmzICXr6Y1xNWyGecPA1p4n1g0Pwjp+fxvzbwSGzxZJLEr0j 2OLeuc0ibJ6KTVdC+UuUtzHGhHtlnI26VYczxo34K6NEBS2OLfsBhoNDZ7lYV0k8G8Ir qn6pXg6CujmZ8YwxiYzzAg+ey9ce58n+PP2ZeDJfTkhb9yRQiC+zFJ4wDG0upTTdNLTb KQ== Received: from g4t3426.houston.hpe.com (g4t3426.houston.hpe.com [15.241.140.75]) by mx0a-002e3701.pphosted.com with ESMTP id 37b0bb0c9w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 17 Mar 2021 14:53:11 +0000 Received: from g4t3433.houston.hpecorp.net (g4t3433.houston.hpecorp.net [16.208.49.245]) by g4t3426.houston.hpe.com (Postfix) with ESMTP id 0C02C6E; Wed, 17 Mar 2021 14:53:10 +0000 (UTC) Received: from swahl-home.5wahls.com (unknown [16.214.162.101]) by g4t3433.houston.hpecorp.net (Postfix) with ESMTP id 32AF346; Wed, 17 Mar 2021 14:53:10 +0000 (UTC) Date: Wed, 17 Mar 2021 09:53:09 -0500 From: Steve Wahl To: Yang Li Cc: robinmholt@gmail.com, steve.wahl@hpe.com, mike.travis@hpe.com, arnd@arndb.de, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] misc/sgi-xp: use NULL instead of using plain integer as pointer Message-ID: <20210317145309.GM1938704@swahl-home.5wahls.com> References: <1615885041-68750-1-git-send-email-yang.lee@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1615885041-68750-1-git-send-email-yang.lee@linux.alibaba.com> X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.369,18.0.761 definitions=2021-03-17_07:2021-03-17,2021-03-17 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 malwarescore=0 suspectscore=0 phishscore=0 mlxscore=0 lowpriorityscore=0 impostorscore=0 clxscore=1011 mlxlogscore=999 priorityscore=1501 spamscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2103170110 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Reviewed-by: Steve Wahl On Tue, Mar 16, 2021 at 04:57:21PM +0800, Yang Li wrote: > This fixes the following sparse warnings: > drivers/misc/sgi-xp/xpc_main.c:210:23: warning: Using plain integer as > NULL pointer > > Reported-by: Abaci Robot > Signed-off-by: Yang Li > --- > drivers/misc/sgi-xp/xpc_main.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/misc/sgi-xp/xpc_main.c b/drivers/misc/sgi-xp/xpc_main.c > index 84610bb..b2c3c22 100644 > --- a/drivers/misc/sgi-xp/xpc_main.c > +++ b/drivers/misc/sgi-xp/xpc_main.c > @@ -207,7 +207,7 @@ > { > xpc_arch_ops.heartbeat_init(); > timer_setup(&xpc_hb_timer, xpc_hb_beater, 0); > - xpc_hb_beater(0); > + xpc_hb_beater(NULL); > } > > static void > -- > 1.8.3.1 > -- Steve Wahl, Hewlett Packard Enterprise