From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EA70CC433EF for ; Tue, 29 Mar 2022 14:28:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237880AbiC2O3v (ORCPT ); Tue, 29 Mar 2022 10:29:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237202AbiC2O3r (ORCPT ); Tue, 29 Mar 2022 10:29:47 -0400 Received: from relay12.mail.gandi.net (relay12.mail.gandi.net [IPv6:2001:4b98:dc4:8::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 698D021C05D; Tue, 29 Mar 2022 07:28:03 -0700 (PDT) Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id B9A7D200004; Tue, 29 Mar 2022 14:27:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1648564080; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0Z3/Z+MiDKB23SHCkTBudovfgs8BlhNVJlGuARezJJQ=; b=O1MMVa9RabUcbt5PSTO8u6TEzs/SDjOQAwTj8IEgeMPieYFmhkmJYVzgTBSt/7rDMD2FJ8 lAicfsq1txRXTjz+7MeWFngqAPEUniyzL4XMrp0MjpVnX1qaqu9xaVNjl0JQrc6V+ZpxBn Qj9wyVmWkMjFsGb6QkJ56n7tT0d7RtTqbLTTefG34UQJxjQi/D3X92NRqbXYGHE83yhxkT IbyXS93BmNKKe5LARpYnL42E2/zS2ejwmNYd/6di5gHirbBZvJpcwlet/8ewvPfLdGPLPz 3ylh8GnCgKNJGwbpPVMkZf71Dzc+nheGhoMVLJfDQa1o1gV/7GJjvlXBzGP3eQ== Date: Tue, 29 Mar 2022 16:27:57 +0200 From: Miquel Raynal To: Andy Shevchenko Cc: Linux-Renesas , Magnus Damm , Gareth Williams , Phil Edworthy , Geert Uytterhoeven , Greg Kroah-Hartman , Jiri Slaby , Milan Stevanovic , Jimmy Lalande , Pascal Eberhard , Thomas Petazzoni , Herve Codina , Clement Leger , "open list:SERIAL DRIVERS" Subject: Re: [PATCH v2 01/10] serial: 8250: dw: Move the per-device structure Message-ID: <20220329162757.097a67eb@xps13> In-Reply-To: References: <20220317174627.360815-1-miquel.raynal@bootlin.com> <20220317174627.360815-2-miquel.raynal@bootlin.com> <20220329101049.069a0b1b@xps13> Organization: Bootlin X-Mailer: Claws Mail 3.17.7 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org Hi Andy, andy.shevchenko@gmail.com wrote on Tue, 29 Mar 2022 14:11:21 +0300: > On Tue, Mar 29, 2022 at 10:10:49AM +0200, Miquel Raynal wrote: > > andy.shevchenko@gmail.com wrote on Fri, 18 Mar 2022 12:51:29 +0200: =20 > > > On Thu, Mar 17, 2022 at 9:56 PM Miquel Raynal wrote: =20 >=20 > ... >=20 > > > > +#include =20 > > >=20 > > > I have mentioned forward declarations. =20 > >=20 > > Why do you want forward declarations more than includes? =20 >=20 > Because they will speed up the kernel build and avoid dirtifying the name= space > (less possible collisions). >=20 > > > So, this can be simply replaced by > > >=20 > > > struct clk; > > > =20 > > > > +#include > > > > +#include =20 > >=20 > > And why these two should remain but reset and clk be replaced? =20 >=20 > Because these one are being used, clk and reset are not (the pointers > are opaque from the point of view of this header). Oh yeah, I forgot that point, thanks for the clarification. Thanks, Miqu=C3=A8l