Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1015631yba; Wed, 15 May 2019 14:08:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqzdibxxnhnnHd+JTClt1aXbBBpP0SDwrwn/OMNgLKEvi1T0gr0/GzX3XyseEblONq9cfdG+ X-Received: by 2002:a17:902:158b:: with SMTP id m11mr4361289pla.268.1557954535623; Wed, 15 May 2019 14:08:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557954535; cv=none; d=google.com; s=arc-20160816; b=VoT9dZ7wZL+/YCEFLd1tfySMzPyDR28yWgzzys8eerebcMQRIjsqGQAiRHlazpnsf/ 0ViHKhI+gEk8gAx+x77mgXY0de95aEceOnH9V1VFSoirWJCRvBAlgE9YSdg7oXi7K2KC dCoZhITjsNmOcv4HmbCIowtLEke0glCtnEQbXvkozW1LTmfhzcURdV9X87liWoltZX1a c30ZKe/F15eBjFsNPuHztHyi+0hRCg3wuVe2lVx603bQirikECQyM19mR9nJSiKh3X1E n9aCNMOrgn5YORoNc4dDfrfRH6vI5YOGL1y3+N/psvEm4ZbC8K+HYqIAIWEW9QouEG8N khzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=KN7Op8lE6XgA0shW6xktX/J0QHQnjwUaX3FOZZZptkU=; b=VTXpBv3/xM9p2v/mV78dBN+HpqYb407pYDade3pjaiuMlpX6eqYNkkaDeo8/U2ub0X VuDOT70god74kVWeev3jxb/+aPlcS1HXqVqW9vKbFZDnTtP+NMMdmk42oYWjRQm8+NAW k+FLwCbGslxItwUAkgQUfsfcaJKkHoDGXIurV5mroiSfSejMgs3rUw9g5MeYzB2NmCDI zntBqCoy5Tx2VjEO5KY02kLqVpO81oWn3+Fu0AU/mZV3yCTyIcKuKD0+IlPlWUmuhodf jvADGhwxZIvjRwwiOx9WTjVDRtanw9l/3DAaxZ+iIuBxcphlkf6TXxRyUqPW40n5kKaV X8NA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=W1oRFTFB; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o11si2564918plk.413.2019.05.15.14.08.40; Wed, 15 May 2019 14:08:55 -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=@gmail.com header.s=20161025 header.b=W1oRFTFB; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726651AbfEOVGP (ORCPT + 99 others); Wed, 15 May 2019 17:06:15 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:46157 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726441AbfEOVGP (ORCPT ); Wed, 15 May 2019 17:06:15 -0400 Received: by mail-wr1-f68.google.com with SMTP id r7so935572wrr.13 for ; Wed, 15 May 2019 14:06:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KN7Op8lE6XgA0shW6xktX/J0QHQnjwUaX3FOZZZptkU=; b=W1oRFTFB+24xB+dtaPBmivucI2kyqv7HBmqrRT6TiBIAZepFI8cpCTuHRSujHsiFFw kF1ynOa5KxIzHoc+FiWvomXszb3JbiTBHQWj/ASpd7QsZetKDscojrxmGgpLSLu7+SvX my4zgYux7+/Q1Jz0SvTVb33f6s7XPup0ZI9KzAb9jrvWtjZsFjH7gVrkHSTj4b6eXpaZ DLZAnMbwXMsnfIeKJg5zC3I+0Wo0Vy93w8ujem1zPrXmjrMxSUzmLym3MgpXgBjGEAgX bqjstVLBAQ+0iCAaUpB2nsSI8AhEoDAYYQN3NxM5hAJNdwv0jhivgUUqLGfSj8oZjWTv 0uKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KN7Op8lE6XgA0shW6xktX/J0QHQnjwUaX3FOZZZptkU=; b=nwAIK48sz9reXFJQ31c/aN4GVEe2FBTgzNDQDWmk60caKNXQfbJCSL9TXNbBNrndbi hwghxLLUUK/+Uym2KVzAAu68TfX0LSUYsAM71kGgwqOCfVAjB99XWz/lApgcD473Bzmm kFsi0ao7ALdAWLJ+pmvI9AxGBekTK2dmrwm0IvcNTvWZBDK8r0bGyb2beWjFXF/wXgJh +6GxHw0mf3uMcIlrnSXPX1RIM+OOP65FtUvkKccmKudsxFW0gnvlriHX+0RhU+gSzBd1 /KYHmEBj72ALHObr+uKJ79MzRNiueBwek/Lq7PZazT8e2kwjfC+DaQ++VpVT9rvIJ+sv J35A== X-Gm-Message-State: APjAAAWiNaodsXvbS6lXpPU2bJ2HJw3oST8UMFB+8YSEiY8urxqFmqOV i25cn+f8BRW/jM4H8ybrsjnuOH1oSKbP8Ss/ugk= X-Received: by 2002:adf:eb91:: with SMTP id t17mr9729539wrn.203.1557954373482; Wed, 15 May 2019 14:06:13 -0700 (PDT) MIME-Version: 1.0 References: <20190506212327.6480-1-bnvandana@gmail.com> In-Reply-To: <20190506212327.6480-1-bnvandana@gmail.com> From: Richard Weinberger Date: Wed, 15 May 2019 23:06:02 +0200 Message-ID: Subject: Re: [PATCH] fs: ubifs: Resolve sparse warning for using plain integer as NULL pointer To: Vandana BN Cc: Richard Weinberger , Artem Bityutskiy , Adrian Hunter , linux-mtd@lists.infradead.org, LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 6, 2019 at 11:24 PM Vandana BN wrote: > > fs/ubifs/xattr.c:615:58: warning: Using plain integer as NULL pointer > > Signed-off-by: Vandana BN > --- > fs/ubifs/xattr.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/ubifs/xattr.c b/fs/ubifs/xattr.c > index f5ad1ede7990..066a5666c50f 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.17.1 Applied. -- Thanks, //richard