Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp236720yba; Tue, 14 May 2019 23:55:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqydKoN/Ohh8PJ9yXjekk9fYYsHD0wJuYFyvBw/CHz+W2KT5G3/vLomZ83K2XEp37C6Wup7v X-Received: by 2002:a63:7c6:: with SMTP id 189mr41728234pgh.247.1557903316797; Tue, 14 May 2019 23:55:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557903316; cv=none; d=google.com; s=arc-20160816; b=DL37PWv9gG9kHwCVL1Qka1GJCeAbk02bCFcKjeaaqXANIRvcqS6rvxZOvf+mH/nIdC lFSCJceJfrHdYyWMFGkgp+VHmJvsEv77+9xW0//NN+Ibjba+TzOXfYhm+r6JUcnmXX8f 5EbeLnZ1BUgfcWezHFBdlbhcOkgvNHb3Obba1cYsdmIkeDGWu6ozGC+DO1zxMUHwDHAA YkH98/hahkUUNpG+TB6GzVXuRQjGJyQRh7Zt3FZESkiG9Zbnfq3tkIWxq0jTm+gE/M+k lYSCzsjWRaoXYPYPU9lhJVyXsSGxJMdMNNHjMNyjyRwqq6It5m8QSzXIJUCiIl5hWMFT xDAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=R4MU58D5iAxx8dZmBy7pxRNzyYT0opcEi8NKuCcjlcM=; b=FLEx3HmhlfJHTBWc5oRqMl2FZaQjBjbj8UFXefQwAl88I78HtuqxLBYaAi0BR8P5JG IQSVZO2UfoMuPqFTvOM0u8F64LvCvXRHhJVQz7GaZMsCruECwDlSvwY2fZlkVxspTBST XvW+NTR8oL7i7rabYSnOweWCDlM/2PATJthWxV0V29+HpRXyU1UCo+rkK8wkU0J4ZTga t6LEIHQFqEhs5OLL2Fzbj0qolOuX14w4whicdC/GElbDixPtg9gRzPRguZ1Xh59nkTan NSLecgZlsgtku/T67XWOhSUPTzYxGEIz6tNgq+wviTiAx693oY6n9CQ8XSSqtb+xX61e mOiw== 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 8si1110488pgp.80.2019.05.14.23.55.01; Tue, 14 May 2019 23:55:16 -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 S1726525AbfEOGxW (ORCPT + 99 others); Wed, 15 May 2019 02:53:22 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:46310 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725902AbfEOGxT (ORCPT ); Wed, 15 May 2019 02:53:19 -0400 Received: by mail-qt1-f194.google.com with SMTP id z19so2008286qtz.13; Tue, 14 May 2019 23:53:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=R4MU58D5iAxx8dZmBy7pxRNzyYT0opcEi8NKuCcjlcM=; b=CcS66rG+V4L7kDRz3rPQNpM+SpWY3lsWEDEyXfcxVHVHhCgOPSG3l5ZDYOK2EGsEJA DSSi7Ctxlcc8hO4tlZwPI13K2aEIF8IYxihyqB3DWYwD6s0Q1R/Fyxi02iC/BfFkDt1+ D+W84PvonIjuFRQRrwe7q2v0oQmMqAEGByj0c8toQGV5zFhjnVo3UHXZs1Y/O0z6ZEKL LyPTuFfKHiYdmEwafTPE7659L0w1RJOuJONLvl4CfYMw79oNyt3MFTXUlA6P/qDobOrp fRB/NEbiBSKdGAGx4hhfKTO1Bm6sDQmIhaKsWwxXuRS3nuQe4UU0wMRfU59JXlaveprv nCUw== X-Gm-Message-State: APjAAAXaMBuxYFqtNd7Nj8ae7wil3Afig/Qt+Cxt7zkOKTnLM4/xN3mG D6WeJKV3NbRl4iyxe4FlI7B0GaJdzaJDPMVh+yHnsXsL9MbLPg== X-Received: by 2002:a05:6214:10c8:: with SMTP id r8mr32745217qvs.161.1557903198321; Tue, 14 May 2019 23:53:18 -0700 (PDT) MIME-Version: 1.0 References: <20190412143538.11780-1-hch@lst.de> <87woiutwq4.fsf@concordia.ellerman.id.au> <20190513120435.GB22993@lst.de> In-Reply-To: <20190513120435.GB22993@lst.de> From: Arnd Bergmann Date: Wed, 15 May 2019 08:53:02 +0200 Message-ID: Subject: Re: [PATCH, RFC] byteorder: sanity check toolchain vs kernel endianess To: Christoph Hellwig Cc: Dmitry Vyukov , Michael Ellerman , Nick Kossifidis , Linus Torvalds , Andrew Morton , linux-arch , Linux Kernel Mailing List , linuxppc-dev , Andrew Donnellan Content-Type: text/plain; charset="UTF-8" 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 2:04 PM Christoph Hellwig wrote: > > 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.. Yes, definitely. I wonder if we should also bring back the word size check from include/asm-generic/bitsperlong.h, which was disabled right after I originally added that. Arnd