Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1421081yba; Sat, 6 Apr 2019 11:50:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqxqfP/ic43RpwXM09hx8+9bmYMB9yfRMOu6R6ftrNliaOvhNTxlK48hehCkCW+N+tm1zN/9 X-Received: by 2002:aa7:8458:: with SMTP id r24mr19790559pfn.231.1554576606998; Sat, 06 Apr 2019 11:50:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554576606; cv=none; d=google.com; s=arc-20160816; b=z5IGkCcvoFTRugd86EZJhdfqtqY8YVuMX2eUpPgxtMCFM6GfNcgqYHLmJ4ntEZAe1k VdOTXoyw67qsqSlpVsYaSH2+e5AtdAiVqVOBEFAy2iEwT92+WWWI39AjU1aUmCNdKm2q J1raRazM9pgbRFxf9K2KrQJ/wcLrMOMNZQF8Vp9YL0ydp38bzu3TilsEB/OYb3zwPLL7 jKjLDyDHoUPUuqeSZQ/Z/9m2x1Xf+Q351+7Sal2XmZVPaoGYOmeXTi5RciqDsQyQET7b bo0tuZ7wIT4gCMWKmPzw/xRVGoRAdlbYsd6cOtPG0Cu/QVy+JiEskZxGxJDkKKasOchd dWjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dmarc-filter:dkim-signature :dkim-signature; bh=ixlykB1Mr716QlOlYsm/BekuZ0iua/IWnVh+1T/kc8I=; b=CXOgckofzyWewl3YORTYsZhH1ID2LXdagX3YD21etZYk54Ev/vFWx6ehd/qSF+Hw1s GpUXcYWt3TpLb499td+V8KoVT+ts73tBy5KEdH5WA8k35b5Ph9ZJfPpD4d+jkGTTGmJV LEMclT6U0SKJ4eIiTX7y8i8zuLAGpVcwlAGiL7yEGeOXCqBCwyaTdasZOnwH62CsQkaj TayAKEs+yDkYm6bblkpMv3OJ65R2ghYTJvG4mZidnZMBEucx+jGaffNKm7kZLZk43Wul ksOgNoFxigvtsPiftXMEeQUt9nbu1caa88ZN9o1LCbGCKMNfeSXaZ/LE85NiIUhYcv08 FLFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=FVadyNEv; dkim=pass header.i=@codeaurora.org header.s=default header.b=JkcO8t3n; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d3si14356953pfc.278.2019.04.06.11.49.51; Sat, 06 Apr 2019 11:50:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=FVadyNEv; dkim=pass header.i=@codeaurora.org header.s=default header.b=JkcO8t3n; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726606AbfDFSsF (ORCPT + 99 others); Sat, 6 Apr 2019 14:48:05 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:54398 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726427AbfDFSsF (ORCPT ); Sat, 6 Apr 2019 14:48:05 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id F0C7F60A42; Sat, 6 Apr 2019 18:48:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1554576484; bh=bsfESOPAMIt6kwXs1L5nh9XkRg1/EBCHLoLNOWy+Tvw=; h=Subject:To:References:From:Date:In-Reply-To:From; b=FVadyNEvL61FKcMpqBw/2H/Qi0GkcYZSU8Ox/ZbBJC1kb3WlfZZ5Tab/d8mfUeBIM sWkKM6xkL51QOsG6F08VlIYMk7ga5dBUxGrKgx51sFS7141B3T1Q8R7Y5osjIAwAkf vr7npl2ImxRmBxF5ZoxNvIhgH4MuWgNxxos0uZX8= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.0 Received: from [10.79.171.6] (blr-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.18.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mojha@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 339536044E; Sat, 6 Apr 2019 18:47:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1554576483; bh=bsfESOPAMIt6kwXs1L5nh9XkRg1/EBCHLoLNOWy+Tvw=; h=Subject:To:References:From:Date:In-Reply-To:From; b=JkcO8t3nJEo+vI4PaMB/NTMws8XKpEMQpjFIC8Gml4TRjb73R3WJ0s0QFBnzAo+/z BKeyY0K7bWTIJvetgHxKJdM/0qftQGYCNNW5uRHaPeFW8MEIY0Ajm1tziFN+YMB0pr w0HJswCWuUU/B1mAdwsN5HFEGMEr1OtndOLh3EH0= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 339536044E Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=mojha@codeaurora.org Subject: Re: [PATCH] watchdog: machzwd : fix warning Using plain integer as NULL pointer To: Hariprasad Kelam , Wim Van Sebroeck , Guenter Roeck , linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org References: <20190406131415.GA3844@hari-Inspiron-1545> From: Mukesh Ojha Message-ID: <38e42bc9-f0b1-5839-c5f3-b88d0fd2dd41@codeaurora.org> Date: Sun, 7 Apr 2019 00:17:50 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190406131415.GA3844@hari-Inspiron-1545> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/6/2019 6:44 PM, Hariprasad Kelam wrote: > Changes passing function argument 0 to NULL to avoid below sparse > warning > > CHECK drivers/watchdog//machzwd.c > drivers/watchdog//machzwd.c:321:25: warning: Using plain integer as NULL > pointer > Signed-off-by: Hariprasad Kelam Reviewed-by: Mukesh Ojha Cheers, -Mukesh > --- > drivers/watchdog/machzwd.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/watchdog/machzwd.c b/drivers/watchdog/machzwd.c > index 88d823d..c3926d0 100644 > --- a/drivers/watchdog/machzwd.c > +++ b/drivers/watchdog/machzwd.c > @@ -318,7 +318,7 @@ static long zf_ioctl(struct file *file, unsigned int cmd, unsigned long arg) > case WDIOC_GETBOOTSTATUS: > return put_user(0, p); > case WDIOC_KEEPALIVE: > - zf_ping(0); > + zf_ping(NULL); > break; > default: > return -ENOTTY;