Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp3071085ybx; Fri, 8 Nov 2019 13:36:04 -0800 (PST) X-Google-Smtp-Source: APXvYqwDOIA0uq1ZhELXMBM7umhFgmMA0sDiTuvkrmCvN14wkjT8+wE/QKtiGkQTedEn2raq/y/f X-Received: by 2002:a50:c20a:: with SMTP id n10mr13135807edf.120.1573248964080; Fri, 08 Nov 2019 13:36:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573248964; cv=none; d=google.com; s=arc-20160816; b=qPnuHkwqBFodcrxuUO0uhWVegemKXStFNwXpXh+2Xew6hV1SvI2gm8aOGyFovlBx4i LHIglak63H1vCxEtdh++n2N4HmDCxAsL5GTCeIqkzjNmvTcomJvjuCKivhDvXiQBdxHm 37VrNYzFhudI3LzFewL4jJ4jGoI37hkuoVkW8u6DFbM2xHwgbojJCUhhpmDjzZGG1073 yh3Ffz0Ncf+5rWdW4LYb6FaF0zTNzvTDroANw05qVOEKOjT5/mB0VzjR2XQwoP2WufTM m3DB6lMFzEOX9dUn1FiqB9p0NF7kz2PNHfB/yUdD304XHA22UmALkJwRkpA0F1Zi61Wh WzCA== 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=EjcZy65GVPvt8e4GH8Tbbzg8JzbcZ5y/42P2IIdjDgk=; b=cIp8TtHyp5YeuK2AOUWPp4ZgaSOv0eTjddnstKfCsMXHfu+kaMnNxe51z9rWJTYnxw BCRO3wv4pV0/ewT4QbbceVPP7OxQOLV+cGWG4q4sK9WuvZtDYNHMe+69otVVUAFJfosZ 8QE0NtclfsWArxvnyO7MUjUon9LelgkvIjZskFaFOhtq7BjOKdjy+X1A/Y8I3Y1/9gDf y/VmI0gKzQ+FNj7VA7IjPlyGDTYu13VObdPS8JLTIssWeIExj7xGEjBcdTK9T+L8y1jj ZGZuBPV+EX5KZUrbUy6RVJ/VBoguba+S7uvR+5nxa+m0nn4d86gtSGzcAEQ4P0Hye0d3 S++w== 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 g5si5047290ejr.415.2019.11.08.13.35.41; Fri, 08 Nov 2019 13:36:04 -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 S1732877AbfKHVes (ORCPT + 99 others); Fri, 8 Nov 2019 16:34:48 -0500 Received: from mout.kundenserver.de ([212.227.126.135]:58019 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726900AbfKHVes (ORCPT ); Fri, 8 Nov 2019 16:34:48 -0500 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.129]) with ESMTPA (Nemesis) id 1Mt7Ll-1he6UG37Rx-00tSYX; Fri, 08 Nov 2019 22:34:45 +0100 From: Arnd Bergmann To: y2038@lists.linaro.org, Chris Zankel , Max Filippov Cc: linux-kernel@vger.kernel.org, Arnd Bergmann Subject: [PATCH 05/16] xtensa: ISS: avoid struct timeval Date: Fri, 8 Nov 2019 22:32:43 +0100 Message-Id: <20191108213257.3097633-6-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20191108213257.3097633-1-arnd@arndb.de> References: <20191108213257.3097633-1-arnd@arndb.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Prov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IR7QUh74aFmFBHAh5baLWAZ6cQG6wmWUpA5Qv8Rkf misaXsiy87/On/4iHib79b4GzF3K3vcELrp1Cg9qkAnKZTQMWgA5ri9eaF6RecZ1hG3JSwyQg 5lu1Uf1n9ZMLp209ZYTg== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 'struct timeval' will get removed from the kernel, change the one user in arch/xtensa to avoid referencing it, by using a fixed-length array instead. Signed-off-by: Arnd Bergmann --- arch/xtensa/platforms/iss/include/platform/simcall.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/xtensa/platforms/iss/include/platform/simcall.h b/arch/xtensa/platforms/iss/include/platform/simcall.h index 2ba45858e50a..4e2a48380dbf 100644 --- a/arch/xtensa/platforms/iss/include/platform/simcall.h +++ b/arch/xtensa/platforms/iss/include/platform/simcall.h @@ -113,9 +113,9 @@ static inline int simc_write(int fd, const void *buf, size_t count) static inline int simc_poll(int fd) { - struct timeval tv = { .tv_sec = 0, .tv_usec = 0 }; + long timeval[2] = { 0, 0 }; - return __simc(SYS_select_one, fd, XTISS_SELECT_ONE_READ, (int)&tv); + return __simc(SYS_select_one, fd, XTISS_SELECT_ONE_READ, (int)&timeval); } static inline int simc_lseek(int fd, uint32_t off, int whence) -- 2.20.0