Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2511548imu; Fri, 14 Dec 2018 12:14:43 -0800 (PST) X-Google-Smtp-Source: AFSGD/Vtz0Dx5iymq9XEWGzX+7mW4XBJEHpG9aQ8VYeCszJjPcCPgj4vUfj3QCvMU7B118hH1XvW X-Received: by 2002:a17:902:7b88:: with SMTP id w8mr4111091pll.320.1544818483245; Fri, 14 Dec 2018 12:14:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544818483; cv=none; d=google.com; s=arc-20160816; b=jnYNsYYmI0JQn2DosOn3eIL4Lk9cTzpP82FJvrGKkJ2yBJ9+h82mbDh2D+p4ejG9Lf 58gyMOHwfuPn82sO6MHI+m9cdM4xRnZOQGPf1GzD2zjma6S6MRCYTsD3m4yseHPabWJP ne3IbwvMg2Vm47suOG1ayWU8/9qHKjlZ/J8uVHA+SPQn++lzJ4vpxbQ4mo8v7wJAT5Z4 zHu55E3r14R7E3ViaWkqqVzDQQJp5z6JX5AGbW2yZ8xCJtIuwLt6SFQjZyMF1scp16gt O04V9cdoKF+/0wn91YVWoHm7HK6z0Mx5e+UDb/SEs7H2BP+76MD9HNL4Kd4WC4O72cx3 qyJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=KqEkWFkAWUVvYJVVihWdKF2X1UUmRvfpRzMIa8xE/f0=; b=ZTLRCyW08dveT3WoTjpLWXOzcmBx/BDCsbCE21azks1flCt5BRnbdG0pVZ2B2U483t l6DGiWHOw288/ZeOghUbN9XMNaeO7A+7FpdxUYNqTjatwpYb7EUqh6TbCDtkZvqblFi4 cUTXXH95H2+uDyhEqCVLVQdwB3r704tV8YuPmvIeWirewN6fg6RYgl+3gpOP0pl5Fjk7 TRT0Ek8ty21b3P29rYMPZxh6023FDLsFbv1/ukP4ba+1B674F6IHMAAt/AnXcUB54hn0 z1E8CqQB3ufRUWaii32GewZR9wFLHDDyhtdmp2dv4zrpx1eBKMYWXljd6z13QkvqRIiA lK7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=WmHAur5w; 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 l38si4834958plb.48.2018.12.14.12.14.24; Fri, 14 Dec 2018 12:14:43 -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=@linux-foundation.org header.s=google header.b=WmHAur5w; 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 S1730756AbeLNUNY (ORCPT + 99 others); Fri, 14 Dec 2018 15:13:24 -0500 Received: from mail-lf1-f65.google.com ([209.85.167.65]:43276 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729808AbeLNUNY (ORCPT ); Fri, 14 Dec 2018 15:13:24 -0500 Received: by mail-lf1-f65.google.com with SMTP id u18so5168977lff.10 for ; Fri, 14 Dec 2018 12:13:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=KqEkWFkAWUVvYJVVihWdKF2X1UUmRvfpRzMIa8xE/f0=; b=WmHAur5wUEIB+VBnKyv4hlZRbrrTjUOjMuE2uY0ERLXNjFL8VbHqf2e33XSOYP1CuR ZmUgmg1+LIztSsfuPkcs7cDE9KilT2EWhXdNhj/qYOy/1Xc6jc2jCgoOFh8YrR3S+nNn g8rXXOxxJvWAw8RSrfmTq15kyRFoM1IwXJAys= 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:content-transfer-encoding; bh=KqEkWFkAWUVvYJVVihWdKF2X1UUmRvfpRzMIa8xE/f0=; b=sk8rlSPtiOXqTVDoFqooRXJ9KSH+c5ru7vU6V1m3G/DnH2/pRA9EI8jsZEae/7z+ma FQc3OwcSQP3iIRicnU004UQ+7iNt2VUDOtEMO8+srn03KCKECz8p88vlEL7Dd+LKBGNr 6u+38qYONc9WAysDioiFGP7o6bR6bjWH2Q4d9Q4CQO7A9OcTU+SiZruz1sLUfw06fxgE czW5ErVb2PUvPQEvjfqTjh461mUz/GUDCfPrC5mQSdqbhVz8GbvcXh7DWiSL8gGfZfvJ R4Hddht5OmpVEX5kPvpRkKhTAsM+ssOKJ0vfG6/0l1dbKrCHx7ngZyXI+VwdFPjCBlln gTfA== X-Gm-Message-State: AA+aEWaFXLSYFpLgQVZljM3ouMF0ux05d4jXdYZpWraMq3xqbHqISJgt 9qkAEffpGpY+y4uNzf/T1e28grrhJD4= X-Received: by 2002:ac2:42c5:: with SMTP id n5mr2520886lfl.115.1544818401774; Fri, 14 Dec 2018 12:13:21 -0800 (PST) Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com. [209.85.167.45]) by smtp.gmail.com with ESMTPSA id u21-v6sm1022502lju.46.2018.12.14.12.13.18 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Dec 2018 12:13:19 -0800 (PST) Received: by mail-lf1-f45.google.com with SMTP id e26so5191335lfc.2 for ; Fri, 14 Dec 2018 12:13:18 -0800 (PST) X-Received: by 2002:a19:982:: with SMTP id 124mr2500991lfj.138.1544818398271; Fri, 14 Dec 2018 12:13:18 -0800 (PST) MIME-Version: 1.0 References: <70bb54b2-8ed3-b5ee-c02d-6ef66c4f27eb@physik.fu-berlin.de> <20181213160242.GV23599@brightrain.aerifal.cx> <20181214161732.GY23599@brightrain.aerifal.cx> <87mup8gj1y.fsf@oldenburg2.str.redhat.com> <20181214165535.GZ23599@brightrain.aerifal.cx> In-Reply-To: From: Linus Torvalds Date: Fri, 14 Dec 2018 12:13:01 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Can we drop upstream Linux x32 support? To: Andy Lutomirski Cc: dalias@libc.org, fweimer@redhat.com, bernd@petrovitsch.priv.at, glaubitz@physik.fu-berlin.de, Andrew Lutomirski , "the arch/x86 maintainers" , Linux List Kernel Mailing , linux-api@vger.kernel.org, Peter Anvin , Peter Zijlstra , bp@alien8.de, vapier@gentoo.org, hjl.tools@gmail.com, x32@buildd.debian.org, Arnd Bergmann , Will Deacon , Catalin Marinas Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 14, 2018 at 10:58 AM Andy Lutomirski wrot= e: > > Does anyone know *why* Linux=E2=80=99s x32 has __kernel_long_t defined as= long long? It *needs* to be long long, since the headers are used for builds in user mode using ILP32. Since __kernel_long_t is a 64-bit (the _kernel_ is not ILP32), you need to use "long long" when building in ILP32. Obviously, it could be something like #ifdef __KERNEL__ typedef long __kernel_long_t; #else typedef long long __kernel_long_t; #endif or similar to make it more obvious what's going on. Or we could encourage all the uapi header files to always just use explicit sizing like __u64, but some of the structures really end up being "kernel long size" for sad historical reasons. Not lovely, but there we are.. Linus