Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757897AbZAGFL4 (ORCPT ); Wed, 7 Jan 2009 00:11:56 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751941AbZAGFLr (ORCPT ); Wed, 7 Jan 2009 00:11:47 -0500 Received: from smtp1.linux-foundation.org ([140.211.169.13]:50158 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751423AbZAGFLq (ORCPT ); Wed, 7 Jan 2009 00:11:46 -0500 Date: Tue, 6 Jan 2009 21:11:42 -0800 (PST) From: Linus Torvalds X-X-Sender: torvalds@localhost.localdomain To: Benjamin Herrenschmidt cc: Linux Kernel Mailing List , Harvey Harrison Subject: Re: powerpc: introduce asm/swab.h In-Reply-To: <1231304552.14860.72.camel@pasglop> Message-ID: References: <200901070400.n0740Ore002063@hera.kernel.org> <1231303340.14860.61.camel@pasglop> <1231304552.14860.72.camel@pasglop> User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 802 Lines: 23 On Wed, 7 Jan 2009, Benjamin Herrenschmidt wrote: > > Even if fixing that to use __swab32() instead, then it fails because > this is defined after it's used. I worked around it using fswab in > there instead. That's the same patch I just sent out (but you changed comments too), so I obviously agree. x86 didn't see this (even in 32-bit mode) because it doesn't use that odd __SWAB_64_THRU_32__ case, but does the 64-bit swab with native code. Can you also verify that it works for you (not just compiles), just so that I can commit it? Linus -- 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/