Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1131755ybg; Thu, 11 Jun 2020 01:35:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvHt1gx5/0SIxyI0J8ZIzU8C1kE9n5Jl7YcXKNbe0yGMBOXLbIH2R3yiWev+0PXwyAq+kN X-Received: by 2002:a17:906:39d9:: with SMTP id i25mr7208307eje.510.1591864549149; Thu, 11 Jun 2020 01:35:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591864549; cv=none; d=google.com; s=arc-20160816; b=CVpOcFHlzqDc7cWtV9/mrvfv2aLzy+W6CMs6nZZoS/1iGbbwx6OQGPrLxvTTGiFCJ3 5htFlCUaCHp3yEQfQFgV5AqUdqhI0aK62FKPp+Ui0/0xrqsNutEZLLv64LtxInukV/4s 3Nv7coyBYjuCRu0TlNyKo+2EhOeF9L1lmXczrLuhnL5670sRYiZdXAI8LbtdG6yqvLMT JzLcJTp8dRSlZAmIOx70HdR65wyG2dsf0o1f75Dhz27/WjsqRn/Q7HssYKzHbXi31gct alMRQ/6P26pTQhG2avF/ApUZvn26ftITuv3Kv4Ndv7vU9/jWX1yJzvotoEXKnr3Kg4uN nqlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=ME6wf3f+dByhrerJVAFcdzd6092HGdjTYYYCeIaY1OA=; b=yWJS32T3aBGUF4m/rUcJfqkjpoE9qNtnPcKPvfy+Z4vwvHWGrudXmkifT0FbOpnVco JTtPff3YjKAQDlPb3EjekZcE9U35UvLvXHmiAF/RQ0YMba3dNzksgnBfWq6F+wha7al0 CuzzeXsJXK6l98avo82QWn6HoYN9pIPB9wUJYxA+Ir0gQH2h5ON+0Ro5amYP8Sc933nw JzML934ToItzwoY96hbBaEIdyVnOnwAh3TOp272i/A7JqTZmvinUbahibCxyRU7vnVYb blhIx8a5SfMahp+w26dFfGBiD+5fBBh/mAlS0wRKVteue3AgUgW20qBANPq6YnjthmEA f/2w== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lw2si1484046ejb.408.2020.06.11.01.35.26; Thu, 11 Jun 2020 01:35:49 -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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726744AbgFKIdY (ORCPT + 99 others); Thu, 11 Jun 2020 04:33:24 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:45410 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726651AbgFKIdX (ORCPT ); Thu, 11 Jun 2020 04:33:23 -0400 Received: by mail-lf1-f65.google.com with SMTP id d7so3018868lfi.12; Thu, 11 Jun 2020 01:33:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=ME6wf3f+dByhrerJVAFcdzd6092HGdjTYYYCeIaY1OA=; b=ELAPS1y43tffxLqCi7ZpkG0Xf3vbz6p+2ovb43yALdYxMWZg/7G9cqaebLPAErnOb9 ZGV4djUGNWDy1Us6ix9yhStEnSoBq9y8ypk4iro0o5lYJxlKoXaKhhP3J909iq9IiymE y4tRFeCOtB7S9nyteRAgDSDOf0H032qyAhon8/Oxqkvagv4Hu7kzDON4bdIMcmmh14/u gsmVI4WjZiKuhlWQBOjl8V5THHtf5oXFRQxBjTcrwBt/jdAGsRfCBOnNwddz59M2dKo8 SAOSiSTJhezT8REf/FG0opJ95cPIJbAaUjb9Xj7JQNNOfB0f5SYezz5rnnCZz+hO36NN q85w== X-Gm-Message-State: AOAM53028IS1X91Y2ClmCJ3f84spnlV0CGvNv7xnNgNWJJToiLizG2xL U7ErB79CFIKoQzp+r9/kNb8= X-Received: by 2002:a19:c6c2:: with SMTP id w185mr3713357lff.69.1591864401158; Thu, 11 Jun 2020 01:33:21 -0700 (PDT) Received: from xi.terra (c-beaee455.07-184-6d6c6d4.bbcust.telenor.se. [85.228.174.190]) by smtp.gmail.com with ESMTPSA id r15sm548680ljm.31.2020.06.11.01.33.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jun 2020 01:33:20 -0700 (PDT) Received: from johan by xi.terra with local (Exim 4.93.0.4) (envelope-from ) id 1jjIeD-0000LV-4U; Thu, 11 Jun 2020 10:33:17 +0200 Date: Thu, 11 Jun 2020 10:33:17 +0200 From: Johan Hovold To: Lukas Wunner Cc: Johan Hovold , 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: <20200611083317.GO19480@localhost> References: <20200610155121.14014-1-johan@kernel.org> <20200611082530.rnx7rkbi6novjdar@wunner.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200611082530.rnx7rkbi6novjdar@wunner.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 11, 2020 at 10:25:30AM +0200, Lukas Wunner wrote: > [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 > ? Compilation time and general code hygiene. Headers shouldn't include more than needed. And in this case only a single driver (besides core) is actually using the gpio interface. Johan