From patchwork Wed Jul 17 00:09:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 1133008 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-103698-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=wdc.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="vaLrU1Qc"; dkim=pass (2048-bit key; unprotected) header.d=wdc.com header.i=@wdc.com header.b="N6imL+cF"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45pHmx3b1Qz9s8m for ; Wed, 17 Jul 2019 10:13:53 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; q=dns; s= default; b=ZOsNOVrmUopfRYW1rYjaffY517cj1aYWJJ+Uf87evm0nOD+MFxYqH qrxbSxz/rzMtf9JpQ1/s6MD/h+jw/GCiXvVNm6lmRu+l1Eau9kWOdRegM7AkgmNc Ew9IBEs8Crn+C4zvaVD3HHhMVMyBUJJYFeQp6AgdCPm66kUYJvyMcU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; s=default; bh=miFzFFdB6cZ2/z/qPS2WGtPNvDk=; b=vaLrU1Qci24cTlKBYVnRTYwy3gJQ zBM4+ngHJvK4iQqxy5Hvs+XT/xeoGJN+r+nwLopW8wVH6gA/xPzEfMpzEdq0dif/ aAamTrUtmQcvIMqqwD+t+AakbTEYSdLg50+FLtkJhIEb+2B3xEdnGSzRpELFZLSH olX88YQCBfVnK7M= Received: (qmail 18870 invoked by alias); 17 Jul 2019 00:12:11 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 18790 invoked by uid 89); 17 Jul 2019 00:12:10 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.7 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3 autolearn=ham version=3.3.1 spammy=HContent-Transfer-Encoding:8bit X-HELO: esa4.hgst.iphmx.com DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1563322329; x=1594858329; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=qjpqZieGh2NKyOZOaNKTU0SuemUWsFrjF8mRMk15kg8=; b=N6imL+cFA/vl0yZNOgvp/pW6caVXr8rU0YVOq5WxIYejtwsB/M1HhQak k7Vh4F2ZbiBZf4dj2P4RWeKI8Ib7MZG28lpqO7eIsh47An+1eX3x8fm2K HXkIQPt7T4VOq2swdGkHoQWAY0XVGbVk2QOjuXTmHQCesj4lKEnkAw8cj 9gtgr/PoTUyZXS1KAgdTFiHdHZeUzyczbbdh2eSUFxhQwJd3FGM0wQR5N e+xbSDjATh4XotTUOo4XKH3+ixfAxD+zxO1JAJCCN7IJKimNpkkEO1qsk logOR+r8efCAGI8ypKT71qcfrzbFxbRYd/n62nE1vPtXBwE470L5BPBmT Q==; IronPort-SDR: AXLVi/iAJc92/E5C3UEpM0ghymVbaDrD3UAfdFHiK/1PGR0p8F5usT+Ywe5WhU7tOTApvaF+NI jtAUJCts6j9ywLP3VMPm/VR0g3wDR+xfIimaVIeZvWF7ZZjQzzJSouss3CLRMsIssJEV7OQkME MfGsCuGMq1AdmeJ2hOgNUgT5eh2xAf/RJk0S6nPFKKC3vCzy17zTfXcTo6UIqXYudh0U0U+iI/ 1AB55WVxtn5loZ69xQ92pARSjDdRTLdtO6Pgp6EdwpHH+yn/Z1ImOA1j2OfQJGs+3Nz1j7/EJg ytQ= IronPort-SDR: zfmMAcjAzro5g2SQTX2n+foo5OVsScJENgogJTxcXe9sSOaGdAPnVHi8a74+6qsHpqvTYYCGv6 3lrwQNq65DldWj+85MPbUEcpokdoblCwaQ4Q0t6ybMv0hJzewJv+Yvyw34CGzLVabduiRG5V50 jy3DriYk2YSh2wf5/WY91aH7s+qOqgAXLB/CeycU3VnV5co5eVb4VrNn+YLUUH7wV+riOPlQTh jVDV4YROKm8XZT3fivXYuTDCWXDoMMycjWle4fxUpgbIszceebQ3k7fPAcYfegPZ9rk+fIpvwz ppCArqJSknIiqEebcSaxzF8g IronPort-SDR: l8fmYCc3vWaEUSuKu61T1s3Owv9aF+e8B4RqwOr6UUVuD9XacGHTGGNn6C32w3HWZmOhJ+3bhz wnSBvuSAMd0rHkVd1rvV2BER4PuZQ69bkpqT4suquCJFYMiuI1brZYRwto9KhualiK92fF/TUQ r2MbfxNXHPuPtpsZamFav93fO0Q+ep/KM73Ioq5McLat+jPbLycO/2H/UzXC012tIX7/QLxio3 ib2xPDKc5BcTr7uKtcpB6kg5zzf8bAt/GwnMIrrKskKmASCmZ+CcSnJWkHEPs9LNsqvku5MoDT E3w= From: Alistair Francis To: libc-alpha@sourceware.org Cc: arnd@arndb.de, adhemerval.zanella@linaro.org, fweimer@redhat.com, palmer@sifive.com, macro@wdc.com, zongbox@gmail.com, alistair.francis@wdc.com, alistair23@gmail.com Subject: [RFC v3 13/23] RISC-V: Use 64-bit timespec in clock_gettime vdso calls Date: Tue, 16 Jul 2019 17:09:15 -0700 Message-Id: In-Reply-To: References: MIME-Version: 1.0 Signed-off-by: Alistair Francis --- sysdeps/unix/sysv/linux/riscv/init-first.c | 2 +- sysdeps/unix/sysv/linux/riscv/libc-vdso.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sysdeps/unix/sysv/linux/riscv/init-first.c b/sysdeps/unix/sysv/linux/riscv/init-first.c index 8134c79695..155a4a2c0c 100644 --- a/sysdeps/unix/sysv/linux/riscv/init-first.c +++ b/sysdeps/unix/sysv/linux/riscv/init-first.c @@ -25,7 +25,7 @@ long int (*VDSO_SYMBOL (getcpu)) (unsigned int *, unsigned int *, void *) attribute_hidden; long int (*VDSO_SYMBOL (gettimeofday)) (struct timeval *, void *) attribute_hidden; -long int (*VDSO_SYMBOL (clock_gettime)) (clockid_t, struct timespec *) +long int (*VDSO_SYMBOL (clock_gettime)) (clockid_t, struct __timespec64 *) attribute_hidden; long int (*VDSO_SYMBOL (clock_getres)) (clockid_t, struct timespec *) attribute_hidden; diff --git a/sysdeps/unix/sysv/linux/riscv/libc-vdso.h b/sysdeps/unix/sysv/linux/riscv/libc-vdso.h index b0c46f3cb7..406801746f 100644 --- a/sysdeps/unix/sysv/linux/riscv/libc-vdso.h +++ b/sysdeps/unix/sysv/linux/riscv/libc-vdso.h @@ -28,7 +28,7 @@ extern long int (*VDSO_SYMBOL (getcpu)) (unsigned int *, unsigned int *, void *) attribute_hidden; extern long int (*VDSO_SYMBOL (gettimeofday)) (struct timeval *, void *) attribute_hidden; -extern long int (*VDSO_SYMBOL (clock_gettime)) (clockid_t, struct timespec *) +extern long int (*VDSO_SYMBOL (clock_gettime)) (clockid_t, struct __timespec64 *) attribute_hidden; extern long int (*VDSO_SYMBOL (clock_getres)) (clockid_t, struct timespec *) attribute_hidden;