Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp3043322ybx; Fri, 8 Nov 2019 13:11:02 -0800 (PST) X-Google-Smtp-Source: APXvYqwTectuDE/WexvJZB+ToIl8d53Cw9NvdLN9XY1kS3vMhcWyCgMd9szRJgWPiyy8nYcq4s3l X-Received: by 2002:a17:907:447b:: with SMTP id oo19mr10576607ejb.81.1573247462236; Fri, 08 Nov 2019 13:11:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573247462; cv=none; d=google.com; s=arc-20160816; b=JRS0JbNGhoZ4wruzviqjn13WjEYDhDKABcPqFp0jeMelV3XnbtvaXqeWm6gFwxjYZB Aj9Ta83jyQgYR2oe+pDRbi0ViPzpBd/hNVyHRVRgojYDleRdFXsRU8A6DeXSnlBM/4fz U8bopdjxxyGRbC0dNHQALbKQSudWuFsMGABEpJ2MKeL7m0+roeN5kxns85HUmOGjnhJs 3mj3DspB1OJA9WRxd7ochuYVh2IvcnA8hJ/S0DExUZHTaioUDdJkpJmee40TEn8twLGK r24BI9yIPERW/cWf2syVHCwKPpErG59clPtEwqL0PIUlIenFseTUizLRhOyIgxYYTN9F L1tg== 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=k+GeTuMPmpo4E5ZzcaqHSBsJWqlQs+SwSAf7fEC0bhc=; b=Y3FX5qb787G9tBsdbi7icNLvH8JvzBhlU5h2GVMci3N2+qXV7lOLOngVWTYVP59vsZ B8ojgJbjw+HX/1j5fQ75erIjUO0fLx5Lo6P/zHai1xNK63BTv0UU3X+QuP5O9o+LEhRg yy151tn2eaTXXvj5zLPwZ+JKdCDNI0BZs9eQZ/3EF0lqoMh3EDwcH5tTlEGXKio0cVfj onASAAoKyAaKblaRgwXK3Dj3lhzH6DzkCQ3SmwCAVfUfouHoIiydVwDtm6ZPa4yGgW3+ JDoH0IpnK4eju776YGA7MgfIvfFobNC8Rvz69f3STPZabJI/VrblDfr6QGGmk5mR/8Jv OvhQ== 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 f6si5504918edl.442.2019.11.08.13.10.38; Fri, 08 Nov 2019 13:11:02 -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 S1732023AbfKHVIy (ORCPT + 99 others); Fri, 8 Nov 2019 16:08:54 -0500 Received: from mout.kundenserver.de ([217.72.192.73]:33093 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726349AbfKHVIy (ORCPT ); Fri, 8 Nov 2019 16:08:54 -0500 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.145]) with ESMTPA (Nemesis) id 1N5mSj-1hrrj32IW3-017H8q; Fri, 08 Nov 2019 22:08:46 +0100 From: Arnd Bergmann To: y2038@lists.linaro.org, Arnd Bergmann Cc: linux-kernel@vger.kernel.org, "David S. Miller" , Deepa Dinamani , linux-arch@vger.kernel.org Subject: [PATCH 02/23] y2038: add __kernel_old_timespec and __kernel_old_time_t Date: Fri, 8 Nov 2019 22:07:22 +0100 Message-Id: <20191108210824.1534248-2-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20191108210236.1296047-1-arnd@arndb.de> References: <20191108210236.1296047-1-arnd@arndb.de> MIME-Version: 1.0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0lRApWFEtY/5cWnHsJorajJ0X7o/DPVdd0yQGLCJgwJJHwPfxQk8CCJRDu+dHnbB40MKh 6U2XmdRyQoyHCsXkr4TeAFe2JZbkwjMe66DT8QLzALG9LVsfhFh1j4HmvkK8vYUosdOTd35wW +m0gcm31rHmV5xpdHInQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The 'struct timespec' definition can no longer be part of the uapi headers because it conflicts with a a now incompatible libc definition. Also, we really want to remove it in order to prevent new uses from creeping in. The same namespace conflict exists with time_t, which should also be removed. __kernel_time_t could be used safely, but adding 'old' in the name makes it clearer that this should not be used for new interfaces. Add a replacement __kernel_old_timespec structure and __kernel_old_time_t along the lines of __kernel_old_timeval. Signed-off-by: Arnd Bergmann --- include/uapi/asm-generic/posix_types.h | 1 + include/uapi/linux/time_types.h | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/include/uapi/asm-generic/posix_types.h b/include/uapi/asm-generic/posix_types.h index f0733a26ebfc..2f9c80595ba7 100644 --- a/include/uapi/asm-generic/posix_types.h +++ b/include/uapi/asm-generic/posix_types.h @@ -86,6 +86,7 @@ typedef struct { */ typedef __kernel_long_t __kernel_off_t; typedef long long __kernel_loff_t; +typedef __kernel_long_t __kernel_old_time_t; typedef __kernel_long_t __kernel_time_t; typedef long long __kernel_time64_t; typedef __kernel_long_t __kernel_clock_t; diff --git a/include/uapi/linux/time_types.h b/include/uapi/linux/time_types.h index 27bfc8fc6904..60b37f29842d 100644 --- a/include/uapi/linux/time_types.h +++ b/include/uapi/linux/time_types.h @@ -28,6 +28,11 @@ struct __kernel_old_timeval { }; #endif +struct __kernel_old_timespec { + __kernel_time_t tv_sec; /* seconds */ + long tv_nsec; /* nanoseconds */ +}; + struct __kernel_sock_timeval { __s64 tv_sec; __s64 tv_usec; -- 2.20.0