Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp2353713ybp; Sat, 12 Oct 2019 08:39:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqzI2cqbHz2KoAtwOghS1rj7DjXj3R0bzwQgEeorayyUfG5P3hsmuHX2HEaCH6rgFOMjl479 X-Received: by 2002:a17:906:48c6:: with SMTP id d6mr19820052ejt.291.1570894778717; Sat, 12 Oct 2019 08:39:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570894778; cv=none; d=google.com; s=arc-20160816; b=H9/iiAfIBCmmbrJP57pyaXr0uc8N+W1sRjz4eoMhQukZzX6zi01EptiVFu62KZZQB+ V1ZFwlwvRrkI6d0JMni3NLP+4eO6/NA00CHjCv9d7JbAuLKlb6rSUDY1fSL+hF44y6fQ +/NQ5jKHjZWRIgj39zRge13sfRhPaGNLQP/ro8YbjVf4Aqouvk75ETZCceHCNmXpR0qx 1/ngog0A6mapMZfDPujgtKk5S6ps1xhVmkmwbywE1RJZTThXRhRS2r1xMXvTYmm8UHLL PakPLMH1KSA/bDdqeduaA9Jhd1pwysDglkORfPFXRHxlz1eUhD9P7Mw3y07ZLQweKts7 5kdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=KXrUyiNkTfuyKSNKh9dPnwC4jAdQ8ldwcKywUOG1QAA=; b=KEeOxcjxbu63BKIietrleYpYIF6NxRKtCvuPPXNl/zJC0dNX1PGn+CQoYDj54FOSMi fHsvKZ6gDjivxUb1UUmP57fd/8ZS6kTAKCCrlB3E7SdlQKOFP8yrWvxfZRLFat/ouxxc RFOg/g483wGeFQEJc9iQ49BzFtDaGQk5aGVpoet4iVodErr2wM4TN1/q40WM2jv+/onx FsS4XUvQVn6FISaOV6DxcWspDgSrajlDhXrxtYKQh9o1LctFf0ztBNVOZgyQr4eoeuBs ZYOpWEQ7+uPFUhWYgeaRkUMwwqZlltFOWHa21CwPmSiz7XRG7djRBrMeJYCCWSZRJqal k9fA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=USFRwIu0; 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 f5si7229940edx.302.2019.10.12.08.39.14; Sat, 12 Oct 2019 08:39:38 -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; dkim=pass header.i=@kernel.org header.s=default header.b=USFRwIu0; 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 S1729374AbfJLPdB (ORCPT + 99 others); Sat, 12 Oct 2019 11:33:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:42776 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727642AbfJLPdA (ORCPT ); Sat, 12 Oct 2019 11:33:00 -0400 Received: from localhost (unknown [62.119.166.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C90E22087E; Sat, 12 Oct 2019 15:32:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570894380; bh=wOO9dT/+1DpyPCBDo9cRL6tqlwKchXOKgpUHSlZujCY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=USFRwIu0nUIYtJeUjApTVxq620Mc3myFOIARiUXmGVUFFwfzjAhEfBKx6ol9kiOkH HpvxbKNJCoJt2Vxllw3RTlylLbniCaSuChNSRP3dMfR5Ajadlxhuz9q/e1K1SFXSUu +PRDXslnhfQnQrmj3Lk6W2mOATdG5AJRtZlLlPbs= Date: Sat, 12 Oct 2019 17:32:45 +0200 From: Greg KH To: zhong jiang Cc: Jerome.Pouiller@silabs.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] staging: wfx: fix an undefined reference error when CONFIG_MMC=m Message-ID: <20191012153245.GA2155778@kroah.com> References: <1570877693-52711-1-git-send-email-zhongjiang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1570877693-52711-1-git-send-email-zhongjiang@huawei.com> User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Oct 12, 2019 at 06:54:53PM +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 > --- > v2->v3: > We'd better not use #ifdef in .c file to use IS_ENABLED instead. > > v1->v2: > We should prefer to current dependencies rather than force to enable. > > drivers/staging/wfx/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/wfx/Makefile b/drivers/staging/wfx/Makefile > index 0d9c1ed..77d68b7 100644 > --- a/drivers/staging/wfx/Makefile > +++ b/drivers/staging/wfx/Makefile > @@ -19,6 +19,6 @@ wfx-y := \ > sta.o \ > debug.o > wfx-$(CONFIG_SPI) += bus_spi.o > -wfx-$(subst m,y,$(CONFIG_MMC)) += bus_sdio.o > +wfx-$(CONFIG_MMC) += bus_sdio.o > > obj-$(CONFIG_WFX) += wfx.o How does this change any of the existing logic? What does this really change to solve the issue? I thought you were going to fix this up as I suggested in my last email? thanks, greg k-h