Received: by 10.223.164.202 with SMTP id h10csp210391wrb; Thu, 9 Nov 2017 05:15:41 -0800 (PST) X-Google-Smtp-Source: ABhQp+RZTWcDkMVDDKtnIJpPuF9Zixp1qJvODGJymbP6xD790H7BUg/7Tt8MXVStIdSUkRHN7kcD X-Received: by 10.101.75.141 with SMTP id t13mr474193pgq.122.1510233341415; Thu, 09 Nov 2017 05:15:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510233341; cv=none; d=google.com; s=arc-20160816; b=Z4aazzI6IOQl7a0S0D2MAEK866/EeUgB0Lw7Njo7D0VFyJt0ByAKEJ1FTcZjg1k6NZ NMlRA/8MXNdnENDpcUkFyRbqjqsfIi0aJ1cONunhYhT0eVwcteQQd9yOCL8GkKdqUS/V NmWjH4jqlqKB346IHQPg+R2lZNDLFmU8EF2X9kaZm9zlz1ifO1Phd65qz6wuQrpOJR5a JaEbBGk9RNkgingoOkxk5hqOMDaMHBNYsmMhNduYguI/M7K55mU7JmNvX4d3mqoGUZiA tfAPB8tI0xSeZluw+WUqk0bWjTvHriy+Ez1eWbFZnHMDWMPEN3D8b7kX3k+rw865M9k0 cVFg== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=KVLT9+ce8r0jvnmVGPNTtboB5VCjD4fsaTd3Nl6ZMM0=; b=q0qFbLR45g9JHaB998wF+aBuGDb+5qlKX+a2nsBNkwhU3K935ZHDWmwhd452mnn9N2 Jp9qb8Ybap6UUl4tRYI4GcvLvC1B3hCyNrh8VpscK/HWku7vUly06wF3OswyFLv4cxaa wI3Hvjfgy8dlNGLAft8EBldSwgh2wbAAuYCs4Xqpc6+mvqIa6bzSxQbhfwovOpfwx3fP t0t83+loiXP9HSt6dxcBzw9e7+hdCOR0C/0OSPbPwU1t9X4NrXUPMkzAZkYHCDOzxfk3 Bth1eHFdH44krUY9h8f0uOEQ4yfVZUNuDqhXlfFCIlrgZucuBb7NJaFYva0i3t+RAQ+q wuSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oKVJckV9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m20si6789809pfi.179.2017.11.09.05.15.30; Thu, 09 Nov 2017 05:15:41 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oKVJckV9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754692AbdKINNL (ORCPT + 80 others); Thu, 9 Nov 2017 08:13:11 -0500 Received: from mail-vk0-f66.google.com ([209.85.213.66]:50264 "EHLO mail-vk0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753227AbdKINNJ (ORCPT ); Thu, 9 Nov 2017 08:13:09 -0500 Received: by mail-vk0-f66.google.com with SMTP id h82so2548899vkf.7; Thu, 09 Nov 2017 05:13:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=KVLT9+ce8r0jvnmVGPNTtboB5VCjD4fsaTd3Nl6ZMM0=; b=oKVJckV9NCknZ0TXUNavehQkwUfts93upl/DKcluWGlOUkTYhpGwZ8OLOE1Xa8/uxV 8KS9VTVW3CFZe/fjvWWEwVJ6vsk5FPFNU66Krokh0U+W4R0heqiQzWc/ao4AyW3LonDP 6VwtcZvWgsoNkFqao6Xplyo4q4QAZR4Xdm4L2pgNU/6RqTvfMbrnq0zyJ3JlSYoeyTu4 kGxrMAvrmJ+qe5GYTqmtmGmhkGXkrH0H+VSwXEUXFpoZVCewEBUqjhTgzovmjbiwDDyw oggObGS5tF72JZF9XrxTLTUBX90TR0scAeM8V+loPAJYgvGaeYTlDkIoTtlEB8bVwT1z 09gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=KVLT9+ce8r0jvnmVGPNTtboB5VCjD4fsaTd3Nl6ZMM0=; b=o+qrkJsnZyhOn1AlX5VlK5eza0ktFtN3qKPWHDAz2kqDXVo0Y06+Yko6eq5a2AsV1O Sa9HfXRPBSbor04nFNIyhwsiI2r0ss8Mjo1ybyt9hiyAkhj53htzBUYQ4e8hUgQxh4IT CuKsbngRzTJ8+TMKv6zhE83grVa1t98FYQpV8EYBM8lhpXfe+XsK/OmiBqC9m4qTFKjj pab5U1NtKzBwPZ0ssaY/SQ9YyUSj3/Gcj6+AcWqpBr7lzjukMy+zMy7TkFp0Q2B8dQTM kRUoG2RWmxPiU870xdIWq5D2HSi0AOVtO3yim8cBqEknnaej36evhfHGxbVH4A+Zbk1b BLwA== X-Gm-Message-State: AJaThX6N4+yMSnYVS0i65lYXi2e5D0yQvS2c4npNHw4OKW4cz6dJJE0q e3jdII7PZwPu7+nAlH36y5dYw1up95AI9DQPj4I= X-Received: by 10.31.4.18 with SMTP id 18mr324406vke.78.1510233188384; Thu, 09 Nov 2017 05:13:08 -0800 (PST) MIME-Version: 1.0 Received: by 10.176.0.169 with HTTP; Thu, 9 Nov 2017 05:13:07 -0800 (PST) In-Reply-To: <20171109083452.GA10787@infradead.org> References: <20171109061652.14948-1-luc.vanoostenryck@gmail.com> <20171109061652.14948-3-luc.vanoostenryck@gmail.com> <20171109083452.GA10787@infradead.org> From: Luc Van Oostenryck Date: Thu, 9 Nov 2017 14:13:07 +0100 Message-ID: Subject: Re: [PATCH v2 2/2] sparc: pass endianness info to sparse To: Christoph Hellwig Cc: "David S . Miller" , Sam Ravnborg , sparclinux@vger.kernel.org, LKML , Heiko Carstens , Arnd Bergmann , Martin Schwidefsky , Babu Moger 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 Thu, Nov 9, 2017 at 9:34 AM, Christoph Hellwig wrote: > On Thu, Nov 09, 2017 at 07:16:52AM +0100, Luc Van Oostenryck wrote: >> sparc is big-endian only but sparse assumes the same endianness >> as the building machine. >> This is problematic for code which expect __BYTE_ORDER__ being >> correctly predefined by the compiler which sparse can then >> pre-process differently from what gcc would, depending on the >> building machine endianness. >> >> Fix this by letting sparse know about the architecture endianness. > > You're posted patches for this for about half a dozen architectures > now, but we also now have generic Kconfig symbols for the byte order. > > I'd much rather see this done in generic code than hacking it up > everywhere. OK, when I wrote these patch (in June, IIRC) there wasn't yet the generic Kconfig symbol. I'll see what can now be generic and what need to stay specific (for example, ARM need __ARME{L,B}__, ARM64 & MIPS are in the same situation as are a few others archs). -- Luc Van Oostenryck From 1583576828395367221@xxx Thu Nov 09 08:35:49 +0000 2017 X-GM-THRID: 1583568171624506780 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread