From patchwork Fri Dec 13 20:52:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 181583 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp1142715ile; Fri, 13 Dec 2019 12:52:25 -0800 (PST) X-Google-Smtp-Source: APXvYqxz/B25Rf0Tw6mpz5XbtCbuv0ySi2LBBPLKIw1Ze85DiHBZ0kr5WfUq8/ag1IAefzWIKTvs X-Received: by 2002:a9d:22:: with SMTP id 31mr15993510ota.173.1576270345864; Fri, 13 Dec 2019 12:52:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576270345; cv=none; d=google.com; s=arc-20160816; b=q3x/XrLYfs3Bbbqc5My+zw/uOtdoyokSbIOjsMHoNFMtXlShvlU/RhsejolG52H3RY SevtNkg37yC96fBLqoohbwgrzfOYqV9th1geUbsOrNOlVvQ3ZTBozvCAiRaTuTtqq4Dq S5wxX7eAdHldZl5F9UrBvkDX+WKxm+bheDD4idEYMxV7INH79QDCRB7sVhwm8wE7F/SF TvJnt405t2lEr6v8omfghWsJPytEz6ZPBdCjcXEzHyjcxT8tm6o3WIDN4V0QEUAUsUav y5A4vabI+am6b+5CgpmtoXs26RxviwJOrvUorotaEXhZI+kQfUOTtCmq9f7Jhgyefz01 Ir/g== 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=XHbHc7ICBtVvj1Mn0I70Ea62wBoJXAzo2a+K/iHxzIc=; b=ykO9fvKSLtXncI9IziXOHV4rMV0Tagir82X4F9ollQHc2Rquwm9PUP58tysP5j4z73 30BGEskq2MZTwnmB5Trr0kt9nus5DDVtrExyKOjcm4/wA82aRAd1eCj7QquT0fsHn/je yuoG6MlibpcPFS684qZfSLaUdM035+xOHVd6+8gLZb7dmZRTPbNGCHO14eiArVjjTqS6 F72thr7jWUf0ReoPmwljKzYyjaf1XLvgt5qoRTljyc8DC6z2GsgUrDB9hZ521ARNv4C3 0QEP7Lesyr/u+Uow502qR4k9whICkKPchAhYBvXMi2PLyxNVjw3XXwVTfD8YwxeZ0ss3 qOYA== 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 m2si5472936otk.122.2019.12.13.12.52.25; Fri, 13 Dec 2019 12:52:25 -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 S1726642AbfLMUwY (ORCPT + 27 others); Fri, 13 Dec 2019 15:52:24 -0500 Received: from mout.kundenserver.de ([212.227.126.133]:37891 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725747AbfLMUwY (ORCPT ); Fri, 13 Dec 2019 15:52:24 -0500 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.129]) with ESMTPA (Nemesis) id 1MKd92-1iRUrq0e6u-00L10R; Fri, 13 Dec 2019 21:52:22 +0100 From: Arnd Bergmann To: y2038@lists.linaro.org, linux-kernel@vger.kernel.org, Chris Zankel , Max Filippov Cc: Arnd Bergmann Subject: [PATCH v2 04/24] xtensa: ISS: avoid struct timeval Date: Fri, 13 Dec 2019 21:52:09 +0100 Message-Id: <20191213205221.3787308-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20191213204936.3643476-1-arnd@arndb.de> References: <20191213204936.3643476-1-arnd@arndb.de> MIME-Version: 1.0 X-Provags-ID: V03:K1:bon56UreV7ovrfKYpDHiL+f5Nx8t/BUmHyHC4ZWrp+337QR6/Oz yoHrf8bFVdBTm9Bp70qtT3uw7YkdpJ1O1sZaXMcTsuhFb80yjFDETofLv7guWHf8SfX/SWi 7JtWqYDaB0F5EaXcZI7HYZKjKpI+VowaUgzdonJn2Ui6S8CD1Y+WjW+Wxq+qIFFqG2qZxFj DXk2Na2Jtl9aRnJx8qqpg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:riv8b/vecL0=:+5F8OSMdE+Zx+eykCFEhxO sXEloGk35kuwMQ5iC/TYfbSAB9sznLnwNrJXrWj7Jk5OzpKPT8u0ngy1jeraukSYsbRn0MMWK knR/CwJOpAFdJ2jBM7/cPpQoJZ9FE0LVEt4nDrJtlj//JFJmEhycdtBa966T40yleoVKHS0gL WgsAnqopPgNtPuRUjMSSgizIw+/EvEa9NAbNL/8trmoyMkvAq1CuclnjBcezPPwXSdUwu+NHP Sl3OWXCGrpLo0M0XOh7qnPS71vZO+yv0H+fo7tb69naKhHJkJKrbfqbYJ9oc+n4K/qyZbvcE7 237XU3QGoEQpSZmZsrZ4EiKudYtVipeMWxioOXuJr79Yvj249PXkrguIB0ixqifO1ibZRmdep SCjTdh5p0KtkMzpk8Lir2TjUSDKfT9CkU7vHDFOD9em1mhiDSpZb1AES9bCzYxoQKBrFgZo4/ jsPLa+68w1XWS7kA1wOQZPAL61WrExikywTtsIH/g8WgBPG8Ruf8LMzWAmIO0WkYGANY4RXou qVOpwgkMRk2ICN4YXEQfRtUSh6JzB1x5rvU7aCGqnAynLrXepMcoaNqY2CyFh1RMy44xlG0of MJ5REbfwjWCRJuMnRTRk+j07qpGttYFTFRIxoM1SXZWyjgbVLS2iCLgHLglHC/EYjgTwARfHw H6wm/l1zWg4hJAB8GsG7Wk1LtL6KpAwJTkICE6JP9XOFRLELnHx3ivbuLW/rJmioKskrTGg1G EVWZfk7TxgGxu+B9CQ7s6gKbol+raNHwF6PBaPNM4HJ7YmAENLbZ0msg1x1DwtHrac69rYXsm Xn52pa6o2p14CdsOaj4VasNPaKIq/glJOv4vosws5YLCcACgZLVwOOxnXomzDp00KqQXxlRH0 nsPGvv9AxjwGIPgElCtA== 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. Acked-by: Max Filippov Signed-off-by: Arnd Bergmann --- arch/xtensa/platforms/iss/include/platform/simcall.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.20.0 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)