Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3937440imj; Tue, 19 Feb 2019 12:08:45 -0800 (PST) X-Google-Smtp-Source: AHgI3IanNqEp769v5E8DNT4lxdxj077wtW9aQVLgXtV2tofOtVvsKoR6l5da0x1nvL9wmPKL8RKJ X-Received: by 2002:a63:470a:: with SMTP id u10mr16323833pga.17.1550606925030; Tue, 19 Feb 2019 12:08:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550606925; cv=none; d=google.com; s=arc-20160816; b=JbHnRJZC6KjPU9FvrL7e7SSOopjLnWqwNhqwDWOjzJcvGyyo25Rkx5wMm7xbCGR/Vd iAT/8yeTFO0TYDDuWV3uwBQO1GVg9rfyqC61bSuwp1bc73fkdycFVjb/GYlGedcOK4yT iewb6tcNr88+WZtEtC4Ll4TTsyplvfjIbKsTOpwkh659+7vAZyecXwMa1gUQWChkv/0K CffRYlYV7WG/eJpSm3LubP+5VDUC81v8cEPrA1AZszwwf4l0aQHNvHwUcHp0of85H2Fn jO3zGA4wSIRpj4i0nYKHOYpR3szAz9GxYr9UA4xXdIwXHxeITjjHv1WTy/XHlvjtxk64 J3xw== 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=qrPDfFD419WXEO/Ox/P57kfC5mLoe6ykDtuRf6HwQCM=; b=M4qff89FrVT4YWo0d62PoHeKWg6rxdzaD80G98HyPfKjZzAdm3etPRnEiOPjS1ZrUz S4YLRz7jDBzR9Ixqfw14XWtradE9u9DdeSiiNy8yw0aLiF1MDBVPFHM/e+q3DjtMTjz+ fj8bIkNcXOx7JLjnX7RbT1n43f4mqYy4/7oTe/97wgbywAJnW0i4IHUhV5oJdsHOe8Lj dp02nqkni2vlQzYV86+LSE0c2NZ9YMMM+t6CoFjupCHn7fE9XfrYMbwAsyevGrkzj8+T XqsHY4prCYD9YWKZ3uQ00RRjkoz8AgRhc+gGAuFeZAVkOD9EvRS4IxGo9Ll7bBefsZMh GwVA== 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 j97si723011plb.292.2019.02.19.12.08.30; Tue, 19 Feb 2019 12:08:45 -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; 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 S1729713AbfBSUGW (ORCPT + 99 others); Tue, 19 Feb 2019 15:06:22 -0500 Received: from mail-vs1-f68.google.com ([209.85.217.68]:43777 "EHLO mail-vs1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729502AbfBSUGW (ORCPT ); Tue, 19 Feb 2019 15:06:22 -0500 Received: by mail-vs1-f68.google.com with SMTP id i15so9893860vsd.10; Tue, 19 Feb 2019 12:06:21 -0800 (PST) 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=qrPDfFD419WXEO/Ox/P57kfC5mLoe6ykDtuRf6HwQCM=; b=JHLp+3/zJKpS5HzeXo/J85gRYj/sDd33Jg4KKSYZ+wAljaIWJ0oXTblRSr7lLWlhJW 3fh6I49px4ZS+ZMkiBNzFDkMhrUjO3NFUIDphXotLKXNiq0mOXCgRo42OUaOpRXCkDLg wJtmy9mj3fH9a1yHpfGtVql6BU2fsANLBfdcv+XROlkNnumchBZ0vDJm7oHOixGriWYd f40g6784InPiEbdjxNZY8JoAQJpaLz5PXPwznPxJD5+ZLu8yenpfT4tVwHarTZg1eetC xooNV51YdCc76HXFsYciKv/9cd/SM2vT7hrtaa0ewqS61qs9q4o1LQp/F9XK9GMN6YMC WDTw== X-Gm-Message-State: AHQUAuZVnyjBCJjWmQ8gUt/ciKfYnI+4+9kdHPS8/WwLxFG8CgApp5EQ GaUC9+eyi7iH+j2adVVbcsEYe44VQTkaystfeiE= X-Received: by 2002:a67:ead0:: with SMTP id s16mr12174157vso.63.1550606776640; Tue, 19 Feb 2019 12:06:16 -0800 (PST) MIME-Version: 1.0 References: <20190218210712.3503891-1-arnd@arndb.de> <20190218210712.3503891-5-arnd@arndb.de> In-Reply-To: <20190218210712.3503891-5-arnd@arndb.de> From: Geert Uytterhoeven Date: Tue, 19 Feb 2019 21:06:04 +0100 Message-ID: Subject: Re: [PATCH 4/8] asm-generic: Make time32 syscall numbers optional To: Arnd Bergmann Cc: y2038 Mailman List , Thomas Gleixner , Linux-Arch , Linux API , Linux Kernel Mailing List , Yury Norov , Linux ARM , "open list:QUALCOMM HEXAGON..." , "moderated list:H8/300 ARCHITECTURE" , Stafford Horne , Vineet Gupta , Palmer Dabbelt , Guo Ren , Greentime Hu , linux-riscv@lists.infradead.org, Guan Xuetao 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 Hi Arnd, On Tue, Feb 19, 2019 at 3:34 AM Arnd Bergmann wrote: > We don't want new architectures to even provide the old 32-bit time_t > based system calls any more, or define the syscall number macros. > > Add a new __ARCH_WANT_TIME32_SYSCALLS macro that gets enabled for all > existing 32-bit architectures so we don't change any current behavior. ... (only) 32-bit architectures using the generic syscall list, right? > Since this symbol is evaluated in user space as well, we cannot use > a Kconfig CONFIG_* macro but have to define it in uapi/asm/unistd.h. > > On 64-bit architectures, the same system call numbers mostly refer to > the system calls we want to keep, as they already pass 64-bit time_t. > > As new architectures no longer provide these, we need new exceptions > in checksyscalls.sh. > > Signed-off-by: Arnd Bergmann > --- > arch/arc/include/uapi/asm/unistd.h | 1 + > arch/arm64/include/uapi/asm/unistd.h | 1 + > arch/c6x/include/uapi/asm/unistd.h | 1 + > arch/csky/include/uapi/asm/unistd.h | 1 + > arch/h8300/include/uapi/asm/unistd.h | 1 + > arch/hexagon/include/uapi/asm/unistd.h | 1 + > arch/nds32/include/uapi/asm/unistd.h | 1 + > arch/nios2/include/uapi/asm/unistd.h | 1 + > arch/openrisc/include/uapi/asm/unistd.h | 1 + > arch/riscv/include/uapi/asm/unistd.h | 3 ++ > arch/unicore32/include/uapi/asm/unistd.h | 1 + > include/uapi/asm-generic/unistd.h | 36 ++++++++++++++++++++++++ > scripts/checksyscalls.sh | 7 +++++ > 13 files changed, 56 insertions(+) Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds