From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Morton Subject: Re: linux-next: build warning in Linus'tree Date: Tue, 25 May 2010 18:20:40 -0700 Message-ID: <20100525182040.f1882d0a.akpm@linux-foundation.org> References: <20100526110506.f2f4f22c.sfr@canb.auug.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from smtp1.linux-foundation.org ([140.211.169.13]:39089 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759158Ab0EZBU6 (ORCPT ); Tue, 25 May 2010 21:20:58 -0400 In-Reply-To: <20100526110506.f2f4f22c.sfr@canb.auug.org.au> Sender: linux-next-owner@vger.kernel.org List-ID: To: Stephen Rothwell Cc: Linus , linux-next@vger.kernel.org, linux-kernel@vger.kernel.org, Joakim Tjernlund On Wed, 26 May 2010 11:05:06 +1000 Stephen Rothwell wrote: > Hi Linus, > > Today's linux-next build (powerpc ppc64_defconfig) produced this warning: > > lib/crc32.c:53:22: warning: "__LITTLE_ENDIAN" is not defined > lib/crc32.c:53:22: warning: "__LITTLE_ENDIAN" is not defined > In file included from fs/jfs/jfs_types.h:33, > from fs/jfs/jfs_incore.h:26, > from fs/jfs/file.c:22: > fs/jfs/endian24.h:36:101: warning: "__LITTLE_ENDIAN" is not defined > > and more of the same ... > > Introduced by commit 4762bbc1a3a1f22095278b74dd1b8cee04858641 ("crc32: > use __BYTE_ORDER macro for endian detection") and (probably) commit b3b77c8caef1750ebeea1054e39e358550ea9f55 ("endian: #define __BYTE_ORDER"). > hmpf. Does this fix? --- a/lib/crc32.c~a +++ a/lib/crc32.c @@ -26,6 +26,7 @@ #include #include #include +#include #include #include "crc32defs.h" #if CRC_LE_BITS == 8 _