Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3650954ybz; Mon, 20 Apr 2020 07:02:20 -0700 (PDT) X-Google-Smtp-Source: APiQypJGg7ecJ6XBE7a3bD3PLx+Em+dsz9zAfDudBY3OSHrfUSC12r4XtbWTaEDJecUWvPZrJi9M X-Received: by 2002:a05:600c:225a:: with SMTP id a26mr17976335wmm.104.1587391340340; Mon, 20 Apr 2020 07:02:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587391340; cv=none; d=google.com; s=arc-20160816; b=RSsBu78IYWap4N8OVcY9Rd60pU0UMNq8lky20nM7vffpZj2fsI0pNkW+DPUyZ1Wc/o OUH5cHH5DqR0doGntHs0DSUnrycMwJdEk/gR0wk4Hi4qAaxOeIUtqZj8fbFZU5nS0w55 6M+TBuvXmuTIy7yGpuXBVJCMSt8c60cstdatlhZE+9pygkIvtm69GG85l4df8Pe7utPz qJfeDGiYWovw+au70nZ7C/Uj7t5yydl/TyIFFmVUaZuIuIsHD3wYenOgPMFxZ97JRUo8 abP+1NF++b39VLbLT/nTqQ77Jct1cuou2wnGqBGaBKrmgPGXe3zoKMdUoNa2RA1dmtzH qZuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=ScWyWBv8H6g6DzSwvBb/SODJ5HdvWNMMfMQMNzjCNqY=; b=xDoW/KXMsGPg8Zkpm+kIUeFmUL7XOzKRmCtFodEjalW5S/2oD/Z4mXFpajtxCrnubu lWDO/wy45ayyuac/Odpna74NY4QRiI355vJr11ksrhT5BFt1qQy3QWWEA08k9ztgVZsP mYFOXtJf8GsG0N4SlrEBNW2GC/FrZDES4hI7pLUsh5KF2gvxNZNWqEd0p4lh34x5PifV kWRXEG2G5+U1JijCSF5XVMKBa5cMmXRo6INcX3bUtMhI0fzrlnrEg464ADxsMQiq82Lo EXx6FgvJSBjPiuZWnMDnWoC80HYSeVcAzxtGTa9noa+5XNQDLsH8vfu28su1sf+CSJXN S2cg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q24si626607ejb.184.2020.04.20.07.01.51; Mon, 20 Apr 2020 07:02:20 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726777AbgDTM0f (ORCPT + 99 others); Mon, 20 Apr 2020 08:26:35 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:45176 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726470AbgDTM0b (ORCPT ); Mon, 20 Apr 2020 08:26:31 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 1776992AF7BEDEBF3F29; Mon, 20 Apr 2020 20:26:29 +0800 (CST) Received: from euler.huawei.com (10.175.104.193) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.487.0; Mon, 20 Apr 2020 20:26:26 +0800 From: Wei Li To: , , , , , CC: , Subject: [PATCH 1/2] ASoC: wm89xx: Fix build errors caused by I2C dependency Date: Tue, 21 Apr 2020 04:24:09 +0800 Message-ID: <20200420202410.47327-2-liwei391@huawei.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200420202410.47327-1-liwei391@huawei.com> References: <20200420202410.47327-1-liwei391@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.104.193] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When I2C=m, SND_SOC_WM8900=y, SND_SOC_WM8988=y, SND_SOC_WM8995=y: sound/soc/codecs/wm8900.o: In function `wm8900_i2c_probe': wm8900.c:(.text+0xa16): undefined reference to `__devm_regmap_init_i2c' sound/soc/codecs/wm8900.o: In function `wm8900_modinit': wm8900.c:(.init.text+0xb): undefined reference to `i2c_register_driver' sound/soc/codecs/wm8900.o: In function `wm8900_exit': wm8900.c:(.exit.text+0x8): undefined reference to `i2c_del_driver' sound/soc/codecs/wm8988.o: In function `wm8988_i2c_probe': wm8988.c:(.text+0x86b): undefined reference to `__devm_regmap_init_i2c' sound/soc/codecs/wm8988.o: In function `wm8988_modinit': wm8988.c:(.init.text+0xb): undefined reference to `i2c_register_driver' sound/soc/codecs/wm8988.o: In function `wm8988_exit': wm8988.c:(.exit.text+0x8): undefined reference to `i2c_del_driver' sound/soc/codecs/wm8995.o: In function `wm8995_i2c_probe': wm8995.c:(.text+0x1b5b): undefined reference to `__devm_regmap_init_i2c' sound/soc/codecs/wm8995.o: In function `wm8995_modinit': wm8995.c:(.init.text+0xb): undefined reference to `i2c_register_driver' sound/soc/codecs/wm8995.o: In function `wm8995_exit': wm8995.c:(.exit.text+0x8): undefined reference to `i2c_del_driver' As these drivers support I2C and SPI, we add the SND_SOC_I2C_AND_SPI dependency to solve it. Reported-by: Hulk Robot Fixes: ea00d95200d02 ("ASoC: Use imply for SND_SOC_ALL_CODECS") Signed-off-by: Wei Li --- sound/soc/codecs/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound/soc/codecs/Kconfig b/sound/soc/codecs/Kconfig index e6a0c5d05fa5..e60e0b6a689c 100644 --- a/sound/soc/codecs/Kconfig +++ b/sound/soc/codecs/Kconfig @@ -1525,6 +1525,7 @@ config SND_SOC_WM8804_SPI config SND_SOC_WM8900 tristate + depends on SND_SOC_I2C_AND_SPI config SND_SOC_WM8903 tristate "Wolfson Microelectronics WM8903 CODEC" @@ -1576,6 +1577,7 @@ config SND_SOC_WM8985 config SND_SOC_WM8988 tristate + depends on SND_SOC_I2C_AND_SPI config SND_SOC_WM8990 tristate @@ -1594,6 +1596,7 @@ config SND_SOC_WM8994 config SND_SOC_WM8995 tristate + depends on SND_SOC_I2C_AND_SPI config SND_SOC_WM8996 tristate -- 2.17.1