Received: by 10.192.165.148 with SMTP id m20csp71522imm; Thu, 3 May 2018 15:07:28 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpbDQFiL2GoFOjC/BWyMhwfWqesvsutPJmfDhPZ6K0jPh512Guie7PAsyAo5Kc4Kzx/lMls X-Received: by 2002:a63:6110:: with SMTP id v16-v6mr20246829pgb.292.1525385248544; Thu, 03 May 2018 15:07:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525385248; cv=none; d=google.com; s=arc-20160816; b=EVvv9DAbsJ/pfkfTdYM4iAOfC0v0CcKSWi5T7PUZrQhbLxbO86yXofKc1LQOGSpX+k Is/p5bBJ833y5DlC0GdfpR495H/6JemhBP4yfr+D70Judo7fF8eoUZcU0qksZeSNFXp6 n7oM7jR/E1Ne9iab9w45w2Og7vBsSRRx0cHX/m2epdHziXMvLUsHiOztlNlFwhTXVDhO CPKRzAVwy753PzECsY0NIwAjQm3PpEeVPTtK6fAfqMBtpeSXbgWHdsHKlO/Qf1q31aR2 7neu5DSSgZj//TA3a4p7yQKVj6v0DScPEkQ29tSUMNbwDVSK0VZfSxgfw71Alo4s3Hur 6VYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=vs9e8Em1fAkHJxy4mQWgXfPhJSPhH+10gyeyfMTTI2U=; b=yZYqtj7x6gDq9cvkV9uYcXlLe43gGyGr0zwKpXUU6SBoBZkhSPhNaCGcuQVSpO8epJ 5rwU9gsfl2TKvcd/ZvBRDrQh/HUGASBXypA78bVNnl7EoT9YMOPUNp0rQf7hLWSt67nt GP2q//zFosu8nt+W8uPvQikuNdJ98ArYSWOjPe7mu1R1cnxcvQopPjpdnAUIpBk1dedu wOspXOEVu4rl3GruOmecIN4lj3x++gocb0rwNxjZXtxZNcXfRpNHWipkMdYO75VYNIQj T2rcg+uGlnjRev2ipvvbb/MqZXWIonPyM0+38j7P41CDbBvbrtjranHbvwT2p1KUl1ph GYoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=MnF6wcM7; 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 g6-v6si14762388plp.544.2018.05.03.15.07.13; Thu, 03 May 2018 15:07:28 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=MnF6wcM7; 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 S1751216AbeECWHE (ORCPT + 99 others); Thu, 3 May 2018 18:07:04 -0400 Received: from mail-qk0-f195.google.com ([209.85.220.195]:34454 "EHLO mail-qk0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750930AbeECWHB (ORCPT ); Thu, 3 May 2018 18:07:01 -0400 Received: by mail-qk0-f195.google.com with SMTP id p186so15207123qkd.1; Thu, 03 May 2018 15:07:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=vs9e8Em1fAkHJxy4mQWgXfPhJSPhH+10gyeyfMTTI2U=; b=MnF6wcM79Qv3rCnVcVygnyyOlIP51Z18zadXJ61mVyzg16LRczdZVb0j64wNw/5aax Q/aEsnSeFPMUXt6leHs42wPMQDS7hG2U3sb/jAqHOBlFLi8hrTtQUX7F5HYuhGzh7INl pcT8op5reAwcBKeB/NbFo0cMm0uknUJRwrYqv+QieyCoWcOl4kAzswmyrrOb37cxGUC+ 7WYiOEkTAklLnvgOn1ttTR2EOe82bwz27A6kFPkps280nFbWim8fBAluyD1WGkSWGTo7 HKAnmSFs48wSUiixMINYzBkgEes2ACNeGe2G2X4sny+pyHMoDabRa/NFSR72ZZPrJEBr U7CQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=vs9e8Em1fAkHJxy4mQWgXfPhJSPhH+10gyeyfMTTI2U=; b=FSS7TigBBtLq6hXWcKfIzV4kTdOIdaG0Y/4U+8v0mZrrzEqOewWPu99lkNphK0QxzZ 0fr08MJAWj9oyW2ieuo1khL/yrIIymBybkDTG4lpgW5Is4lzwyUcVyoVAsu08gXUhb2D IFoae9vxmDZHM/kOY9I0Ip2UnS9tvCm+9W5WYllfdyyeZcl3hBW8Pe8/GuTTdSrN0k3R ekSS6muPsnG4jkT96XcPsHvYGADWm6roEtfDhYvqmOx2Iy74mOb8Z7rzWeQgj1wUD2o4 eWu7yO9J0NQFX+Ushx3AN3UjQ8RC9ReqlFHKWN7tyqTKeeLaIOfC0pSE7utIKI73OSWu j4JQ== X-Gm-Message-State: ALKqPwdx4D6wPYKMXmbNcS9iHwjYNRNNDMzqgQvJlKMe0+ZHYF9O7TLj AkG4w0QQVwJhnKYSpkQdJr16a473vo/q78sobRUDDA== X-Received: by 10.55.180.1 with SMTP id d1mr5139662qkf.283.1525385219805; Thu, 03 May 2018 15:06:59 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.185.3 with HTTP; Thu, 3 May 2018 15:06:58 -0700 (PDT) In-Reply-To: <20180503125627.6elsr4iiknnv227c@valkosipuli.retiisi.org.uk> References: <20180425213044.1535393-1-arnd@arndb.de> <20180503125627.6elsr4iiknnv227c@valkosipuli.retiisi.org.uk> From: Arnd Bergmann Date: Thu, 3 May 2018 18:06:58 -0400 X-Google-Sender-Auth: gBiO31_O31x76OEv-6AGMeLSRSM Message-ID: Subject: Re: [PATCH] [RESEND] [media] omap3isp: support 64-bit version of omap3isp_stat_data To: Sakari Ailus Cc: Laurent Pinchart , Mauro Carvalho Chehab , Linux Media Mailing List , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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. Arnd