Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759693AbXESCH4 (ORCPT ); Fri, 18 May 2007 22:07:56 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753170AbXESCHu (ORCPT ); Fri, 18 May 2007 22:07:50 -0400 Received: from pentafluge.infradead.org ([213.146.154.40]:60174 "EHLO pentafluge.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752338AbXESCHt (ORCPT ); Fri, 18 May 2007 22:07:49 -0400 Subject: Re: [PATCH] ubi: kill homegrown endian macros From: David Woodhouse To: Segher Boessenkool Cc: Matthieu CASTET , "John Anthony Kazos Jr." , linux-kernel@vger.kernel.org In-Reply-To: <6c8c0e6cd0ac95fd1c7d4e822f1e2029@kernel.crashing.org> References: <20070517143200.GA30850@lst.de> <1179413443.3642.49.camel@sauron> <20070517145653.GA968@lst.de> <1179414590.3642.69.camel@sauron> <20070517102931.6bbbad1a.akpm@linux-foundation.org> <1179455959.2859.527.camel@shinybook.infradead.org> <1179458274.2859.538.camel@shinybook.infradead.org> <1179499959.2859.579.camel@shinybook.infradead.org> <6c8c0e6cd0ac95fd1c7d4e822f1e2029@kernel.crashing.org> Content-Type: text/plain Date: Sat, 19 May 2007 10:07:42 +0800 Message-Id: <1179540463.2859.627.camel@shinybook.infradead.org> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 (2.10.1-4.fc7.dwmw2.2) Content-Transfer-Encoding: 7bit X-SRS-Rewrite: SMTP reverse-path rewritten from by pentafluge.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 886 Lines: 23 On Sat, 2007-05-19 at 00:00 +0200, Segher Boessenkool wrote: > It's not the compiler who decides -- struct layout is > dictated by the ABI you're compiling for. This is true in the case of externally-visible stuff. I think the compiler is permitted to violate the ABI for purely unit-internal things if it makes sense though, isn't it? Besides, in the case of the Linux kernel the ABI in question could be one of many. It could even be a new one which was added a couple of weeks ago, and which I had no _chance_ of considering. The rule stands -- empirical testing of what the compiler will do isn't usually the right answer. -- dwmw2 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/