Received: by 10.223.176.5 with SMTP id f5csp606118wra; Wed, 7 Feb 2018 04:39:55 -0800 (PST) X-Google-Smtp-Source: AH8x225ae8RBw43MzMyS73RpyrXrZ9WD/dXCBF2id3tPtRtN17PwCGOK6ProsYbb5inCrM22esUl X-Received: by 10.99.39.1 with SMTP id n1mr4756387pgn.155.1518007194949; Wed, 07 Feb 2018 04:39:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518007194; cv=none; d=google.com; s=arc-20160816; b=krfBbseGDUUpEqTJiXstFa5sok27TdP1AtVkMkya1esphKADKOTgVuZ26WhJ/8uJrF NFPlU89Mi+tcF+iqMO04UwFzlx3hf8Va46gmEwMvuN0zbgFrPfb9mIzyICmBwZ+zIHpb 36LDnkRi6vSHzLy/FtJd7+zsXbAQdE2jcuEDjEQiTBc8C80OucXbUcg6R2LTNBaJQIor vPMzIvXaGh5oEiYx53tOM/b1RhCh+bDTzNsiat13wPVsd9edvT70GQiQZ/HJIZYb1SbA beO8vomppcLBeWJaTxQDCa4TG7sYk3o74aVPsPVPJhAq0+YxfjrRVmkmK08UUJUt5kk5 u1Lg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=1DiOu+5KYEqkqXhd8+a/PV2xkWLa2fdk3bZ9vexD7M8=; b=H7IWUpmt01YT3B0dJnl4LPqqf1rPfI2ox9q91CTSM3zU5wczgxA0Cok6NFP41ASo9Q oWp/e9fX2bkB24ouo9BzXnNFxSL7drRS/MF+4MPjUnayDtoUSLPwjNqxc/Y7WmNjIAHA CH5vWoaHKcRehfiim6E8A0NPbOlaI8a0TUYbJm6j5cW5P6scc90Dz/W8/RVmwOAxngwo nBg/QrypdXjseU2FKkYRP7fo3TK8VDFZ18g+QcK4h8Z+BFGycC4vfJRowM7sw5WxYOB7 qLkEOyZPmaEdB8w0kHMiOdsjjzB5FehU5rzOQMBfploZc+z7NK1eHvO4qUMD+Xsljnmg clVg== 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 f9si896197pgt.303.2018.02.07.04.39.41; Wed, 07 Feb 2018 04:39:54 -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 S1754059AbeBGMi6 (ORCPT + 99 others); Wed, 7 Feb 2018 07:38:58 -0500 Received: from foss.arm.com ([217.140.101.70]:50350 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753763AbeBGMi4 (ORCPT ); Wed, 7 Feb 2018 07:38:56 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9623880D; Wed, 7 Feb 2018 04:38:55 -0800 (PST) Received: from [10.1.210.88] (e110467-lin.cambridge.arm.com [10.1.210.88]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2A3913F53D; Wed, 7 Feb 2018 04:38:52 -0800 (PST) Subject: Re: [PATCH v5 03/16] media: rkisp1: Add user space ABI definitions To: Hans Verkuil , Shunqian Zheng , linux-rockchip@lists.infradead.org, linux-media@vger.kernel.org Cc: Jose.Abreu@synopsys.com, devicetree@vger.kernel.org, eddie.cai.linux@gmail.com, Joao.Pinto@synopsys.com, heiko@sntech.de, jacob2.chen@rock-chips.com, jeffy.chen@rock-chips.com, zyc@rock-chips.com, linux-kernel@vger.kernel.org, tfiga@chromium.org, Luis.Oliveira@synopsys.com, robh+dt@kernel.org, hans.verkuil@cisco.com, laurent.pinchart@ideasonboard.com, sakari.ailus@linux.intel.com, allon.huang@rock-chips.com, mchehab@kernel.org, linux-arm-kernel@lists.infradead.org References: <1514533978-20408-1-git-send-email-zhengsq@rock-chips.com> <1514533978-20408-4-git-send-email-zhengsq@rock-chips.com> <5b29d890-8c6b-18ff-ade1-1923c25143a0@xs4all.nl> From: Robin Murphy Message-ID: Date: Wed, 7 Feb 2018 12:38:50 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <5b29d890-8c6b-18ff-ade1-1923c25143a0@xs4all.nl> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/02/18 13:14, Hans Verkuil wrote: [...] > The one thing that I worry about is if these structs are the same for > 32 and 64 bit arm. I see some enums and bools in there - in general the storage size of those isn't even guaranteed to be consistent between different compiler implementations on the same platform, let alone across multiple platforms (especially WRT things like GCC's -fshort-enums). In practice, under the standard ABIs for 32-bit and 64-bit Arm[1], I'd expect basic types other than longs and pointers to be pretty much the same; it's the imp-def C stuff I'd be a lot less confident about. Robin. [1]:http://infocenter.arm.com/help/topic/com.arm.doc.subset.swdev.abi/index.html