From patchwork Mon Feb 18 21:07:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 158648 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp2935744jaa; Mon, 18 Feb 2019 13:09:01 -0800 (PST) X-Google-Smtp-Source: AHgI3IaAtDX9uCX3TwKfAiyRmsN0H/TUEslQk3E+P+CMYEfX7CdolZNjuO6s2s3DjON9iuTc3BfE X-Received: by 2002:a63:d157:: with SMTP id c23mr20560175pgj.170.1550524141217; Mon, 18 Feb 2019 13:09:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550524141; cv=none; d=google.com; s=arc-20160816; b=0jYp1bBbMJAO1E/l3e8L1jUjqsbhxFDGngQA+ZAW4RD+oIvAzvZqojEmNFdQgP+2u3 8+L4G/bJ1L4y3NH+Uw4JmINQCUtkGIt2vCWRVR/pnvivu1gF5vTs/oG21PN02WCzihd+ 5FrbdAFzhhJ3uhJa4XxtskPreQF//u7fgmiwEx4X98RIwXKfKBO7yb2ZT+8JvaUUGMCJ wc9W+Cw2iKVJxKKJFz0BWoyRJTO1CwOBO/v/+8lhFkT8FHWY22A6lt1hjlzEqqfUdEKT zjnhK1/tboERHo0GikmZfrnWzl+ZIBve3UXqQdiWaL21oB8E125xid28Xv9OJoSRpB37 ZFMg== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=RTLOp5RKJYIxgRFjC79GV+utQwquF2imnJNeyIKaPnQ=; b=zDeARPvRC3Ocu/tKJTD/khkiCqOmiDlw/RH0JO0gxhhBU6oY3SB6CIWJDP95e2LowI iTli0VG+2f1eOdFTrtgA3uAJDliPzHUbyg55RFsl+drUTrNdkhOP39hU6v5r9TRa06SL 6BY/9zAgU5YQNhZAcDvQRozTxUVoZkcaZYgiqWy8Jfi3wWz9ckt1H+30CnMiVSC591xJ OdcSSRrxZlYH0OHuHSvTKcvVfovblIM70NOYXXoXgBncw6Llka0ALTx5+Smv/E+KCem7 ZhmcYMBBQMiEM4VykmMWyZ3P9dVj+jrf6BiLXxDx76aeQS9uT/w0smoSnaODgFAi2bts rIuQ== 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 h3si14097208pgc.354.2019.02.18.13.09.00; Mon, 18 Feb 2019 13:09:01 -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 S1730261AbfBRVI6 (ORCPT + 32 others); Mon, 18 Feb 2019 16:08:58 -0500 Received: from mout.kundenserver.de ([212.227.17.13]:52359 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728062AbfBRVH7 (ORCPT ); Mon, 18 Feb 2019 16:07:59 -0500 Received: from wuerfel.lan ([109.192.41.194]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.145]) with ESMTPA (Nemesis) id 1MekKJ-1hVzpn14AH-00akyl; Mon, 18 Feb 2019 22:07:30 +0100 From: Arnd Bergmann To: y2038@lists.linaro.org Cc: Thomas Gleixner , linux-arch@vger.kernel.org, linux-api@vger.kernel.org, linux-kernel@vger.kernel.org, yury.norov@gmail.com, linux-arm-kernel@lists.infradead.org, linux-hexagon@vger.kernel.org, uclinux-h8-devel@lists.sourceforge.jp, Stafford Horne , Vineet Gupta , Palmer Dabbelt , Guo Ren , Greentime Hu , arnd@arndb.de, linux-riscv@lists.infradead.org, Guan Xuetao Subject: [PATCH 8/8] riscv: Use latest system call ABI Date: Mon, 18 Feb 2019 22:07:12 +0100 Message-Id: <20190218210712.3503891-9-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20190218210712.3503891-1-arnd@arndb.de> References: <20190218210712.3503891-1-arnd@arndb.de> MIME-Version: 1.0 X-Provags-ID: V03:K1:ScKittBUPbtTQVR0D2l9QJ/Xwbz5RAo/fF1oCAct/9ud6octFcV h3yKXHywP14xKDxJaVLEsUWPE3OmqCjnG82aCB4NUdkfbVY7hwv4QqVPvKB1vAHJ19xcaO5 3xAwwTl6rnM1agEMyLmSR6J//chNkfRHVVpRX4ULBuwjtaigY5FA4YB1h9617BWsOOYJd8J fZOQ9NbBzqv5qvep4QBaw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:o9dJBFc/2PE=:6OUQhfzYWqi4WunWGXaGYB f8vS8yA6t8rxXrEjV2+dgiT8v9CkTOE5ltkLO1zfySqpw9H5yP4F0tmidAyGQKJ18jc2Qyp94 12pypKf9UmKVK0cryzzr6qL/Yd7V+vqidT+8nqsm9QdjbFqAc9oM7DNzuVibjvheQ575PHNon Mkcdar5U2VYCW9MNIVaGPXl7REnT6LfBbW7cKOSXDJ5Ueq6q+FqEBKs8oNtXSfKAtkQ6rlLAN rJhAaxiN2ekwUPA2db0cmGB6ORpu86ikvL7CCJ6phhyUf18Sj6Z+TlT/Jpe2HRzdBFxRSaYvQ DVhHv05ZNrwohLC1oTH7uSavLNKG003rJPSpe1+0gP2g1lBzc3paQSXYX+4pHayuHNOPwyeTt G0OOTppm5+VkOO8Duiax8ns/IvgW45ytBJ3BgpkjOjafbeOfmsyjSMoOzLv7IYCk+25Op6WFS YBBLvab8oC/VSpr/Kn6RGM+0ag37Y9rpso+qx6z4QOS9k+wtjuSC+9bVcCWGUWN0P253djT0F U8R9lm90BTHgXMmBSrCRhNsU8LQ/HJFHjt3A15sYM23jsPlBKWZl8GQeh4KXdeCjaJbGM4kgI gjI6yl7I8ImAunRYolHOLl+VULxe9YqMH94pqQHuIuu+TEguAJfxe5f4F4DYeHuKz1sxnZhts JD8zXIPwT20T6Or/Fu7ywh3ogDuoLSaL0IxeXGWpKnHv2g1KT62daFuvl0mG/exugc4Oc4PUZ HDKrpRF9L+odFkMf/xPku6J4TybLaPqhB2kBrQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We don't yet have an upstream glibc port for riscv, so there is no user space for the existing ABI, and we can remove the definitions for 32-bit time_t, off_t and struct resource and system calls based on them, including the vdso. Signed-off-by: Arnd Bergmann --- arch/riscv/Kconfig | 1 - arch/riscv/include/uapi/asm/unistd.h | 5 +---- arch/riscv/kernel/vdso/Makefile | 2 ++ 3 files changed, 3 insertions(+), 5 deletions(-) -- 2.20.0 diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index 09fa3a87bf30..feeeaa60697c 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -11,7 +11,6 @@ config 32BIT config RISCV def_bool y - select ARCH_32BIT_OFF_T if !64BIT # even on 32-bit, physical (and DMA) addresses are > 32-bits select PHYS_ADDR_T_64BIT select OF diff --git a/arch/riscv/include/uapi/asm/unistd.h b/arch/riscv/include/uapi/asm/unistd.h index 486a288b454c..0e2eeeb1fd27 100644 --- a/arch/riscv/include/uapi/asm/unistd.h +++ b/arch/riscv/include/uapi/asm/unistd.h @@ -17,11 +17,8 @@ #ifdef __LP64__ #define __ARCH_WANT_NEW_STAT -#endif /* __LP64__ */ #define __ARCH_WANT_SET_GET_RLIMIT -#ifndef __LP64__ -#define __ARCH_WANT_TIME32_SYSCALLS -#endif +#endif /* __LP64__ */ #include diff --git a/arch/riscv/kernel/vdso/Makefile b/arch/riscv/kernel/vdso/Makefile index eed1c137f618..fec62b24df89 100644 --- a/arch/riscv/kernel/vdso/Makefile +++ b/arch/riscv/kernel/vdso/Makefile @@ -2,9 +2,11 @@ # Symbols present in the vdso vdso-syms = rt_sigreturn +ifdef CONFIG_64BIT vdso-syms += gettimeofday vdso-syms += clock_gettime vdso-syms += clock_getres +endif vdso-syms += getcpu vdso-syms += flush_icache