From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3rYhZW6bc3zDq5c for ; Tue, 21 Jun 2016 19:02:43 +1000 (AEST) From: Arnd Bergmann To: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org, linuxppc-dev@ozlabs.org, Daniel Axtens Subject: Re: [PATCH] powerpc/align: Use #ifdef __BIG_ENDIAN__ #else for REG_BYTE Date: Tue, 21 Jun 2016 11:04:42 +0200 Message-ID: <19438935.YHQ0mr1nQe@wuerfel> In-Reply-To: <1466470260.3089.1.camel@ellerman.id.au> References: <1466080421-25188-1-git-send-email-mpe@ellerman.id.au> <7459954.Ax6T6W22CJ@wuerfel> <1466470260.3089.1.camel@ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tuesday, June 21, 2016 10:51:00 AM CEST Michael Ellerman wrote: > On Fri, 2016-06-17 at 12:46 +0200, Arnd Bergmann wrote: > > On Friday, June 17, 2016 1:35:35 PM CEST Daniel Axtens wrote: > > > > It would be better to fix the sparse compilation so the same endianess > > > > is set that you get when calling gcc. > > > > > > I will definitely work on a patch to sparse! I'd still like this or > > > something like it to go in though, so we can keep working on reducing > > > the sparse warning count while the sparse patch is in the works. > > > > I think you just need to fix the Makefile so it sets the right > > arguments when calling sparse. > > > > Something like the (untested) patch below, similar to how we > > already handle the word size and how some other architectures > > handle setting __BIG_ENDIAN__. > > Yep that's clearly better. I didn't know we had separate CHECKER_FLAGS. > > Daniel can you test that? > > Arnd we'll add Suggested-by: you, or send a SOB if you like? > Please use 'Suggested-by', the main work for this patch was in analysing the problem and writing the changelog, and Daniel did that. Arnd