Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp3399187img; Mon, 25 Mar 2019 09:29:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqxA1bJ6vJnPmG2uJ88SFLVIdyFWxQR+OnzGB3tio6L5NoOKfWhcxRvpc/QT8iOU+zSIzg9y X-Received: by 2002:a62:458a:: with SMTP id n10mr25469337pfi.136.1553531385459; Mon, 25 Mar 2019 09:29:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553531385; cv=none; d=google.com; s=arc-20160816; b=IJyCveS0FY1xxOE7rIuZn4M4Xjtwz8Y6XXjMBIdAbwQ0RYyU2SYLBV+lob5XY1LsmL COSLxx4uXseD8NyXuMSODmgbX/+2izIz6ooERLGAvqmkER3wm5Gfdoh2QMqZQezxcC+3 tkZfSXG8ZlShbT99wsKwVO7xfJBNK3kFCdFERZrKb5VPS97yeBp9rvJC6LIPb2KjdQVv hCyjCiVpGXifSPNbknHARDRIxgtPvagVz9e/x6x39guD4PixEoEL5DiSPvjU8mGjWr1p O5vD2Lt1xCvxjEcFy2VxHYqZwyjPUT46PclH/kRcVpOFe1ncoPLH7dVJkIUPThWUSP27 /rlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=nH9sJtH+T1nwHrfuzNMMjTQSvxyi0TWLQX7Wt1n9MdQ=; b=MSdTeVhhfxKIhToLNi7mZ1RNvoY5H9hT/X7Dfb2CFFgeArxNzv2/BQWQx53mzVP6iA FpXVjTmWwdPEbzEnW4Cd442/8RFIrFIjdkxYxvoeQVCXCr2qvHtv3j+u/C1MoJkuJTpU c6PWbKW276TFRO6VKUNDXN7BEkz+mukk5Q8e0QcRlJ/kHhiB4NNKlF55un5SNqi1JHQv khuHdHpMtKuB+RluBDTQMbMLzrcOte2+N7gLZXzcMd/ZuRlCRNofvxgKdHdh7bA87I9V r2RDrlnxXT5jJkpfl+K/QW7VQmsxiquAB3p8C0donVfj/QmiSjxz0vj8mDIdMp9HP9wq SQ4w== ARC-Authentication-Results: i=1; mx.google.com; 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 a40si15145548pla.234.2019.03.25.09.29.30; Mon, 25 Mar 2019 09:29:45 -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; 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 S1729204AbfCYQ2r (ORCPT + 99 others); Mon, 25 Mar 2019 12:28:47 -0400 Received: from mx2.suse.de ([195.135.220.15]:43562 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725788AbfCYQ2r (ORCPT ); Mon, 25 Mar 2019 12:28:47 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id C2CC9AFDA; Mon, 25 Mar 2019 16:28:45 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id CA5401E429A; Mon, 25 Mar 2019 17:28:44 +0100 (CET) Date: Mon, 25 Mar 2019 17:28:44 +0100 From: Jan Kara To: Hariprasad Kelam Cc: 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 Subject: Re: [PATCH] fs: fix warning about Using plain integer as NULL pointer Message-ID: <20190325162844.GD8308@quack2.suse.cz> References: <20190322221021.GA24814@hari-Inspiron-1545> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190322221021.GA24814@hari-Inspiron-1545> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat 23-03-19 03:40:21, 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 fs/notify part looks good to me. Feel free to add: Acked-by: Jan Kara Honza > --- > 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", > -- > 2.7.4 > -- Jan Kara SUSE Labs, CR