All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fs: ubifs: Resolve sparse warning for using plain integer as NULL pointer
@ 2019-05-06 21:23 ` Vandana BN
  0 siblings, 0 replies; 4+ messages in thread
From: Vandana BN @ 2019-05-06 21:23 UTC (permalink / raw)
  To: richard, dedekind1, adrian.hunter, linux-mtd, linux-kernel; +Cc: Vandana BN

fs/ubifs/xattr.c:615:58: warning: Using plain integer as NULL pointer

Signed-off-by: Vandana BN <bnvandana@gmail.com>
---
 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


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH] fs: ubifs: Resolve sparse warning for using plain integer as NULL pointer
@ 2019-05-06 21:23 ` Vandana BN
  0 siblings, 0 replies; 4+ messages in thread
From: Vandana BN @ 2019-05-06 21:23 UTC (permalink / raw)
  To: richard, dedekind1, adrian.hunter, linux-mtd, linux-kernel; +Cc: Vandana BN

fs/ubifs/xattr.c:615:58: warning: Using plain integer as NULL pointer

Signed-off-by: Vandana BN <bnvandana@gmail.com>
---
 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


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] fs: ubifs: Resolve sparse warning for using plain integer as NULL pointer
  2019-05-06 21:23 ` Vandana BN
@ 2019-05-15 21:06   ` Richard Weinberger
  -1 siblings, 0 replies; 4+ messages in thread
From: Richard Weinberger @ 2019-05-15 21:06 UTC (permalink / raw)
  To: Vandana BN
  Cc: Richard Weinberger, Artem Bityutskiy, Adrian Hunter, linux-mtd, LKML

On Mon, May 6, 2019 at 11:24 PM Vandana BN <bnvandana@gmail.com> wrote:
>
> fs/ubifs/xattr.c:615:58: warning: Using plain integer as NULL pointer
>
> Signed-off-by: Vandana BN <bnvandana@gmail.com>
> ---
>  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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] fs: ubifs: Resolve sparse warning for using plain integer as NULL pointer
@ 2019-05-15 21:06   ` Richard Weinberger
  0 siblings, 0 replies; 4+ messages in thread
From: Richard Weinberger @ 2019-05-15 21:06 UTC (permalink / raw)
  To: Vandana BN
  Cc: Richard Weinberger, linux-mtd, Adrian Hunter, LKML, Artem Bityutskiy

On Mon, May 6, 2019 at 11:24 PM Vandana BN <bnvandana@gmail.com> wrote:
>
> fs/ubifs/xattr.c:615:58: warning: Using plain integer as NULL pointer
>
> Signed-off-by: Vandana BN <bnvandana@gmail.com>
> ---
>  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

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-05-15 21:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-06 21:23 [PATCH] fs: ubifs: Resolve sparse warning for using plain integer as NULL pointer Vandana BN
2019-05-06 21:23 ` Vandana BN
2019-05-15 21:06 ` Richard Weinberger
2019-05-15 21:06   ` Richard Weinberger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.