Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4264411imu; Mon, 7 Jan 2019 19:30:36 -0800 (PST) X-Google-Smtp-Source: ALg8bN7l2XSu1CvPedrxTQ5II2gpHBjbd57fM3OmEwb+LLjeBsPfzfocVc+HAKIxUcxKiAF4Mp9Q X-Received: by 2002:a62:9913:: with SMTP id d19mr96945pfe.107.1546918236360; Mon, 07 Jan 2019 19:30:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546918236; cv=none; d=google.com; s=arc-20160816; b=jKdc7SoPQZvaeS9du9Tbbjd8f4FSHY9IP9bKDKGQut7wByWr3ky5GTcBlfk9hCguGk dmeUrzPMG3rGlApNqukSFy2lwEzpfzdPlAyHnarzUG1/9W03KG/TDYg7DyAzO34SMaob O1WRr3NIr4lRG8DCAteNuJaYNpVVrYHVXKuNjLH3tZKYc9fsM8hFwq+++d5Q0/PDZNS9 7WvGMvnO8aL4Pu5J2+sek7MfEEHe0Hq819zB3yBvfyhIWtpAYtdvfxb86FPHBOcEDv8N dwkgpEBnFL8fLzvsOdBKcwpAihn/Nn5eSv8gSXJ85LhNfpGjRp2cILdybncpG1r6/2+C 1KQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=9pg+Er4J0Oi1AGkskDng4P2kVR6Lyc0oMT3zgFqDETI=; b=c25zzUaWhktOOod7Hf13fIOVvMNQ9WD299BtshqYT+KlygjfDd6DGA+iRpJvno8pkA Z0xLKl+zY0q5t2ThMw2n+S7dPYQ3DBQ0wTqWxwTvQIUtAgnsmYoj/E8MUTRmMlEdFA8H bVB0TkeQKoHJKQh/1lgLWrdD9p4dAM2rmrf1UDQUdc2sV71Lh03FWnKIg5XVbtJ5vfAy lrwLmr/DI1fnqYRED1yDIL9xWSSoyLqa3YZiyIbTwJjAz9yqsFn5HUs7ufVwy6YTnDSs BztT4vtbgj8EMfi8CfaqWi9qS2lfrH5iCIETUfASN64rNmb5dPLM7Z2goIG2B5IGvAqH CoWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XNb0Od7E; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 93si40673499plc.2.2019.01.07.19.30.21; Mon, 07 Jan 2019 19:30:36 -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=@gmail.com header.s=20161025 header.b=XNb0Od7E; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727723AbfAHD1u (ORCPT + 99 others); Mon, 7 Jan 2019 22:27:50 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:44282 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727423AbfAHD1r (ORCPT ); Mon, 7 Jan 2019 22:27:47 -0500 Received: by mail-pf1-f195.google.com with SMTP id u6so1186013pfh.11; Mon, 07 Jan 2019 19:27:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=9pg+Er4J0Oi1AGkskDng4P2kVR6Lyc0oMT3zgFqDETI=; b=XNb0Od7EOJvc+wI+J7ooq6WYnFU/slJKZXOe/bmLsAFpeiWy35RbIXHJEhI+onLdoM yc2EVZNXvs4f4XYtEZObGWBf7q8Y+EobP1gK5qosBISdY7cis5JS0aKmrYMboyXzD6ri f5m1LaOjQkixuRsETHQoxWZ/L/EKk9e6mVdJQ0heQAwyTd0K53vhznqMzrP89POD7iav qdrFfeHFLQmSDmAdH40FWfAwVs9k+Arrw5Tbif4VO1qPhBYkNzQ85AaR0D1/qW05wlis gbn5yi0E9QOyFSAlVtONN4QMZdJFUxht/aV4GfTC7OcKRdJt4mmDIE/Ttrmpmi3UXIcj eK4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=9pg+Er4J0Oi1AGkskDng4P2kVR6Lyc0oMT3zgFqDETI=; b=szyy1Ua4JD16cR8x0jHYIK2HEDcSv3JDVRZSN6GS92gsf+CBKlk+rxlPXfQURYnbv2 zC7rI3s+KuruaHZnDK8ObbTtQjwvucupU6t9iToonR9OgwgP10j7KIp/vcItYbAxBpmd 7CLmv4q8ni7qSkMgCHwa+sLv9aekAsE9SUDOeWagXIw4UIA4oDjaSoQSV6XrY7N1uoqi MI7PJqZpANiT9Mgq2Z4ibpZEx6opE2JjEUSt+bDBbFQ5JXr2SbuYRIPyLP0iG4iXxj90 qSJLS4q5iG9qSvyMs/vwqWeLzo9Bh+JC8tNGeQ9Qclc9cvn/vBv8JqGihS/XJlqgbLbf lIvA== X-Gm-Message-State: AJcUukf/ET7IL/CKr297T0JClVqgaTolSBrf8yls0LwRqoeYqqz9Uqxc Qw3No2xgpLhdS/IK2l2qGlY= X-Received: by 2002:a63:990a:: with SMTP id d10mr70294pge.279.1546918066748; Mon, 07 Jan 2019 19:27:46 -0800 (PST) Received: from deepa-ubuntu.lan (c-98-234-52-230.hsd1.ca.comcast.net. [98.234.52.230]) by smtp.gmail.com with ESMTPSA id v5sm117327735pgn.5.2019.01.07.19.27.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Jan 2019 19:27:46 -0800 (PST) From: Deepa Dinamani To: davem@davemloft.net, linux-kernel@vger.kernel.org Cc: netdev@vger.kernel.org, arnd@arndb.de, y2038@lists.linaro.org, sparclinux@vger.kernel.org Subject: [PATCH v3 3/8] arch: sparc: Override struct __kernel_old_timeval Date: Mon, 7 Jan 2019 19:26:52 -0800 Message-Id: <20190108032657.8331-4-deepa.kernel@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190108032657.8331-1-deepa.kernel@gmail.com> References: <20190108032657.8331-1-deepa.kernel@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org struct __kernel_old_timeval is supposed to have the same layout as struct timeval. But, it was inadvarently missed that __kernel_suseconds has a different definition for sparc64. Provide an asm-specific override that fixes it. Reported-by: Arnd Bergmann Suggested-by: Arnd Bergmann Signed-off-by: Deepa Dinamani Cc: sparclinux@vger.kernel.org --- arch/sparc/include/uapi/asm/posix_types.h | 10 ++++++++++ include/uapi/linux/time.h | 2 ++ 2 files changed, 12 insertions(+) diff --git a/arch/sparc/include/uapi/asm/posix_types.h b/arch/sparc/include/uapi/asm/posix_types.h index fec499d6efb7..f139e0048628 100644 --- a/arch/sparc/include/uapi/asm/posix_types.h +++ b/arch/sparc/include/uapi/asm/posix_types.h @@ -19,6 +19,16 @@ typedef unsigned short __kernel_old_gid_t; typedef int __kernel_suseconds_t; #define __kernel_suseconds_t __kernel_suseconds_t +typedef long __kernel_long_t; +typedef unsigned long __kernel_ulong_t; +#define __kernel_long_t __kernel_long_t + +struct __kernel_old_timeval { + __kernel_long_t tv_sec; + __kernel_suseconds_t tv_usec; +}; +#define __kernel_old_timeval __kernel_old_timeval + #else /* sparc 32 bit */ diff --git a/include/uapi/linux/time.h b/include/uapi/linux/time.h index 6b56a2208be7..04d5587f30d3 100644 --- a/include/uapi/linux/time.h +++ b/include/uapi/linux/time.h @@ -63,10 +63,12 @@ struct __kernel_itimerspec { * here, this is probably because it is not y2038 safe and needs to * be changed to use another interface. */ +#ifndef __kernel_old_timeval struct __kernel_old_timeval { __kernel_long_t tv_sec; __kernel_long_t tv_usec; }; +#endif /* * The IDs of the various system clocks (for POSIX.1b interval timers): -- 2.17.1