public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: lustre: Fix sparse, using plain integer as NULL pointer in lov_object_fiemap()
@ 2017-11-30 18:30 Andrii Vladyka
  2017-12-04  8:20 ` Dilger, Andreas
  0 siblings, 1 reply; 6+ messages in thread
From: Andrii Vladyka @ 2017-11-30 18:30 UTC (permalink / raw)
  To: oleg.drokin, andreas.dilger, jsimmons, gregkh
  Cc: lustre-devel, devel, linux-kernel

[-- 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)

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

end of thread, other threads:[~2017-12-07 17:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-30 18:30 [PATCH] staging: lustre: Fix sparse, using plain integer as NULL pointer in lov_object_fiemap() Andrii Vladyka
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox