From patchwork Wed Oct 9 15:36:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Daniel Baluta X-Patchwork-Id: 175630 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp924549ill; Wed, 9 Oct 2019 08:36:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqxZL5y1DINiwOE406VYQuL0qoXvNFVrHRM0UjCLqMQxBatTCps6pNJbERUPT+2swJ+RG6P7 X-Received: by 2002:aa7:dc47:: with SMTP id g7mr3557392edu.153.1570635383990; Wed, 09 Oct 2019 08:36:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570635383; cv=none; d=google.com; s=arc-20160816; b=o/SE6vQo5rZp8CxM/BGwGAa7e5QJGBY4aTp/6mTrDKEv4IokEtycA/efJxCn/MQ7NZ ClTFRUdKa6zworCSVn7opepUfnr0nISg2ZtAkOQW4dNID0VSdOZO7U+aFMIx1xuQaAmg DRWovGRR8rW+vJbIyFqpBzPLIy6CqmTAhDIbRyqWHka7aBLcEMC/c/jfgWSSKOSJ8NO6 cOW14daf2hu51IdG7iOxiTsZLuv1q2cO1FMosG69hW4D01zTBkR9EGCxAIlZMO5ZePsK i3Rgxws9pJ/dgx+8wA+bmsM7P8WPm2TZkWuIL37dQQd4ELmtZNyVivCM0ZCJLwttkF60 TChA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Kn87cMPhZfFJVBHJAEEZIX/y9LLr6Y7iM6LRBEs/HaA=; b=gUBn91zuL+txsBOKN8ah6B0/T1xjfy/tYBR3rX6Pdj6lVMqooHoMMXvuFIpx1xCklE /uAAz7tB1ddsYmoJ7iRMPCTNeT93hdA+RlsHBr7klbdb2BgXjEIVvIaDekSMgs8saHD3 2KtxN2okSRVQDMbgfqBTchnqy8zCbkaBMyJffNYYfipnDOGbT06RTkHVLq7r3GUdKxau nL40S5UhgXD+pskrnZSGwgkciokgZSMf3CrY43LZL/bDndr7TgFjV3s+DWyoI6V4xXKr 8ZShz1dVzCac6H1bTTfZ/hSrGAv+yWsprX5au90DJqTbHGhDSk2kv+8JPnkExvBk3x/j NLTw== 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 h23si1407651ejc.1.2019.10.09.08.36.23; Wed, 09 Oct 2019 08:36:23 -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 S1731338AbfJIPgT (ORCPT + 26 others); Wed, 9 Oct 2019 11:36:19 -0400 Received: from inva021.nxp.com ([92.121.34.21]:42650 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729883AbfJIPgT (ORCPT ); Wed, 9 Oct 2019 11:36:19 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id C8BB92001E1; Wed, 9 Oct 2019 17:36:17 +0200 (CEST) Received: from inva024.eu-rdc02.nxp.com (inva024.eu-rdc02.nxp.com [134.27.226.22]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id BB4D12001D5; Wed, 9 Oct 2019 17:36:17 +0200 (CEST) Received: from fsr-ub1864-103.ea.freescale.net (fsr-ub1864-103.ea.freescale.net [10.171.82.17]) by inva024.eu-rdc02.nxp.com (Postfix) with ESMTP id 289AC2060B; Wed, 9 Oct 2019 17:36:17 +0200 (CEST) From: Daniel Baluta To: perex@perex.cz, tiwai@suse.com, broonie@kernel.org Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, linux-imx@nxp.com, kuninori.morimoto.gx@renesas.com, Daniel Baluta Subject: [PATCH 1/2] ASoC: simple_card_utils.h: Add missing include Date: Wed, 9 Oct 2019 18:36:14 +0300 Message-Id: <20191009153615.32105-2-daniel.baluta@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191009153615.32105-1-daniel.baluta@nxp.com> References: <20191009153615.32105-1-daniel.baluta@nxp.com> MIME-Version: 1.0 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 When debug is enabled compiler cannot find the definition of clk_get_rate resulting in the following error: ./include/sound/simple_card_utils.h:168:40: note: previous implicit declaration of ‘clk_get_rate’ was here dev_dbg(dev, "%s clk %luHz\n", name, clk_get_rate(dai->clk)); ./include/sound/simple_card_utils.h:168:3: note: in expansion of macro ‘dev_dbg’ dev_dbg(dev, "%s clk %luHz\n", name, clk_get_rate(dai->clk)); Fix this by including the appropriate header. Fixes: 0580dde59438686d ("ASoC: simple-card-utils: add asoc_simple_debug_info()") Signed-off-by: Daniel Baluta --- include/sound/simple_card_utils.h | 1 + 1 file changed, 1 insertion(+) -- 2.17.1 diff --git a/include/sound/simple_card_utils.h b/include/sound/simple_card_utils.h index 985a5f583de4..293ff8115960 100644 --- a/include/sound/simple_card_utils.h +++ b/include/sound/simple_card_utils.h @@ -8,6 +8,7 @@ #ifndef __SIMPLE_CARD_UTILS_H #define __SIMPLE_CARD_UTILS_H +#include #include #define asoc_simple_init_hp(card, sjack, prefix) \