From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753061AbcFFFGz (ORCPT ); Mon, 6 Jun 2016 01:06:55 -0400 Received: from mail-pa0-f66.google.com ([209.85.220.66]:36640 "EHLO mail-pa0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750945AbcFFFGy (ORCPT ); Mon, 6 Jun 2016 01:06:54 -0400 Date: Sun, 5 Jun 2016 22:06:47 -0700 From: Nicolin Chen To: Fabian Frederick Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1 linux-next] ASoC: cs53l30: include gpio/consumer.h Message-ID: <20160606050646.GA7872@Asurada> References: <1465132260-6617-1-git-send-email-fabf@skynet.be> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1465132260-6617-1-git-send-email-fabf@skynet.be> User-Agent: Mutt/1.5.22 (2013-10-16) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jun 05, 2016 at 03:11:00PM +0200, Fabian Frederick wrote: > cs53l30 breaks kernel compilation when CONFIG_GPIOLIB is disabled. > > sound/soc/codecs/cs53l30.c:931:2: error: implicit declaration of > function devm_gpiod_get_optional [-Werror=implicit-function-declaration] > cs53l30->reset_gpio = devm_gpiod_get_optional(dev, "reset", > ^ > sound/soc/codecs/cs53l30.c:932:13: error: GPIOD_OUT_LOW undeclared > (first use in this function) > > Including gpio/consumer.h declares minimal functions in that case. > > Signed-off-by: Fabian Frederick > --- > sound/soc/codecs/cs53l30.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/sound/soc/codecs/cs53l30.c b/sound/soc/codecs/cs53l30.c > index ac90dd7..4818324 100644 > --- a/sound/soc/codecs/cs53l30.c > +++ b/sound/soc/codecs/cs53l30.c > @@ -15,6 +15,7 @@ > #include > #include > #include > +#include Could you put it before i2c.h to order them alphabetically? Thank you > #include > #include > #include > -- > 2.1.4 >