Return-path: Received: from s3.sipsolutions.net ([144.76.43.152]:43982 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756124Ab3L3VZc (ORCPT ); Mon, 30 Dec 2013 16:25:32 -0500 Message-ID: <1388438724.4573.2.camel@jlt4.sipsolutions.net> (sfid-20131230_222558_646268_BC476565) Subject: Re: [PATCH 4/11] use ether_addr_equal_64bits From: Johannes Berg To: Julia Lawall Cc: 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 Date: Mon, 30 Dec 2013 22:25:24 +0100 In-Reply-To: References: <1388427307-8691-1-git-send-email-Julia.Lawall@lip6.fr> <1388427307-8691-5-git-send-email-Julia.Lawall@lip6.fr> (sfid-20131230_182319_112673_F481A1D3) <1388429761.4410.1.camel@jlt4.sipsolutions.net> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Mon, 2013-12-30 at 20:58 +0100, Julia Lawall wrote: > > Is there any way we could catch (sparse, or some other script?) that > > struct reorganising won't break the condition needed ("within a > > structure that contains at least two more bytes")? > > What kind of reorganizing could happen? Do you mean that the programmer > might do at some time in the future, or something the compiler might do? I'm just thinking of a programmer, e.g. changing a struct like this: struct foo { u8 addr[ETH_ALEN]; - u16 dummy; }; for example. johannes