Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp5344924img; Wed, 27 Mar 2019 06:54:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqxmyqdKOfK6xXMoYO+q6CYqHcMXYAQeN1Oh1trKgmvYE5FyD8Y2ErEt58+PKmAgd9ABXKHD X-Received: by 2002:aa7:83ca:: with SMTP id j10mr35190435pfn.50.1553694847812; Wed, 27 Mar 2019 06:54:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553694847; cv=none; d=google.com; s=arc-20160816; b=W00hL3ch7L5zZpdbHanpTrtQbkpUi5bawk/s8O/y98uaD+saWokpDEg2VvElJgYqe0 MaDFlxOZKZjV7RjUpNfM99gZh9P3115Og2JSbHqHmZUmYvUDOcuog3HQpNYwIxiyzPnu fhOGGK7Xc+Qhd2mL9gMa+UE/EYjuAthHJJHgj9/K/jRBtmKnbNRrKMnSKiTl6a1K1doo kKPxLsV19oUuR56vTjB+kgKiGv+WtRmZmHo85SQ2HJPwaUiyUv6Ni4MwowrYOLPHWf4d bcWff9FNPn8X1n6yJE6mFnKLJQJtqJDq8JPbRwTXC/butR/GYY7TZkzJOX3n2BP5KAD+ l1UQ== 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=G3M97VIwocCZmz3FG6B85ZODdtO2W+o3/Sb41Z7ZTKc=; b=qmZbM3jYBQ3yoY5yFNsPl6BE0FNLwvA7DQbkCh3nfGhgk18Wj+LNzMraxgpNT48CdG YSk71h7dRRJfcuiQH9MEV+OtzRgAfx2Bv3txnWWpxRJzACUPpRADSXVv51UJjs4V5c9F EU7mQMNxqNggAv7XGIDJy91nTx5Uj2bgTYnYPN84weZdi6siIoas9KpVbgLrHRXKdkFH WLbyriFxHb3gNdMRz1HKRTwUAhl5z6SUNOBcRNXMLbvW5hLicABAVY7y/8g3Mqi0F31+ bs8AQfHb0bb6tOfj0o+PSZA8XAJg3G/c8gegW9SlE6pf21qGDbS9fxF/IY171uFy++r/ JUBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=WfWNfV+d; dkim=pass header.i=@codeaurora.org header.s=default header.b=GiipJnaL; 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 p188si18456203pfp.123.2019.03.27.06.53.52; Wed, 27 Mar 2019 06:54:07 -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=WfWNfV+d; dkim=pass header.i=@codeaurora.org header.s=default header.b=GiipJnaL; 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 S1730060AbfC0NxU (ORCPT + 99 others); Wed, 27 Mar 2019 09:53:20 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:58440 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726312AbfC0NxU (ORCPT ); Wed, 27 Mar 2019 09:53:20 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 6A900619B3; Wed, 27 Mar 2019 13:53:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1553694799; bh=JmUbfQxsHOj5SXBkCsYMoFaxqHxlEGh95LyB0+AhJwQ=; h=Subject:To:References:From:Date:In-Reply-To:From; b=WfWNfV+dw476+pknIKEXgTRG8fRae1Ii7kQ5GmU0RQFbGcmcjJfgW2Cjr/PMAvWED Gm2wUcii+7JvMUuzMXjXBIj2I5SPK4UkfqP5+MoaQkPpHioyAFHANAsFjx+srUuefO V6s0pYLeFwXNLvfzyoDbc2RXH2EwWaSz2BeAUm0U= 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.204.79.83] (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.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 4807461A25; Wed, 27 Mar 2019 13:53:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1553694797; bh=JmUbfQxsHOj5SXBkCsYMoFaxqHxlEGh95LyB0+AhJwQ=; h=Subject:To:References:From:Date:In-Reply-To:From; b=GiipJnaLqXZAXxB/yqF/KOtYicyHlKQkPn29iHemSZ3Ue9fbREZmcKMoSy+kxbUAS q6YIOWyIjYZJmqp0p16qqBufZ1RrTpMrQjFoynxM3LFcDPJc3ORiTCcRdOLh4/UA0j kMxB6/XPBZqR5HeWPkkTn+MCwcvngvBAooxyl928= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 4807461A25 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] fs: fix warning about Using plain integer as NULL pointer To: Hariprasad Kelam , Jaegeuk Kim , Chao Yu , Jan Kara , Amir Goldstein , Richard Weinberger , Artem Bityutskiy , Adrian Hunter , linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mtd@lists.infradead.org References: <20190322221021.GA24814@hari-Inspiron-1545> From: Mukesh Ojha Message-ID: Date: Wed, 27 Mar 2019 19:23:10 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.0 MIME-Version: 1.0 In-Reply-To: <20190322221021.GA24814@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 3/23/2019 3:40 AM, Hariprasad Kelam wrote: > Sparse warning below: > > sudo make C=2 CF=-D__CHECK_ENDIAN__ M=fs > > CHECK fs/f2fs/data.c > fs/f2fs/data.c:426:47: warning: Using plain integer as NULL pointer > CHECK fs/notify/fdinfo.c > fs/notify/fdinfo.c:53:87: warning: Using plain integer as NULL pointer > CHECK fs/ubifs/xattr.c > fs/ubifs/xattr.c:615:58: warning: Using plain integer as NULL pointer > > Signed-off-by: Hariprasad Kelam Reviewed-by: Mukesh Ojha -Mukesh > --- > fs/f2fs/data.c | 2 +- > fs/notify/fdinfo.c | 2 +- > fs/ubifs/xattr.c | 2 +- > 3 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c > index 97279441..15a2381 100644 > --- a/fs/f2fs/data.c > +++ b/fs/f2fs/data.c > @@ -423,7 +423,7 @@ static void __submit_merged_write_cond(struct f2fs_sb_info *sbi, > > void f2fs_submit_merged_write(struct f2fs_sb_info *sbi, enum page_type type) > { > - __submit_merged_write_cond(sbi, NULL, 0, 0, type, true); > + __submit_merged_write_cond(sbi, NULL, NULL, 0, type, true); > } > > void f2fs_submit_merged_write_cond(struct f2fs_sb_info *sbi, > diff --git a/fs/notify/fdinfo.c b/fs/notify/fdinfo.c > index 1e2bfd2..ef83f40 100644 > --- a/fs/notify/fdinfo.c > +++ b/fs/notify/fdinfo.c > @@ -50,7 +50,7 @@ static void show_mark_fhandle(struct seq_file *m, struct inode *inode) > f.handle.handle_bytes = sizeof(f.pad); > size = f.handle.handle_bytes >> 2; > > - ret = exportfs_encode_inode_fh(inode, (struct fid *)f.handle.f_handle, &size, 0); > + ret = exportfs_encode_inode_fh(inode, (struct fid *)f.handle.f_handle, &size, NULL); > if ((ret == FILEID_INVALID) || (ret < 0)) { > WARN_ONCE(1, "Can't encode file handler for inotify: %d\n", ret); > return; > diff --git a/fs/ubifs/xattr.c b/fs/ubifs/xattr.c > index f5ad1ed..066a566 100644 > --- a/fs/ubifs/xattr.c > +++ b/fs/ubifs/xattr.c > @@ -612,7 +612,7 @@ int ubifs_init_security(struct inode *dentry, struct inode *inode, > int err; > > err = security_inode_init_security(inode, dentry, qstr, > - &init_xattrs, 0); > + &init_xattrs, NULL); > if (err) { > struct ubifs_info *c = dentry->i_sb->s_fs_info; > ubifs_err(c, "cannot initialize security for inode %lu, error %d",