From patchwork Wed May 30 22:00:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10440035 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 782E8601D3 for ; Wed, 30 May 2018 22:02:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 68C712948F for ; Wed, 30 May 2018 22:02:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5D0BC29519; Wed, 30 May 2018 22:02:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 159322948F for ; Wed, 30 May 2018 22:02:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=AYpvklDfZ0smrR8WpONi4zt0Y+8GB2DyNqI9UtU252s=; b=BYd m+daoQRwopYBP6uMrUByWtrtpW/bghqbkA+aNuWK54C4thScETKb+B3zalJbCSN5YxlZ73WHqiXwM 0xxfg+kaqBE9rE8nrbg2V0yVB2l2dq6FEutJXZenfENWh2qv6zj/a9VidE0axb/MA4aWkJKCbrcBx fQkYzG2HOpsi46BPNlGptM9sVZZf9M/zcSU2QbGyO77KIgho6WqdJQRcJT5LD6nSc8tOePl/sv3Gt 1b9fjkglsxhuXSHCCF+hKie5sWHMz2VpjpDlCEMoOfwsBooCQg1egds7bJIzURjRwFZwbETbpnzBJ S/yEHmMNVDEiCwLehMUrnFy0qshfWQg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fO9AP-0007vX-NI; Wed, 30 May 2018 22:02:01 +0000 Received: from mout.kundenserver.de ([212.227.17.13]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fO9AK-0007tz-Kh; Wed, 30 May 2018 22:01:58 +0000 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.145]) with ESMTPA (Nemesis) id 0MbQQe-1fei660HSu-00Ij9s; Thu, 31 May 2018 00:01:02 +0200 From: Arnd Bergmann To: Mark Brown Subject: [PATCH] ASoC: mediatek: export mtk-afe symbols as needed Date: Thu, 31 May 2018 00:00:35 +0200 Message-Id: <20180530220057.1419933-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K1:UNmyZSfskeazLH3wIYQvWi5pNfMMZTyFpAQMPNq0APHZwPjY+l7 xtuRk+dQ7JbKprX8tJjYZxQpcCtEe3wcY7gPVfY0cAbJElwkBsJZGrKTCzZBD+74365aiIW B771666WJjv45u9H1vHacvRdVAHVd6Kuu+3RROU9wTlhDW86uqfmfyB2TmD8FEM408VNM+6 M3lNrJl5LJFUFnwyDomEA== X-UI-Out-Filterresults: notjunk:1; V01:K0:Yqf7zVcvSUU=:Eke/1CPzRXiURDafNAKwJh Kfu1rMY66d5aUbuwbfbD5LyZJjFYPHL2HisySbK1jz4oozpZK74gI2cLwdVLE0bD2wjsyqR9b WJ8uDdtFQGdiVKF+v69P7vZD+eiNPqWOhXJRSijrpgjpp6zyf6bD+14wdzUYrLeRbOFUgHiAO TUm41uPDXjHB6UPU8zwBOZAqMM0Pl3DETV7jm84JicgSe/cpoVWgBYKeA9lwMPg9zEtbgV9hu ddhKpUFn66H86VZSf6doQEiGPN2LSrNk69yMghaKU5Xhe81zhDlz5oOvr56I3gJFkojDZxH8a WCshlBNHae1WwFJy6IWMq3YPYJGYvNcOfP3F/29HUke/lUoo15jrcBfjZvUq/YUJ5DjioFpkS vLTKk5CBFeBQJqCVk+f8Np1zslNDzap/a06AxQMtOQgoZNG5coZO+GHclHbdLSf3HY/DRE291 mVd8XH88CaLuVQ72+vokBt2VKWhq1CfrA9Z97QOncSnzGYcnYYhHSGbBrOUxGlR0RPGpiHrut TyxyHWj8KIl5sklPil6RpHUBGKiN3crNkQr48a4IrVyV9y3SkMcvy52nALopQgTsLR9YiQzdT ctmMhooNg1UIzKlLHFkiZkVSJmbC0mWeX5D8apJ775AsuuY/C2/aV0qoJUDYzykismySq4ziY Y9Nc3fBFx1iRTKSghSELSgAqo5HXYFDUcxOcAYqyw8wA8iBtAtveCGNVQA5ieZ38r2ZA= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180530_150157_014023_14CB6E6A X-CRM114-Status: GOOD ( 10.64 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alsa-devel@alsa-project.org, Ryder Lee , Arnd Bergmann , linux-kernel@vger.kernel.org, Takashi Iwai , Liam Girdwood , linux-mediatek@lists.infradead.org, Matthias Brugger , Jaroslav Kysela , linux-arm-kernel@lists.infradead.org, KaiChieh Chuang MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The new mt6797-afe driver uses some functions in a common file, which works for a built-in driver but fails for a loadable module: ERROR: "mtk_afe_pcm_free" [sound/soc/mediatek/mt6797/snd-soc-mt6797-afe.ko] undefined! ERROR: "mtk_afe_add_sub_dai_control" [sound/soc/mediatek/mt6797/snd-soc-mt6797-afe.ko] undefined! ERROR: "mtk_afe_pcm_new" [sound/soc/mediatek/mt6797/snd-soc-mt6797-afe.ko] undefined! ERROR: "mtk_afe_combine_sub_dai" [sound/soc/mediatek/mt6797/snd-soc-mt6797-afe.ko] undefined! ERROR: "mtk_afe_pcm_ops" [sound/soc/mediatek/mt6797/snd-soc-mt6797-afe.ko] undefined! This exports the five symbols above for modules. Fixes: b3c702f56bf5 ("ASoC: mt6797: combine DAI to register component") Signed-off-by: Arnd Bergmann --- sound/soc/mediatek/common/mtk-afe-platform-driver.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sound/soc/mediatek/common/mtk-afe-platform-driver.c b/sound/soc/mediatek/common/mtk-afe-platform-driver.c index 00618587ef1e..51ec4ff6ed95 100644 --- a/sound/soc/mediatek/common/mtk-afe-platform-driver.c +++ b/sound/soc/mediatek/common/mtk-afe-platform-driver.c @@ -57,6 +57,7 @@ int mtk_afe_combine_sub_dai(struct mtk_base_afe *afe) return 0; } +EXPORT_SYMBOL_GPL(mtk_afe_combine_sub_dai); int mtk_afe_add_sub_dai_control(struct snd_soc_component *component) { @@ -90,6 +91,7 @@ int mtk_afe_add_sub_dai_control(struct snd_soc_component *component) return 0; } +EXPORT_SYMBOL_GPL(mtk_afe_add_sub_dai_control); static snd_pcm_uframes_t mtk_afe_pcm_pointer (struct snd_pcm_substream *substream) @@ -130,6 +132,7 @@ const struct snd_pcm_ops mtk_afe_pcm_ops = { .ioctl = snd_pcm_lib_ioctl, .pointer = mtk_afe_pcm_pointer, }; +EXPORT_SYMBOL_GPL(mtk_afe_pcm_ops); int mtk_afe_pcm_new(struct snd_soc_pcm_runtime *rtd) { @@ -143,11 +146,13 @@ int mtk_afe_pcm_new(struct snd_soc_pcm_runtime *rtd) afe->dev, size, size); } +EXPORT_SYMBOL_GPL(mtk_afe_pcm_new); void mtk_afe_pcm_free(struct snd_pcm *pcm) { snd_pcm_lib_preallocate_free_for_all(pcm); } +EXPORT_SYMBOL_GPL(mtk_afe_pcm_free); const struct snd_soc_component_driver mtk_afe_pcm_platform = { .name = AFE_PCM_NAME,