Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp370533ybp; Thu, 10 Oct 2019 20:08:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqyK+HNcK1Ih8WKmk5k2DIJ7sIk0t3mXb3+U9PXX58n2ciL+4xnhi7dBMHqD9zCFrCPhT5Jb X-Received: by 2002:a17:906:688:: with SMTP id u8mr11739047ejb.208.1570763291272; Thu, 10 Oct 2019 20:08:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570763291; cv=none; d=google.com; s=arc-20160816; b=M1KDi0QFH1xbehIyBZ+R8999Eb1zJE1t6881R6VJqL9O87IVjdf9mhfOeNrXcnBdYG rtez5Er8oW+fk5tBpVhYS70o3Y8/OBOgIQyp0X8USZk+E59hKWpjSFbcsfDJQ0DMSncT 7GKF6EcOk+42zR8z1Qsv441noTGK1tXV3PGzFPcGoSYhPFvONzVp12fo+V4CBTvxicYg iu9tcpEAFWi3lwSsio092LxFOGnPef9cji5JS2JIf7D8OX+RL4i5qxDK22TYNGyE/t4r Xa9W0q2tw1Qkp7YO+ocoaPFS5nB/7h563fbvMF4fok+IOso3Ek2QgYaYYMqYjf4RpHUs 67Ag== 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=GSo3Oib0P1AkILbXoR3St3FnZFaU1txhfqggevJBpmc=; b=Y4avys3A7/fD2CFlMc+LUYcjHCJ56mD4Z6CMoDG3NrM2p2XVn90g8gZOE3n27160qn Ij3RFnbNglyjLOdjFsIRBKo2Ax7jYMiLvrrD5Li0YT/67cwjsU9fkNA6n/5LSGc3z+sQ lUalBR+T6+9M2uR0s9THAx7ZCzdbYHK17dHTLBBemMlnRsgGaPn3cqmdn2qalN3b/+tI va6qX8zdXXOQrUhcbDnw6tqpN3T6o7j4zuS2xs8QHmY9wQejKRnEJSsFzYbaD8LHX8V8 ooePoKqfQ+J1V++5dl0v7LVfyZVgQbCWmSUemPUmfh9p+oDAF/boS+qsegDjQ9FZdz0O MiNw== 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 ci21si4525451ejb.320.2019.10.10.20.07.48; Thu, 10 Oct 2019 20:08:11 -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 S1726595AbfJKDGP (ORCPT + 99 others); Thu, 10 Oct 2019 23:06:15 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:3692 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726076AbfJKDGP (ORCPT ); Thu, 10 Oct 2019 23:06:15 -0400 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 4CC76DC55C64BDC9EEB5; Fri, 11 Oct 2019 11:06:08 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.439.0; Fri, 11 Oct 2019 11:05:58 +0800 From: zhong jiang To: , CC: , Subject: [PATCH] staging: wfx: fix an undefined reference error when CONFIG_MMC=m Date: Fri, 11 Oct 2019 11:02:19 +0800 Message-ID: <1570762939-8735-1-git-send-email-zhongjiang@huawei.com> X-Mailer: git-send-email 1.7.12.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.102.37] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 help This is a driver for Silicons Labs WFxxx series (WF200 and further) chipsets. This chip can be found on SPI or SDIO buses. diff --git a/drivers/staging/wfx/Makefile b/drivers/staging/wfx/Makefile index 0d9c1ed..fc30b49 100644 --- a/drivers/staging/wfx/Makefile +++ b/drivers/staging/wfx/Makefile @@ -17,8 +17,9 @@ wfx-y := \ key.o \ main.o \ sta.o \ - debug.o + debug.o \ + bus_sdio.o + wfx-$(CONFIG_SPI) += bus_spi.o -wfx-$(subst m,y,$(CONFIG_MMC)) += bus_sdio.o obj-$(CONFIG_WFX) += wfx.o -- 1.7.12.4