Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3675795ybz; Mon, 20 Apr 2020 07:28:39 -0700 (PDT) X-Google-Smtp-Source: APiQypIkKHju0QA7brOIdN45eB5WcQJxrdj3gA2p4EhogIrpDmL/GJw6Pu0hbTL2Yg23TLkZLtTR X-Received: by 2002:a17:906:2558:: with SMTP id j24mr16872972ejb.72.1587392919061; Mon, 20 Apr 2020 07:28:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587392919; cv=none; d=google.com; s=arc-20160816; b=SotsMVM1dV+M/lWCOM86r0UyOB1brXxOTKoAyk0dcp8CHP5Yl99GyE4q1dajJRu2BG yPys/XyOeq4W33r78mg5dqKj3/ECONirLQ0djne6bbgEDoLDFacmyZ2y/I+F8tGPaE9W 1prDBfoIhq9bNStleX7oPY32gPGb2hgC5n88PnApxOcnXwMFgXtq+xjXqnR7/Zr/HN0G Wd6fyqnbkaeshTtimrofXe44M/EAyCyuuxpdphJzEndms0sGEF2qkjevL9O2A6Q17hpN 5K9yQqjv1+L8gGyvNm+Vkwwa2NPYN8Y6HrKEuKMP/EMcnEjo3b5c1fymWl2HkCWm4TUD O46w== 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:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=AmSljn+0AmfysHuSv3Lk5n/TxZCAyqBj/eH0fFphlyY=; b=f0CC3nIrO3x+aq0SwrGEBuKt9cCV0+nANcB3fDWFmJ9G20mELD4Luq48EkLe3f6O+3 syWTUdRHYQnT/9ur4OZNYnFbvDXbnM+KCjWCd3R/r1VohkeJmBCcXGBtqwG92WXRPQJZ v+EmZYTea4Qgi9yEe3PTbmIIrBbEmOisaZEksdq+zI7ZRGaoRsALlOq34A3xrUvpKd92 EXPROLsXj6ktlGTyWL/6sZ8OYiO6GJRZhYCf6dSHnDNT29iOJGZqp5TvgDQgxhNFdy+a xHZExGvYHU4tVHJZvhxHy+b0XCNF8CTtNnjd8V5LzQeFhp5YeSFVHaGSqPDSb5mmNl/i 1gxQ== 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 bq12si666676ejb.472.2020.04.20.07.28.13; Mon, 20 Apr 2020 07:28:39 -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 S1729465AbgDTMww (ORCPT + 99 others); Mon, 20 Apr 2020 08:52:52 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:2416 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728937AbgDTMwu (ORCPT ); Mon, 20 Apr 2020 08:52:50 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 3E7B429041ABCD99F1AA; Mon, 20 Apr 2020 20:52:46 +0800 (CST) Received: from [127.0.0.1] (10.166.215.154) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.487.0; Mon, 20 Apr 2020 20:52:41 +0800 Subject: Re: [PATCH] ASoC: wm89xx: Fix build error without CONFIG_I2C To: Charles Keepax References: <20200418090853.30340-1-yuehaibing@huawei.com> <20200420102701.GB44490@ediswmail.ad.cirrus.com> CC: , , , , , , From: Yuehaibing Message-ID: Date: Mon, 20 Apr 2020 20:52:40 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <20200420102701.GB44490@ediswmail.ad.cirrus.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit 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 On 2020/4/20 18:27, Charles Keepax wrote: > On Sat, Apr 18, 2020 at 05:08:53PM +0800, YueHaibing wrote: >> 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. >> > > This doesn't look like the right fix there, all these parts can > be used on SPI so should be usable without I2C build in. Sorry, the patch title is wrong, the issue is CONFIG_I2C m but SND_SOC_WM8900 is y. This should depends on SND_SOC_I2C_AND_SPI like others. > > Thanks, > Charles > > . >