Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753620AbdLDKop (ORCPT ); Mon, 4 Dec 2017 05:44:45 -0500 Received: from smtp5.mail.ru ([94.100.179.24]:39408 "EHLO smtp5.mail.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751390AbdLDKol (ORCPT ); Mon, 4 Dec 2017 05:44:41 -0500 Subject: [PATCH] staging: lustre: Fix sparse, using plain integer as NULL pointer in lov_object_fiemap() To: "Dilger, Andreas" , "Drokin, Oleg" , "jsimmons@infradead.org" , "gregkh@linuxfoundation.org" Cc: "lustre-devel@lists.lustre.org" , "devel@driverdev.osuosl.org" , "linux-kernel@vger.kernel.org" References: <7A48E652-421B-464B-AD2A-C3D5613B48E5@intel.com> From: Andrii Vladyka Message-ID: Date: Mon, 4 Dec 2017 12:44:32 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <7A48E652-421B-464B-AD2A-C3D5613B48E5@intel.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Authentication-Results: smtp5.mail.ru; auth=pass smtp.auth=tulup@mail.ru smtp.mailfrom=tulup@mail.ru X-7FA49CB5: 0D63561A33F958A5896F5DB0354206CDD9F5319AB4CAA643B0D202E9FE370A48725E5C173C3A84C3705BB8FF2EA96B1BA719FC0821AE96540B02670E5FEECA50C4224003CC836476C0CAF46E325F83A50BF2EBBBDD9D6B0FE4D3FA91A993F3A7574AF45C6390F7469DAA53EE0834AAEE X-Mailru-Sender: 3DEE44A10DFADB60C2BCF497652D6EF829DEA047D378412AD6E092E3E9D01E54FA0A40D2F7BCE703F1F2485B0B92A2F6928A2593B14EC4C3A05B717206AB936FEAB4BC95F72C04283CDA0F3B3F5B9367 X-Mras: OK Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 718 Lines: 20 Change 0 to NULL in lov_object_fiemap() in order to fix warning produced by sparse Signed-off-by: Andrii Vladyka Signed-off-by: Andreas Dilger --- 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)