Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752777AbbEFFiT (ORCPT ); Wed, 6 May 2015 01:38:19 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:16001 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751362AbbEFFiQ (ORCPT ); Wed, 6 May 2015 01:38:16 -0400 MIME-version: 1.0 Content-type: text/plain; charset=UTF-8 X-AuditID: cbfee691-f79ca6d00000456a-b3-5549a8c6844d Content-transfer-encoding: 8BIT Message-id: <5549A8C6.6030208@samsung.com> Date: Wed, 06 May 2015 14:38:14 +0900 From: Chanwoo Choi User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 To: Geert Uytterhoeven Cc: Linus Walleij , Alexandre Courbot , Arnd Bergmann , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, MyungJoo Ham Subject: Re: [PATCH 04/27] extcon: Allow compile test of GPIO consumers if !GPIOLIB References: <1430836404-15513-1-git-send-email-geert@linux-m68k.org> <1430843563-18615-1-git-send-email-geert@linux-m68k.org> <1430843563-18615-4-git-send-email-geert@linux-m68k.org> In-reply-to: <1430843563-18615-4-git-send-email-geert@linux-m68k.org> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrGIsWRmVeSWpSXmKPExsWyRsSkRPfYCs9Qg3O/dS3+TjrGbvHs1l4m i3OvHrFYTPmznMli8/w/jBaXd81hs7jduILNgd3j969JjB47Z91l97hzbQ+bx6HDHYwefVtW MXp83iQXwBbFZZOSmpNZllqkb5fAlfFx7UzmgkU8FX9urmNqYJzD1cXIySEhYCLR1drHCGGL SVy4t56ti5GLQ0hgKaPEvx+vmGCKphybzAqRmM4o8XLWRhaQBK+AoMSPyfeAbA4OZgF5iSOX skHCzALqEpPmLWKGqH/AKNH46zRUvZbE4ecL2EFsFgFVib63/8BsNqD4/hc32EBsUYEwiZXT r4DNFBHQlZjzkwli5i1Gib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HGIU4GBU4uG9Ee0ZKsSaWFZcmXuIUYKDWUmEd4o7UIg3JbGyKrUoP76oNCe1+BCjKdBvE5ml RJPzgWknryTe0NjEzMjSyNzQwsjYXEmcd46uXKiQQHpiSWp2ampBahFMHxMHp1QDI2+Ay5Yf IWZGerr3n2/w513bwTj3wmKW/Ye8BRsMvv+abCJpp2b6fFftb1mtYxNPKqw4/21pccA9hgmM rfdu3Lx4XXjzLiX3uV/4YzqsP3vwNQcmvWr+lyh+Q+yG1GOvCsH7d26+uTSxZ9o0R26m4KNi n2/ZBFSuPaPCvMW2MIzT1XmGcGDoPyWW4oxEQy3mouJEAAtaLwoDAwAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1780 Lines: 40 Hi Geert, On 05/06/2015 01:32 AM, Geert Uytterhoeven wrote: > The GPIO subsystem provides dummy GPIO consumer functions if GPIOLIB is > not enabled. Hence drivers that depend on GPIOLIB, but use GPIO consumer > functionality only, can still be compiled if GPIOLIB is not enabled. > > Relax the dependency on GPIOLIB if COMPILE_TEST is enabled, where > appropriate. > > If GPIOLIB=n and asm-generic/gpio.h is not used: > > drivers/extcon/extcon-usb-gpio.c: In function ‘usb_extcon_detect_cable’: > drivers/extcon/extcon-usb-gpio.c:63: error: implicit declaration of function ‘gpiod_get_value_cansleep’ > drivers/extcon/extcon-usb-gpio.c: In function ‘usb_extcon_probe’: > drivers/extcon/extcon-usb-gpio.c:116: error: implicit declaration of function ‘devm_gpiod_get’ > drivers/extcon/extcon-usb-gpio.c:116: warning: assignment makes pointer from integer without a cast > drivers/extcon/extcon-usb-gpio.c:122: error: implicit declaration of function ‘gpiod_set_debounce’ > drivers/extcon/extcon-usb-gpio.c:129: error: implicit declaration of function ‘gpiod_to_irq’ > > Add the missing #include to fix this. > > Signed-off-by: Geert Uytterhoeven > Cc: MyungJoo Ham > Cc: Chanwoo Choi > --- > drivers/extcon/Kconfig | 4 ++-- > drivers/extcon/extcon-usb-gpio.c | 1 + > 2 files changed, 3 insertions(+), 2 deletions(-) Applied it on -next branch. Thanks, Chanwoo Choi -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/