Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp518983ybp; Thu, 10 Oct 2019 23:21:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqx4LqWtWjcuGI6FroLKpENLVmaol6ybCLOH49aMobzJpm8wsJPoCrndnId/qi9uQm2lhq6V X-Received: by 2002:a17:906:ce2e:: with SMTP id sd14mr12373341ejb.197.1570774884052; Thu, 10 Oct 2019 23:21:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570774884; cv=none; d=google.com; s=arc-20160816; b=sEuVjJ4jnrMZr336aOKPtWcb0doFdLufy2C45p8tKAAmdxp3xKx8n5Hc7VdtYIHqEV 6EcixXoGjP8SfbxKiJCFzF1V0MTn20zCfbwuCooZJjlXkpaCDEUxgJmTOHVl3GtelrbL Mjte8p3bnLpEshEXJalVsaWSOn/zGohsy8axSykNiiwOu+0vNU03oM4IfJWndt1wjW5X 5HcmCe3L17gWzc7b7b/8Fwx9SPVhZ9P6nZwIuyfxe4jYOdKT9FN17QWcWZNa3V6/YiQW DUeunr+hYoHziVLYJQtaVqfWRrmMQ712GbUnIcBA6q3uw+fIeHzxBv/8rxZj+gLfZiFO MBOQ== 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 :references:subject:cc:to:mime-version:user-agent:from:date :message-id; bh=r183PgtMc84OjG8e8pQQZ6HhKWR1y5fM+4b+9gBvXY4=; b=c5X+BwJasgJk3iyCfZDrVKBwEhTl5UN/blSQOaJ/phfoNnoY4YEQfDfTfEthIFJTZW pKNIVRphSSBsntgxlOUjId+Qpog3SSGl3KaAuUOj1vPmqgYSSK70SrHWr+2PWK6UzdKc +A7UTFR2VduoEbFYLISZf17YRmbAWgcwqbhQE9FZDuEgw4xJXYxRQOAKI2lt+LmYcjM5 ATCrc6Fga+2yCEuhr3qJD9x44/+2d3KlZb5p6Fuih1zopaITe0dkIip85YowxJ/UCHqe voWJHBcL4la6gBA8kMdm9Q91mTGgUDb0qP3gTCQ0gx79tgSX60oQA+VaEzv99ryaZkzJ TXJA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x8si5780253edd.282.2019.10.10.23.21.00; Thu, 10 Oct 2019 23:21:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727361AbfJKGUW (ORCPT + 99 others); Fri, 11 Oct 2019 02:20:22 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:3731 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726401AbfJKGUW (ORCPT ); Fri, 11 Oct 2019 02:20:22 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id A265B27779FA3EAE2939; Fri, 11 Oct 2019 14:20:18 +0800 (CST) Received: from [127.0.0.1] (10.177.29.68) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.439.0; Fri, 11 Oct 2019 14:20:17 +0800 Message-ID: <5DA01F20.8020402@huawei.com> Date: Fri, 11 Oct 2019 14:20:16 +0800 From: zhong jiang User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Greg KH CC: , Subject: Re: [PATCH] staging: wfx: fix an undefined reference error when CONFIG_MMC=m References: <1570762939-8735-1-git-send-email-zhongjiang@huawei.com> <20191011042609.GB938845@kroah.com> In-Reply-To: <20191011042609.GB938845@kroah.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.29.68] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/10/11 12:26, Greg KH wrote: > On Fri, Oct 11, 2019 at 11:02:19AM +0800, zhong jiang wrote: >> I hit the following error when compile the kernel. >> >> drivers/staging/wfx/main.o: In function `wfx_core_init': >> /home/z00352263/linux-next/linux-next/drivers/staging/wfx/main.c:488: undefined reference to `sdio_register_driver' >> drivers/staging/wfx/main.o: In function `wfx_core_exit': >> /home/z00352263/linux-next/linux-next/drivers/staging/wfx/main.c:496: undefined reference to `sdio_unregister_driver' >> drivers/staging/wfx/main.o:(.debug_addr+0x1a8): undefined reference to `sdio_register_driver' >> drivers/staging/wfx/main.o:(.debug_addr+0x6f0): undefined reference to `sdio_unregister_driver' >> >> Signed-off-by: zhong jiang >> --- >> drivers/staging/wfx/Kconfig | 3 ++- >> drivers/staging/wfx/Makefile | 5 +++-- >> 2 files changed, 5 insertions(+), 3 deletions(-) >> >> diff --git a/drivers/staging/wfx/Kconfig b/drivers/staging/wfx/Kconfig >> index 9b8a1c7..4d045513 100644 >> --- a/drivers/staging/wfx/Kconfig >> +++ b/drivers/staging/wfx/Kconfig >> @@ -1,7 +1,8 @@ >> config WFX >> tristate "Silicon Labs wireless chips WF200 and further" >> depends on MAC80211 >> - depends on (SPI || MMC) >> + depends on SPI >> + select MMC > How about: > depends on (SPI && MMC) > > instead? Yep, That is better. Will repost in v2. Thanks, Sincerely, zhong jiang > thanks, > > greg k-h > > . >