Received: by 10.213.65.68 with SMTP id h4csp734524imn; Tue, 27 Mar 2018 07:51:43 -0700 (PDT) X-Google-Smtp-Source: AG47ELtpnOajCEeKs/dNL8v/flQCpdt88IwJXYXtrYg0INQxqMNd7I7CDrZ4CCbgzTdpDg7/3GVs X-Received: by 10.98.160.92 with SMTP id r89mr34397582pfe.235.1522162303022; Tue, 27 Mar 2018 07:51:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522162302; cv=none; d=google.com; s=arc-20160816; b=ZssVJj3dT0Zz5DVPU8cA4ETKa7+EHT/KGwYwq3rfCUs7a9XHJGIaZYBiQLH6t+eEHn ArPCEi2eQqimBRiQC1e8uPtkbM7vQ6/tDse0MpLIXSp4MOcwdrlNFy0Ol4IieVhoHGxs MQeaswdHVHAieBqpOxrCxRs7LluP+KkT7bP+7UbGl6Fp8Ny4RMn2OXY+dxzLhsGTRgl8 v38ZnR20RbIdsutyCkXd7iKI85k2V2UwQMKjG97mzNEW6UN+5Wzf4uwTjyG7JRVnZDKK knGYu8RvrI6pdzzFp1inLm2tRYHo3Ps4szLyqX5Z84ertlFKhUDfKpL0/8yO3GpLUCXF L6CA== 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=t9AiQ8vh0G9IiAwmiTrbV6F51cS7HiPXebLeE1bWo6s=; b=R7R+FR4X2AhxG0rmbBAl9yI6N1CKM1CCN900AuBMGEYh3E0wX2/jWTVFrBaFJZsj+B I70Z1kgEMHlmsSbR38xzm+QpKRllJ8E+ccYr/8tSAGULuQS9t6LseWlMivDFSGXgpBr5 ZyHfRNxhqDzKR4ZvdTMsiDTmzaRtxH4hEtYqkBKtVkb2S1Za2Y8clDdxO2mI0PY3nMlh Q2DHaEFXfPr9uPq9PP9WhhqFf63YNIndesn6KVjou/8g+iyAE7X8eFT4oxuX1wwqDv89 GMKDn/Hnr+z9DRwgXIyrhqBRSikCcWRmup2NmoFr0pkJd+Tcp8PbAzApjQgEUkzFjdcL SCeg== 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 m198si986837pga.107.2018.03.27.07.51.28; Tue, 27 Mar 2018 07:51:42 -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 S1752259AbeC0OtS (ORCPT + 99 others); Tue, 27 Mar 2018 10:49:18 -0400 Received: from mail.bootlin.com ([62.4.15.54]:54884 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751138AbeC0OtQ (ORCPT ); Tue, 27 Mar 2018 10:49:16 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 27DDE20875; Tue, 27 Mar 2018 16:49:14 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.bootlin.com (Postfix) with ESMTPSA id E4A5C20146; Tue, 27 Mar 2018 16:48:55 +0200 (CEST) Date: Tue, 27 Mar 2018 16:48:56 +0200 From: Maxime Ripard To: Paul Kocialkowski Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, David Airlie , Chen-Yu Tsai , Daniel Vetter , Gustavo Padovan , Sean Paul Subject: Re: [PATCH 09/10] drm/sun4i: Add a dedicated ioctl call for allocating tiled buffers Message-ID: <20180327144856.rb757m35zyscefnn@flea> References: <20180321152904.22411-1-paul.kocialkowski@bootlin.com> <20180321152904.22411-10-paul.kocialkowski@bootlin.com> <20180323104856.qo7w376xr3gcznmm@flea> <1522140098.1110.40.camel@bootlin.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="zstotidfqi5mpaxt" Content-Disposition: inline In-Reply-To: <1522140098.1110.40.camel@bootlin.com> User-Agent: NeoMutt/20180223 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --zstotidfqi5mpaxt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 27, 2018 at 10:41:38AM +0200, Paul Kocialkowski wrote: > > > +int drm_sun4i_gem_create_tiled(struct drm_device *dev, void *data, > > > + struct drm_file *file_priv); > >=20 > > Do you need it to be non-static, and part of the header as well? >=20 > Here as well, I just find that it looks more readable that way, below > the drm driver structure definition instead of above it. But it also creates a global symbol for no particular reason, while we're doing the function-first-structure-later pattern pretty much everywhere else in the kernel. Maxime --=20 Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com --zstotidfqi5mpaxt Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE0VqZU19dR2zEVaqr0rTAlCFNr3QFAlq6WdcACgkQ0rTAlCFN r3RKVw/+OfixjNI/ZANFhCSuq0kLnB/1M3owibhxGW+IgTGvtmOREOTEQiGyulNw Hcv50FY0+LfYEj6rOPTpLw7Gg3W0xZrDuEn1+AWc5IMPNMtQ3ncOj5MXNtU9hagD 9vuJGaWpkYycO5V2h1kptbt4FMLuudXh7B9yvUOUCkzIDmJ4PeMRVXNyvkDmz//C r6v8pi6+Lqu7rTsnNONzqNkXDLkuEQkRqCn0d0g826KGD+Kwh/ZfxoRe1hqYjRU6 9+E4f/fdeM55VFeQIrqkQy8YxKEVqpOrMHCrAwHskMq2e9vallsGQ84sZkJmhw+d eIElqWnSvq2VlZFsi4Y54dp0/tw47TgyuKRLfdzOIKcHuQAWIwY0VAMCZxFs/Eqg 9ZTOk7ZlIQfo3gRR4+QTtoDeVvEGOB80G45avUsojQyWPDmwhCjR1LKKg7xXe+Vg aEYzpoehxEv/FqrKLI/jyFEPSNaFZmy2YtX3RfFbMjMbTVh2r5wFnk7o3miBseQu zuvLOL83a7aPIWyuqPBA650Nu6FOZOdAQVQu97bL1EJIsy55Z3kLY91YZjzZVRl3 BiEngKy0d9wXjEZaT2Go1p6V7klKGpU9BDA7LCnwcQ/6o/Uy4ik46W+UIVWhbUkh gKwAKrUPvLFD3Goit1hHS5zK2nus9AMigUuXqA1M9IW/EBhBNYM= =Xi4s -----END PGP SIGNATURE----- --zstotidfqi5mpaxt--