From patchwork Fri Nov 8 21:32:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 178989 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp3312137ilf; Fri, 8 Nov 2019 13:34:49 -0800 (PST) X-Google-Smtp-Source: APXvYqzprOwMVF2JZezaj6kfiU/mY45CSH/zr2zh2TYF2Lyu9kel+ymdWbtN53hqOyAMpYyIuKLE X-Received: by 2002:a50:e002:: with SMTP id e2mr13095568edl.278.1573248889674; Fri, 08 Nov 2019 13:34:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573248889; cv=none; d=google.com; s=arc-20160816; b=BDABv0V8t//8tPNp/VulPfLJLU3BzXvVHmwWgcvi5R9AoQ9CTZKWayCk6fftHIglcS j1A5ABuSjB7ghAmEgqaP1Y/Ze61ujNVcX70z0U85OP/CexPPEr+fToVtV3kjxmKMXltt XSFCew46icQA5UcVv3mhYf/sAYnmQP/866jEiu8s8SBp/uUTEZgG6RrfmYXvwwaqJe99 l5+fKTrB9OyhtJS+L2reMZ2yzFVl08zn5I1Jahp8gKdTIZ0UBFvqxewQn2XcGriQzfyB Us3GCDTtlucd4bI+a5N7DfCvY4y76ErvOJPfsYAPz2TEHtqDEPsW/L8K2oQ94AvOosFj l4pw== 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 k18si6247539edj.94.2019.11.08.13.34.49; Fri, 08 Nov 2019 13:34:49 -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 S1732882AbfKHVes (ORCPT + 26 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 X-Provags-ID: V03:K1:bIxykHQtSe97eNRKLWHHi2P7ZpF4kFV26LIaUxopMvMff0Y6TwS EHpMHJbnqxFRE8Lm5mODfRoD+r3eac3XJ0c2PcWDZciqhG0ddLpIau+NTbR+edYv8nKhw4c x4o34A3GVlLMI4yZ3Ma/1hhqFfNBaWeZIjAeJ37oPMTD+TXbHKYAq6eu7I8i9slW930BcPK uhy384Y8WEvKnM/Tfn7NA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:lglGieAmDc8=:3SS5HATOoJTa0ueQh98NLR Txq527OJbLubazTSr+uZbynA65G8JKR8FiyGu6CNvP0AQ32h7g+xGSpr8KDkgjg6Ph960bVun ri/dCTTEQHWtfX6vfF++BnXPBMt2QpLEs8w5KGiRvroySsmvXQmcbV+wc7xDMIuH+cn1qZHzL CPeNZkgShvd+R/OkvTA8qME4QJiIfM1AqQgOwgn2jd5M7Z6E+47pk7FqrYJAbA9yoGo0ZhDbB Yc4J6nLzSqtbccBN1wvVGMgx4qBsJWdnA6ZZj0b7nNJ6hKvNGIn2qGzKh/eXQ7Khbo0TC1o60 HahpmBei2f6Ju7rWmM/Fy66k473y7VhiRgBI6vmRJSu5BtcS35JReSDDVeBEbmWWqK1c6Byu0 fZHcfeu0a4UuTijAKQvBXiDX6dcGPb7gOfPq9xCgEY9G2QyPBg4Ob6L24lFxO+bJL1dRnK9Xu sLeNB980MVhsnNP2zMLm+bRUSlunldL+oXLle4T1UkEf+arXhxLduDNjJEOz374eWKw7VlTtG T9OyLt2wqJseNFgNDd6xPu7Ub7jEASZ0k18yZxD6XTUo0BVVAy4ZgD22x5F5MkZnkYIzeDITN IxyZ7hiMFPnSQSPWDzxwRSu26Sf0Lk+xqOfuHxg2Z2kCn0Tb3ny49wvlFUuAQLik+3o3bPUHR Chfejv9lBsD9zZCeU+njQadrcMbzdweuiX7UlWBYTp2FAKgFs6EssCzXKuXLNE4DA0zV/X8Z5 0OtdBvZ6j7Sp/25taXA+vU7QaGjufxoDIR7QUh74aFmFBHAh5baLWAZ6cQG6wmWUpA5Qv8Rkf 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(-) -- 2.20.0 Acked-by: Max Filippov 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)