mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrii Vladyka <tulup@mail.ru>
To: oleg.drokin@intel.com, andreas.dilger@intel.com,
	jsimmons@infradead.org, gregkh@linuxfoundation.org
Cc: lustre-devel@lists.lustre.org, devel@driverdev.osuosl.org,
	linux-kernel@vger.kernel.org
Subject: [PATCH] staging: lustre: Fix sparse, using plain integer as NULL pointer in lov_object_fiemap()
Date: Thu, 30 Nov 2017 20:30:58 +0200	[thread overview]
Message-ID: <e5107da2-a834-e1fd-03b8-01f60e4e19f4@mail.ru> (raw)

[-- Attachment #1: Type: text/plain, Size: 133 bytes --]

Change 0 to NULL in lov_object_fiemap() in order to fix warning produced 
by sparse

Signed-off-by: Andrii Vladyka <tulup@mail.ru>



[-- Attachment #2: task16.patch --]
[-- Type: text/plain, Size: 519 bytes --]

diff --git a/drivers/staging/lustre/lustre/lov/lov_object.c b/drivers/staging/lustre/lustre/lov/lov_object.c
index 105b707..897cf2c 100644
--- a/drivers/staging/lustre/lustre/lov/lov_object.c
+++ b/drivers/staging/lustre/lustre/lov/lov_object.c
@@ -1335,7 +1335,7 @@ static int lov_object_fiemap(const struct lu_env *env, struct cl_object *obj,
 	int rc = 0;
 	int cur_stripe;
 	int stripe_count;
-	struct fiemap_state fs = { 0 };
+	struct fiemap_state fs = { NULL };
 
 	lsm = lov_lsm_addref(cl2lov(obj));
 	if (!lsm)

             reply	other threads:[~2017-11-30 18:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-30 18:30 Andrii Vladyka [this message]
2017-12-04  8:20 ` Dilger, Andreas
2017-12-04 10:44   ` Andrii Vladyka
2017-12-06  8:53     ` gregkh
2017-12-06  9:33       ` Andrii
2017-12-07 17:24       ` Joe Perches

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e5107da2-a834-e1fd-03b8-01f60e4e19f4@mail.ru \
    --to=tulup@mail.ru \
    --cc=andreas.dilger@intel.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=jsimmons@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lustre-devel@lists.lustre.org \
    --cc=oleg.drokin@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®