From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH v6 02/10] ss: created formatters for json and hr Date: Wed, 9 Sep 2015 14:30:49 -0700 Message-ID: <20150909143049.0aa08d37@urahara> References: <1441827801-9617-1-git-send-email-matthias.tafelmeier@gmx.net> <4b7ff1016053461a80465ce8138e12a2@HQ1WP-EXMB11.corp.brocade.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: "netdev@vger.kernel.org" , "hagen@jauu.net" , "shemminger@osdl.org" , "fw@strlen.de" , "edumazet@google.com" , "daniel@iogearbox.net" To: Matthias Tafelmeier Return-path: Received: from mail-pa0-f42.google.com ([209.85.220.42]:33345 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751808AbbIIVai (ORCPT ); Wed, 9 Sep 2015 17:30:38 -0400 Received: by pacex6 with SMTP id ex6so21320782pac.0 for ; Wed, 09 Sep 2015 14:30:38 -0700 (PDT) In-Reply-To: <4b7ff1016053461a80465ce8138e12a2@HQ1WP-EXMB11.corp.brocade.com> Sender: netdev-owner@vger.kernel.org List-ID: On Wed, 9 Sep 2015 19:43:13 +0000 Matthias Tafelmeier wrote: > +#define STATIC_ASSERT(COND, MSG) \ > +{ \ > + char STATIC_ASSERT##MSG[(COND) ? 1 : -1]; \ > + (void)STATIC_ASSERT##MSG[0]; \ > +} If you are going to introduce this, please use same convention as Linux kernel. ie. BUILD_BUG_ON() Your code looks like it came out of some other project.