Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752473AbdGDPnc (ORCPT ); Tue, 4 Jul 2017 11:43:32 -0400 Received: from conssluserg-01.nifty.com ([210.131.2.80]:27639 "EHLO conssluserg-01.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752313AbdGDPn3 (ORCPT ); Tue, 4 Jul 2017 11:43:29 -0400 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com v64FhA6t011242 X-Nifty-SrcIP: [209.85.161.174] MIME-Version: 1.0 In-Reply-To: <20170704125851.GA20504@sophia> References: <1499140415-31677-1-git-send-email-yamada.masahiro@socionext.com> <20170704125851.GA20504@sophia> From: Masahiro Yamada Date: Wed, 5 Jul 2017 00:43:08 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] gpio: drop unnecessary includes from include/linux/gpio/driver.h To: William Breathitt Gray , Linus Walleij Cc: linux-gpio@vger.kernel.org, Grygorii Strashko , Andy Shevchenko , Ray Jui , =?UTF-8?Q?S=C3=B6ren_Brinkmann?= , David Cohen , Scott Branden , linux-acpi@vger.kernel.org, Broadcom Kernel Feedback List , Florian Fainelli , Thierry Reding , Jonathan Hunter , Alexander Shiyan , Michal Simek , Kevin Hilman , linux-tegra@vger.kernel.org, Joel Stanley , linux-omap@vger.kernel.org, linux-arm-kernel , Mika Westerberg , patches@opensource.cirrus.com, Alban Bedel , Linux Kernel Mailing List , Santosh Shilimkar , Thor Thayer , Tien Hock Loh Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1855 Lines: 56 2017-07-04 21:58 GMT+09:00 William Breathitt Gray : > On Tue, Jul 04, 2017 at 12:53:34PM +0900, Masahiro Yamada wrote: >>Some of include directives in include/linux/gpio/driver.h are >>unneeded because the header does not need to know the content of >>struct device, irq_chip, etc. Just declare they are structures. >> >>On the other hand, and >>turned out to be necessary for irq_flow_handler_t and spinlock_t, >>respectively. >> >>Each driver should include what it needs without relying on what is >>implicitly included from . This will cut down >>unnecessary header parsing. >> >>Signed-off-by: Masahiro Yamada >>--- >> >> drivers/gpio/gpio-104-dio-48e.c | 1 + >> drivers/gpio/gpio-104-idi-48.c | 1 + >> drivers/gpio/gpio-104-idio-16.c | 1 + >> drivers/gpio/gpio-pci-idio-16.c | 2 ++ >> drivers/gpio/gpio-ws16c48.c | 1 + > > The changes to the above drivers look fine to me: > > Acked-by: William Breathitt Gray > > However, this patch as a whole does too many things; I'd like to see it > split-up logically similar to how Andy Shevchenko suggested in his > reply. That should allow ACKs by respective driver maintainers to be > accounted more properly. > > William Breathitt Gray I was missing a very important thing. is used in various subsystems. I tested only under drivers/gpio/, but drivers/pinctrl/ is one of the biggest source of compile errors. (Probably I will get reports from kbuild test robot.) So, I need to think about how to merge this (if the basic idea of this is OK). Maybe, [1] Send patches to subsystems (gpio, pinctrl, etc.) for v4.14 [2] Drop unneeded includes from linux/gpio/driver.h for v4.15 -- Best Regards Masahiro Yamada