Received: by 10.192.165.148 with SMTP id m20csp2906732imm; Mon, 7 May 2018 03:19:21 -0700 (PDT) X-Google-Smtp-Source: AB8JxZplBUVU5zGiRdCUjN+t3mCz8xmnhIN/iNCD9b3yEbFQm7kVt0po1CkbfdT57sYu4dR0l5hM X-Received: by 2002:a17:902:6b8b:: with SMTP id p11-v6mr36881983plk.212.1525688361451; Mon, 07 May 2018 03:19:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525688361; cv=none; d=google.com; s=arc-20160816; b=B1vZ2CgT7N+9XJd0rRtYWVCRqFB+SnR2e+RXIsicZFoNhBAPHV6YsqYbqzKDxh8obC Df2BywV188gsUm/eydShU2cjGX7b9KmlIh+i5xBZV7eS+/GupK8UujhFvL8w75tUH+r6 0OO85Dgq3VTBu0LXg7ZoHjUCMCqzEfhe+59PYvdppglketIRy4cPQcmJRR3JfMyZyvQw Js54nVUvDRSbuoIFCUJIziupDZ3jNGaKIw8SSnpm1mxdydpDslQI8RuJ174Z2V5jl32K p4XvH7GFDGy1J7lFg37EWnC88el9buGKF/W4u1aCDUFfzqloDonnTV7S80meFGbXu80Y w/Fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=KnsnIP+fUCfGb4i0Wuw7E7vQQpfBCIPw31G4CtiwjHE=; b=ZTXOTts7iSO/H4+zlRjpuW3GjGNRfVEHJ7PbDfjjh77wJC0T2r9+FyGbRxFuHQ17wj nlKn4drDxze5lOclKK7VUTvgetuEQ0rqytmFfb4gYA2WQTn4D7HBxsrk3DXJJOkApjud f9b4pNy7QMCwspJqFskd09tDk8cMCOIVhnwC+ZhcVn7XpHsFEQhnvqZ90KAe8G+cUmiS tFQeoaqdFsl5FYAjafkBbL4TZXWkT8T0ys9RRV9DIOOXrOzSaYuIRqKFq+l9mG8VLit6 d2ZjsVKwpQ07sF3lYiiyi0zQJiHzOGuu40RYRTQgIufjk8Gs3ypOjvZW16H7rpKjyGu0 CXRg== 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 r59-v6si8659687plb.314.2018.05.07.03.19.07; Mon, 07 May 2018 03:19:21 -0700 (PDT) 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 S1752048AbeEGKSu (ORCPT + 99 others); Mon, 7 May 2018 06:18:50 -0400 Received: from nblzone-211-213.nblnetworks.fi ([83.145.211.213]:37072 "EHLO hillosipuli.retiisi.org.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751954AbeEGKSt (ORCPT ); Mon, 7 May 2018 06:18:49 -0400 Received: from valkosipuli.localdomain (valkosipuli.retiisi.org.uk [IPv6:2001:1bc8:1a6:d3d5::80:2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by hillosipuli.retiisi.org.uk (Postfix) with ESMTPS id 70815634C53; Mon, 7 May 2018 13:18:47 +0300 (EEST) Received: from sakke by valkosipuli.localdomain with local (Exim 4.89) (envelope-from ) id 1fFdEF-0003ef-5I; Mon, 07 May 2018 13:18:47 +0300 Date: Mon, 7 May 2018 13:18:46 +0300 From: Sakari Ailus To: Arnd Bergmann Cc: Laurent Pinchart , Mauro Carvalho Chehab , Linux Media Mailing List , Linux Kernel Mailing List Subject: Re: [PATCH] [RESEND] [media] omap3isp: support 64-bit version of omap3isp_stat_data Message-ID: <20180507101846.vmn4yqqu7i3iybcd@valkosipuli.retiisi.org.uk> References: <20180425213044.1535393-1-arnd@arndb.de> <20180503125627.6elsr4iiknnv227c@valkosipuli.retiisi.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 03, 2018 at 06:06:58PM -0400, Arnd Bergmann wrote: > On Thu, May 3, 2018 at 8:56 AM, Sakari Ailus wrote: > > On Wed, Apr 25, 2018 at 11:30:10PM +0200, Arnd Bergmann wrote: > >> @@ -165,7 +167,14 @@ struct omap3isp_h3a_aewb_config { > >> * @config_counter: Number of the configuration associated with the data. > >> */ > >> struct omap3isp_stat_data { > >> +#ifdef __KERNEL__ > >> + struct { > >> + __s64 tv_sec; > >> + __s64 tv_usec; > > > > Any particular reason for __s64 here instead of e.g. long or __s32? Kernel > > appears to use long in the timespec64 definition. > > The user space 'timeval' definition is 16 bytes wide, with the layout > designed to be compatible between 32-bit and 64-bit, so it has to be like > this to match what user spaces sees with the old header files and a new > libc. > > We don't yet know what the exact definition of timeval will be in all > libc implementations, but if they have a 32-bit tv_user field, it needs tv_usec? > padding next to it so the lower 32 bits are in the same place as they > would be using that 64-bit field I used. I presume the definition would be endianness dependent then. I have no objections though, if you think this is the way to go. I'll apply the patch. Thanks. -- Sakari Ailus e-mail: sakari.ailus@iki.fi