Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1498495ybz; Sat, 18 Apr 2020 02:14:00 -0700 (PDT) X-Google-Smtp-Source: APiQypIPHpSADWPE+3QjOkkzO6BL02+aNxoepRwOUvS2YMSM/7mdgq4NPVXAJwiNGwaSu/HeFn3q X-Received: by 2002:a50:bb2a:: with SMTP id y39mr6194997ede.292.1587201240353; Sat, 18 Apr 2020 02:14:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587201240; cv=none; d=google.com; s=arc-20160816; b=V5Q70gbF2hhdxmlTJY4kmL0Ed2YeOW2D7P5kxa+kYE9j03PR1hg3o7RmDdoQubG6j6 XpOKNannmAm/Dv8KBQIFbljYrbvlcM3oeABF+9ur5Db4B7CZwRXrdGZYNJOBUCXjz29T T9WG6eXtK3U/o1xCvajHo02lZyUQ17mlo/oT9AAzcM2juIVOniPq6TPWl9G+HpDr1EUR YDqbWu5A58CV25955exMeCxbRp7vyZ9y0gMUSrbc6wOSLd07sVXuJJ0hBRggChsTyy1r 7ogrvCvqzX+CcazS2W7MHZ6fYxQc6jEogPHjkSzuXXbAvT740kesVoQFHUyt+6me/R33 tevQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=tF7kSPHSFPpB953tqiM4yB4bzFhN6wODXpezsHpx5lU=; b=WUR2rApORZ5tr89JVzacgHsrMc9yinVJjEmnwS1nRpL2goN3w9PNTdmXthlygxNlRT RuV3+1rHoQ0eDL8BV6NvlRYIh3U716rwEaOgCYr+Ro8GeUDWtOEhiX856CPHdmNPWkX6 QZWgFd3OHujKJk9kkbvfux+S6QPGymuEO46FBWSxD51Id/O08Jv2ji5PbXTDS1ZUzaB8 qVhh78AtluOJEtKT7dHgPHKdw/9OG3lwSh15yAnb5FuhxL4zpWRBmIQXIvkY86Tkqc+2 O+9MuTsMSwvRLwH7K679MTR2FojWWg6GDkve+kt1Llvnt5xnctETTKOHQb16GqE41CAD t55A== 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 y19si10507808ejp.397.2020.04.18.02.13.20; Sat, 18 Apr 2020 02:14:00 -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 S1726050AbgDRJJO (ORCPT + 99 others); Sat, 18 Apr 2020 05:09:14 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:2795 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725857AbgDRJJO (ORCPT ); Sat, 18 Apr 2020 05:09:14 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 915CFACB01C39C9ECC24; Sat, 18 Apr 2020 17:09:11 +0800 (CST) Received: from localhost (10.166.215.154) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.487.0; Sat, 18 Apr 2020 17:09:02 +0800 From: YueHaibing To: , , , , CC: , , YueHaibing Subject: [PATCH] ASoC: wm89xx: Fix build error without CONFIG_I2C Date: Sat, 18 Apr 2020 17:08:53 +0800 Message-ID: <20200418090853.30340-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.166.215.154] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org sound/soc/codecs/wm8900.o: In function `wm8900_i2c_probe': wm8900.c:(.text+0xa36): 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+0x857): 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+0x1c4f): 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' Add missing I2C dependency to fix this. Reported-by: Hulk Robot Fixes: ea00d95200d02ece ("ASoC: Use imply for SND_SOC_ALL_CODECS") Signed-off-by: YueHaibing --- sound/soc/codecs/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound/soc/codecs/Kconfig b/sound/soc/codecs/Kconfig index e6a0c5d05fa5..2d8d0bba0c0a 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 I2C config SND_SOC_WM8903 tristate "Wolfson Microelectronics WM8903 CODEC" @@ -1576,6 +1577,7 @@ config SND_SOC_WM8985 config SND_SOC_WM8988 tristate + depends on I2C config SND_SOC_WM8990 tristate @@ -1594,6 +1596,7 @@ config SND_SOC_WM8994 config SND_SOC_WM8995 tristate + depends on I2C config SND_SOC_WM8996 tristate -- 2.17.1