Received: by 2002:aa6:c46f:0:b029:96:faae:e639 with SMTP id i15csp341079lkq; Thu, 5 Nov 2020 04:02:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJzPzTuPtcREe7eqg89cJlTye+s7obLh08zclf5/cXcxqEEHwUyjK5d/RBB9GH8H13I8w/Jo X-Received: by 2002:a17:906:f753:: with SMTP id jp19mr1890721ejb.280.1604577721858; Thu, 05 Nov 2020 04:02:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604577721; cv=none; d=google.com; s=arc-20160816; b=rQt1C1c9AY23CdC3+xJFdz6bNUkzNKd3dGMy1ImxfBQYL5lMWsRQASdy4s0gZ4TUIe bYLLB3HLEXXCLa/k4rQwkfb7TLRbgpqAnt+IFgsagnf8ig+u3peQkTKN154g4D3C8uJT 97U0qO6AJytidh1e5wrUd/6YyDEUBJQ/uiab+AGdchT93yF5LxtOKbzB0ySf182VVc9t ihTiDLG/sXHKsLNMq0x4/OyMKmI06zslga6oAg0Z57X67xQ8VdvxaMkqnh8VyJBqZezX y6nrDsjiMxF/R27JwSGR/g2mDkvmHDOwbKH195ClsH7gIc7c95n6qFNf7JSobvGOr6Y/ cH9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=hD+jTA+3CFbm6Cc6YXWQOBtuekF/Hqs80WB365oy6RQ=; b=fhovyl8jd0cYyNigdI8FNMCHbC40rEfLlWHLXzIrIKnyX7Gzeov8gssVybODAIxsGq n4zNmcNEw5MKPWTaH67dMX2MSZilqxW75aUAL6Qo67E57ndBFlTAevJUaNzjKFNIDt5B IQPPzl9elk5vAhtl+64g1yuHDWD0/9VLL8odOfVGKSluvu+OEjtcezjdJulPlZP7aogR uCdM9oFeypMcv0BlAa2eeOwSYkBDNLjzq0Ki0PY/+LOOKk+3krdoCAoB7a5pzvZeIl5d +tpqNU+etbIyeGszviN6Vz8cqFDqiaFC/dPdH4jAiqlzgQzdAaX4AWC5hyIIn9U+EeXo oHXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="se/DLfBp"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t5si894358ejx.583.2020.11.05.04.01.35; Thu, 05 Nov 2020 04:02:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="se/DLfBp"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727275AbgKEMAG (ORCPT + 99 others); Thu, 5 Nov 2020 07:00:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726067AbgKEMAG (ORCPT ); Thu, 5 Nov 2020 07:00:06 -0500 Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4FE0C0613CF for ; Thu, 5 Nov 2020 04:00:05 -0800 (PST) Received: by mail-lj1-x241.google.com with SMTP id p15so1274094ljj.8 for ; Thu, 05 Nov 2020 04:00:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=hD+jTA+3CFbm6Cc6YXWQOBtuekF/Hqs80WB365oy6RQ=; b=se/DLfBpwBk2kG2zcKQ1QbC/k7rlYtozlHPB89l89B0J9DJimFbaCvwAaqaqjuU1VS 1z1yJM5RfY9UqOKj+y1YwINuAWbr66pWiPOTFbN5dK5K3cwnzj73z7jMz4Akxx8TTUNB mIXU07VN1CWxp0VJtD9+oH2qV7rskSX21CWBjOuHFMQ3x9zCzd1ROXjSTaCadav4J4j/ 4diuQfz0ntcAdVMQw+ZIa5s55VCU5PiCsLnTuErkY9GxmUBIwmeQsM5d7SruoK1oSf2V 3OpI+j5s34L7QbupBHwew6QWVlszJBXpIlZKUaY9wf5jHiYzGfXZh9icMVFtWYUvMebp V5mA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=hD+jTA+3CFbm6Cc6YXWQOBtuekF/Hqs80WB365oy6RQ=; b=BDM1T5kZwydedUjOy99OjXQUSBvSLXbM8hXs5K9tFk6H+yFjGaKEX14KuCWMTv3jor Jija239pGF4+YtPpZlDqCWobGHqHlbzcfpiEiAozBTQ0nKb3WkRDVtiDXNCx9u0gn+TK VGf31S6rUO9H4aE8TVCK2+mU8bG+WaFhAhxd3HN1dmiLNpwYld6YZkgVyUO+WZVKNyPm aUZO4+Dwuw9L/j3BPxYEDvvOEqH5DB1y+uDC4VADbQSC2gGDo9zf5ZwB7RrRp0aRRJRs QaDA7ufkZvnANQX/xluNK/aKNapie6rqZe0zJKfhHmtQByGE9auHHzWRdWfzXhf51x8f lFWg== X-Gm-Message-State: AOAM530ouczFIjgD50k76hshgSVnufisQMljHFlmgFzMPssJm72/Jv6C a3N/5rSzzyMAS71SznHPYCWFBg== X-Received: by 2002:a2e:854c:: with SMTP id u12mr709140ljj.297.1604577604283; Thu, 05 Nov 2020 04:00:04 -0800 (PST) Received: from localhost (c-9b28e555.07-21-73746f28.bbcust.telenor.se. [85.229.40.155]) by smtp.gmail.com with ESMTPSA id s5sm161307lfd.58.2020.11.05.04.00.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Nov 2020 04:00:03 -0800 (PST) From: Anders Roxell To: lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, matthias.bgg@gmail.com Cc: alsa-devel@alsa-project.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, Anders Roxell Subject: [PATCH] sound: soc: mediatek: mt8192: fix modpost ERROR Date: Thu, 5 Nov 2020 12:59:58 +0100 Message-Id: <20201105115958.1850123-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When enabling CONFIG_SND_SOC_MT8192_MT6359_RT1015_RT5682=m the following error shows up: ERROR: modpost: "mt8192_afe_gpio_request" [sound/soc/mediatek/mt8192/mt8192-mt6359-rt1015-rt5682.ko] undefined! ERROR: modpost: "mt8192_afe_gpio_init" [sound/soc/mediatek/mt8192/mt8192-mt6359-rt1015-rt5682.ko] undefined! Fix the link error by export the symbols mt8192_afe_gpio_init and mt8192_afe_gpio_request. Fixes: 18b13ff23fab ("ASoC: mediatek: mt8192: add machine driver with mt6359, rt1015 and rt5682") Signed-off-by: Anders Roxell --- sound/soc/mediatek/mt8192/mt8192-afe-gpio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/mediatek/mt8192/mt8192-afe-gpio.c b/sound/soc/mediatek/mt8192/mt8192-afe-gpio.c index ea000888c9e8..0286c95ed2b8 100644 --- a/sound/soc/mediatek/mt8192/mt8192-afe-gpio.c +++ b/sound/soc/mediatek/mt8192/mt8192-afe-gpio.c @@ -160,6 +160,7 @@ int mt8192_afe_gpio_init(struct device *dev) return 0; } +EXPORT_SYMBOL_GPL(mt8192_afe_gpio_init); static int mt8192_afe_gpio_adda_dl(struct device *dev, bool enable) { @@ -304,3 +305,4 @@ int mt8192_afe_gpio_request(struct device *dev, bool enable, return 0; } +EXPORT_SYMBOL_GPL(mt8192_afe_gpio_request); -- 2.28.0