Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1128002ybg; Thu, 11 Jun 2020 01:27:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMoOcbQbmRAy+wzq10DXCXRvPxzPDnnYYM3QT5wtSIDiq5Nl/tyqc0vbepWZJB/UQls971 X-Received: by 2002:a05:6402:206e:: with SMTP id bd14mr6054851edb.105.1591864076040; Thu, 11 Jun 2020 01:27:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591864076; cv=none; d=google.com; s=arc-20160816; b=lFJn0sdUy4tIbz+LF/uAQNxgdPxZfxLBAIZqfihEKGFA8Jfyxcc5t6lrbpdMgqrJwi JuJteHUy6SfwKgVRgC5330FH1D3+VhwrSHsBVVzyXzevbUxLEHVHVqX5qcy8ezOcw+cA +CQV8L/JWZAgljwGH+lQSZG3Oz2uWD7uIvt8OPFkWTkD+hrt7N1KBPgELUzukbQYN2mk OrkM16hXtU9IRd+Lj+EXndZAIf6cuxZr78RzUqCGCVaPh08U5sc+75ie1eN4PMY7qjsY 0167vn97rz3VcaGlh9o70EC7nTdon+c6wKE5XqjOtrmeugf94PhWoPfUpXhA+4k+RWAz X6hA== 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; bh=iNmIEpiBZIktU2KEb6aYiuq4U0jhTgf8HpSajFY6yqA=; b=pclWIZ7kX4mqaooH59LK4h2pQOdkWged4KPrJhm3UYVWxd6z2YMopT49A1ssbP1Zn1 MN6oaHLBX26fIUB8nr/Gp/u4GUBpuH5BH03QhfjfLP5ZvL89xU08oICebwoCec0O/p8U CMRJ5wbcOVnkAhMXsppnmoTkm+bxlilpo6sQ6C7LTLkKaZ/5uKDeeVZkg2ksm6Kl6AA7 V1xvwWeVrtg+8DE8T5yF2emDg0mkbq6nS2JmeLCclW8buR1mfqwrWUVoSTmAn1gK+2XS 1UvEwWdhbnTE4jJknWTOMQyxuOkYESfXPo8+S72xUBz2V/noWsD98VkGEX9RIFs5iHZ1 YwNA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e13si1259617edv.111.2020.06.11.01.27.33; Thu, 11 Jun 2020 01:27:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726720AbgFKIZd (ORCPT + 99 others); Thu, 11 Jun 2020 04:25:33 -0400 Received: from bmailout2.hostsharing.net ([83.223.78.240]:47021 "EHLO bmailout2.hostsharing.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726594AbgFKIZd (ORCPT ); Thu, 11 Jun 2020 04:25:33 -0400 Received: from h08.hostsharing.net (h08.hostsharing.net [83.223.95.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.hostsharing.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (not verified)) by bmailout2.hostsharing.net (Postfix) with ESMTPS id C7D9D2802B9F3; Thu, 11 Jun 2020 10:25:30 +0200 (CEST) Received: by h08.hostsharing.net (Postfix, from userid 100393) id 9C3834CF4AF; Thu, 11 Jun 2020 10:25:30 +0200 (CEST) Date: Thu, 11 Jun 2020 10:25:30 +0200 From: Lukas Wunner To: Johan Hovold Cc: Greg Kroah-Hartman , Jiri Slaby , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Heiko =?iso-8859-1?Q?St=FCbner?= Subject: Re: [PATCH] serial: core: drop unnecessary gpio include Message-ID: <20200611082530.rnx7rkbi6novjdar@wunner.de> References: <20200610155121.14014-1-johan@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200610155121.14014-1-johan@kernel.org> 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 [cc += Heiko] On Wed, Jun 10, 2020 at 05:51:21PM +0200, Johan Hovold wrote: > Drop the recently added gpio include from the serial-core header in > favour of a forward declaration and instead include the gpio header only > where needed. Hm, but why? Are there adverse effects if this is included by ? Thanks, Lukas > > Signed-off-by: Johan Hovold > --- > drivers/tty/serial/8250/8250_port.c | 1 + > drivers/tty/serial/serial_core.c | 1 + > include/linux/serial_core.h | 2 +- > 3 files changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/tty/serial/8250/8250_port.c b/drivers/tty/serial/8250/8250_port.c > index 1632f7d25acc..d64ca77d9cfa 100644 > --- a/drivers/tty/serial/8250/8250_port.c > +++ b/drivers/tty/serial/8250/8250_port.c > @@ -16,6 +16,7 @@ > #include > #include > #include > +#include > #include > #include > #include > diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial/serial_core.c > index 3706f31b0c37..cba19f7d9ea3 100644 > --- a/drivers/tty/serial/serial_core.c > +++ b/drivers/tty/serial/serial_core.c > @@ -14,6 +14,7 @@ > #include > #include > #include > +#include > #include > #include > #include > diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h > index 791f4844efeb..01fc4d9c9c54 100644 > --- a/include/linux/serial_core.h > +++ b/include/linux/serial_core.h > @@ -10,7 +10,6 @@ > #include > #include > #include > -#include > #include > #include > #include > @@ -30,6 +29,7 @@ > struct uart_port; > struct serial_struct; > struct device; > +struct gpio_desc; > > /* > * This structure describes all the operations that can be done on the > -- > 2.26.2 >