From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934887AbcLTSx2 (ORCPT ); Tue, 20 Dec 2016 13:53:28 -0500 Received: from userp1040.oracle.com ([156.151.31.81]:22318 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934383AbcLTSx0 (ORCPT ); Tue, 20 Dec 2016 13:53:26 -0500 Date: Tue, 20 Dec 2016 21:52:40 +0300 From: Dan Carpenter To: Bruce Korb Cc: "Hammond, John" , James Simmons , "devel@driverdev.osuosl.org" , "Dilger, Andreas" , Kees Cook , Greg Kroah-Hartman , Linux Kernel Mailing List , "Faccini, Bruno" , "Drokin, Oleg" , Vitaly Fertman , "Liu, Emoly" , Lustre Development List Subject: Re: [PATCH] staging: lustre: ldlm: use designated initializers Message-ID: <20161220185240.GK8244@mwanda> References: <20161217010045.GA140343@beast> <20161220071034.GL8176@mwanda> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Source-IP: aserv0021.oracle.com [141.146.126.233] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 20, 2016 at 08:47:51AM -0800, Bruce Korb wrote: > > > > "{ NULL }" is valid ISO C, but unfortunately "{}" is not. > > Just make the thing "static const" and don't use an initializer. That also works, of course. regards, dan carpenter From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Carpenter Date: Tue, 20 Dec 2016 21:52:40 +0300 Subject: [lustre-devel] [PATCH] staging: lustre: ldlm: use designated initializers In-Reply-To: References: <20161217010045.GA140343@beast> <20161220071034.GL8176@mwanda> Message-ID: <20161220185240.GK8244@mwanda> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Bruce Korb Cc: "Hammond, John" , James Simmons , "devel@driverdev.osuosl.org" , "Dilger, Andreas" , Kees Cook , Greg Kroah-Hartman , Linux Kernel Mailing List , "Faccini, Bruno" , "Drokin, Oleg" , Vitaly Fertman , "Liu, Emoly" , Lustre Development List On Tue, Dec 20, 2016 at 08:47:51AM -0800, Bruce Korb wrote: > > > > "{ NULL }" is valid ISO C, but unfortunately "{}" is not. > > Just make the thing "static const" and don't use an initializer. That also works, of course. regards, dan carpenter