Return-path: Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:23227 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753353AbaAFJUp (ORCPT ); Mon, 6 Jan 2014 04:20:45 -0500 Date: Mon, 6 Jan 2014 10:20:25 +0100 (CET) From: Julia Lawall To: Johannes Berg cc: Julia Lawall , Joe Perches , Henrique de Moraes Holschuh , kernel-janitors@vger.kernel.org, Emmanuel Grumbach , Intel Linux Wireless , "John W. Linville" , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 4/11] use ether_addr_equal_64bits In-Reply-To: <1388999220.5891.3.camel@jlt4.sipsolutions.net> Message-ID: (sfid-20140106_102119_362246_0DFEC71D) References: <1388427307-8691-1-git-send-email-Julia.Lawall@lip6.fr> <1388427307-8691-5-git-send-email-Julia.Lawall@lip6.fr> <1388429761.4410.1.camel@jlt4.sipsolutions.net> <1388438724.4573.2.camel@jlt4.sipsolutions.net> <20131230215701.GA4938@khazad-dum.debian.net> <1388445188.18164.0.camel@jlt4.sipsolutions.net> <1388445422.26796.38.camel@joe-AO722> <1388998750.5808.43.camel@joe-AO722> <1388999220.5891.3.camel@jlt4.sipsolutions.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-wireless-owner@vger.kernel.org List-ID: On Mon, 6 Jan 2014, Johannes Berg wrote: > On Mon, 2014-01-06 at 10:04 +0100, Julia Lawall wrote: > > > OK, the question was expressed badly. Is there any way to use the value > > to trigger an action at build time? The only way I kow to trigger an > > action is with #error, but #error is processed by cpp, which doesn't know > > about the size of types. > > That's exactly BUILD_BUG_ON(), I believe. Maybe BUILD_BUG_ON_ZERO? It's goal seems to be to return an integer, which could then be used as an array size in a dummy structure. The structure declaration would not generate any code. The structure would have to have a name, thoough. julia