Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5799087ybi; Tue, 28 May 2019 20:29:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqyOoqlyGyXYgHLLwMJbZCly1CeAGcjkiPHPkPd4WKsbhTAj+qxInIcnOUxRD8JDBoWFKuAQ X-Received: by 2002:a63:d117:: with SMTP id k23mr9984683pgg.400.1559100595280; Tue, 28 May 2019 20:29:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559100595; cv=none; d=google.com; s=arc-20160816; b=Legr6xWbieWgg/vwfW92NzEyXuYslB2TQOapFb1lHScSQ5+xjlAo/CWav7f+ag5Xb1 4ggZHuGfZQK74p5JHpNioFjpjItILQgWdtBd4Ybn5JxsTnC466Av/0Y7EuFC70U2n4eQ 0kX9baCdaxOYguI8XyO2QaZMpHC1z/70qn2n4T1AjD7y4XQkll6ysJ/dp8mvyaZmWxBc qvjis+n90QOJoEaQTzc0gdHehBC2tCZfGfUhpEdTJcGu1kzs9zdHSpBzowyKj5KeOXxK NnoEWpAKoLaDrU+mpjaSOHdrFfwUnhJkmd6IR7rraLZ6cpV61iDa1PZXvJLKN+HAsvGm w1qQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=FqPXiRW9UXY/LtW7WHeHmMGu0fYj9U+qwu6dkNnYiOI=; b=DBQqs4TLbpInXKsDWE7UDKgWO8hDV2vimLXx3I0DWiZ/3PlAVY0ygLTCoLGIsFeOGB /v8FY4NBq9JAowdCWkdwRx1CIFiq2xKIrj6Mes3TqBsaiVMKDSjfUsNo6oL14mPzNYSE R8JPMTKMU5+XB/RcKQldnLM7RlYgI1XWhxxD3ftwd7uVy5htVcjFLbbHOcUTJfSdD0l7 CWhoCosMXM9XGNkvnf3dJq9l7gE9vZsM3KnOxCyROgBlgW39vpaCyQoH7QqimjhBPJ9H 2nQVpD9/CQVhsAlEw3Qk4b6WUdS8pE+h6WJLr3eOgpGOcALP2omXpysZzz2n/TZjKbsd 0M7A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ay3si22365160plb.298.2019.05.28.20.29.39; Tue, 28 May 2019 20:29:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726062AbfE2D2b (ORCPT + 99 others); Tue, 28 May 2019 23:28:31 -0400 Received: from inva021.nxp.com ([92.121.34.21]:45194 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725828AbfE2D2a (ORCPT ); Tue, 28 May 2019 23:28:30 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 9F1DA200379; Wed, 29 May 2019 05:28:28 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id DEB9F200009; Wed, 29 May 2019 05:28:24 +0200 (CEST) Received: from localhost.localdomain (mega.ap.freescale.net [10.192.208.232]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id F07D4402AE; Wed, 29 May 2019 11:28:19 +0800 (SGT) From: shengjiu.wang@nxp.com To: brian.austin@cirrus.com, Paul.Handrigan@cirrus.com, lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH] ASoC: cs42xx8: Fix build error with CONFIG_GPIOLIB is not set Date: Wed, 29 May 2019 11:30:02 +0800 Message-Id: <20190529033002.16606-1-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Shengjiu Wang config: x86_64-randconfig-x000201921-201921 compiler: gcc-7 (Debian 7.3.0-1) 7.3.0 reproduce: make ARCH=x86_64 sound/soc/codecs/cs42xx8.c: In function ‘cs42xx8_probe’: sound/soc/codecs/cs42xx8.c:472:25: error: implicit declaration of function ‘devm_gpiod_get_optional’; did you mean ‘devm_clk_get_optional’? [-Werror=implicit-function-declaration] cs42xx8->gpiod_reset = devm_gpiod_get_optional(dev, "reset", ^~~~~~~~~~~~~~~~~~~~~~~ devm_clk_get_optional sound/soc/codecs/cs42xx8.c:473:8: error: ‘GPIOD_OUT_HIGH’ undeclared (first use in this function); did you mean ‘GPIOF_INIT_HIGH’? GPIOD_OUT_HIGH); ^~~~~~~~~~~~~~ GPIOF_INIT_HIGH sound/soc/codecs/cs42xx8.c:473:8: note: each undeclared identifier is reported only once for each function it appears in sound/soc/codecs/cs42xx8.c:477:2: error: implicit declaration of function ‘gpiod_set_value_cansleep’; did you mean ‘gpio_set_value_cansleep’? [-Werror=implicit-function-declaration] gpiod_set_value_cansleep(cs42xx8->gpiod_reset, 0); ^~~~~~~~~~~~~~~~~~~~~~~~ gpio_set_value_cansleep Fixes: bfe95dfa4dac ("ASoC: cs42xx8: Add reset gpio handling") Reported-by: kbuild test robot Signed-off-by: Shengjiu Wang --- sound/soc/codecs/cs42xx8.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/cs42xx8.c b/sound/soc/codecs/cs42xx8.c index 3e8dbf63adbe..3bbc62322dfe 100644 --- a/sound/soc/codecs/cs42xx8.c +++ b/sound/soc/codecs/cs42xx8.c @@ -14,7 +14,7 @@ #include #include #include -#include +#include #include #include #include -- 2.21.0