Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5172894yba; Mon, 13 May 2019 06:38:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqy+lMzAsD7m+Mha1Igh3r603ilEtbsOGcKrJn1vPsZzwwOjfZTg5GTMGpkGb0j6Ak0A95DQ X-Received: by 2002:a17:902:2847:: with SMTP id e65mr30810465plb.319.1557754684404; Mon, 13 May 2019 06:38:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557754684; cv=none; d=google.com; s=arc-20160816; b=F1zHq8mPyEhPmDZdKeCPATPxoT7/9hBSoVRALYb8efjEYT4PRytJ0/cvmyQGQmiDWN 19SlajHHyPz+/1OfPIReqeJjkuvEig4dKdj3HAZPIYzAXXiOuwfhnLfcEgqweWaM4qeK 6oBB2tAq4YIv28TDbmsSXdN/+GNfZS6jy9EXgTgGu2Ec1q9qUR2v3WpzhKlTNvp8WlUj 2UM/hKESsjbQOKfhFFQt7jkm24xCI/0Ky3BeiFQArtJt6ESfWzZ04cJwkZswucCef+ip 1ws1o9QB4ii+X1R0h5QDbKo+E8du40J9jEvE61KtVjIrdV8+dhS7VXiG686XgGr40Eme ZRcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=eqTwAHGHjiBEazCvmfgQN3YPSQO700pyrPFhanAqVuI=; b=IK7gzxp/aXc7CiUl2TfWpvi/W8yayNWcuHykke4HBjhqFXRA0bX1BD6PRGMIp/7rND 5LTp9rU+xZc8Ru/6ge2O3B7RS7DS2g/0a4FObJ0wbNTw7ETx58S+BzCBJ65vR7z2gcJq g9w2OEuHaIlKTS7/1QL88cDTjUw+/MY+ZfBpqe+79dKEhe0ftZZ5ubdDLLS/07G9O510 BaBLIxsaOH5Gt9kBpvWaxz8iixfxZgfMYsyW5tkWguRvbwvwfvC4ZSzXUFgRgMtftCe4 MILn6ylktDh8uHSwHlEx23SDnOJIx+qiy1i9Unfa1B45EQo6TSVnytAcA7jdD/hK1KvW 1+Ow== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b5si7405925pgd.557.2019.05.13.06.37.47; Mon, 13 May 2019 06:38:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729622AbfEMME5 (ORCPT + 99 others); Mon, 13 May 2019 08:04:57 -0400 Received: from verein.lst.de ([213.95.11.211]:38873 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728268AbfEMME4 (ORCPT ); Mon, 13 May 2019 08:04:56 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id 4D9D868AFE; Mon, 13 May 2019 14:04:35 +0200 (CEST) Date: Mon, 13 May 2019 14:04:35 +0200 From: Christoph Hellwig To: Dmitry Vyukov Cc: Michael Ellerman , Arnd Bergmann , Nick Kossifidis , Christoph Hellwig , Linus Torvalds , Andrew Morton , linux-arch , Linux Kernel Mailing List , linuxppc-dev , Andrew Donnellan Subject: Re: [PATCH, RFC] byteorder: sanity check toolchain vs kernel endianess Message-ID: <20190513120435.GB22993@lst.de> References: <20190412143538.11780-1-hch@lst.de> <87woiutwq4.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 13, 2019 at 01:50:19PM +0200, Dmitry Vyukov wrote: > > We did have some bugs in the past (~1-2 y/ago) but AFAIK they are all > > fixed now. These days I build most of my kernels with a bi-endian 64-bit > > toolchain, and switching endian without running `make clean` also works. > > For the record, yes, it turn out to be a problem in our code (a latent > bug). We actually used host (x86) gcc to build as-if ppc code that can > run on the host, so it defined neither LE no BE macros. It just > happened to work in the past :) So Nick was right and these checks actually are useful..