From patchwork Thu Sep 6 22:28:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 10591153 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 207B214BD for ; Thu, 6 Sep 2018 22:28:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0CF6B298A2 for ; Thu, 6 Sep 2018 22:28:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0082B2A15D; Thu, 6 Sep 2018 22:28:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 941F7298A2 for ; Thu, 6 Sep 2018 22:28:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728665AbeIGDFw (ORCPT ); Thu, 6 Sep 2018 23:05:52 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:43600 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727530AbeIGDFw (ORCPT ); Thu, 6 Sep 2018 23:05:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:MIME-Version:Date:Message-ID:Subject:From:Cc:To:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=FPx4q7pCI47RKWYoZSDageoyULipn4Mh7ySgXRtDf+E=; b=Bi6uQP+U3ZUeL/tgxGSenDWw/ KyMK1X715yUo6Gadlht0Y6YTqQXNzPDkKQQ6n4IvRhke6zecBnLAOLibmwxbH4zlL5aQZEtV81vQb raG04xjIQNZ/RiI1Z03uos6PVizTjlcJZ33OMAwnXbjJ5fcmG7JCwROS0buXnUJRVRB0CUd17SytU eqxsQRtTUWVQDTqcMIXs4pSxkQiR4mM3z2PoVjjD51RSn+62/Ar+Qk9yQkBnWIIWjg3E5y5+c2Nu3 CIfBxUz8xiW3343AkdUHVlr809y7nDy19xbK8q5emnNg4PYvi+s5ASBO4ifDckpRKy0zg1o3zLPEZ Gf6Yl2Mfw==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fy2l3-0005dL-Lh; Thu, 06 Sep 2018 22:28:13 +0000 To: linux-wireless , Kalle Valo Cc: Felix Fietkau , "netdev@vger.kernel.org" From: Randy Dunlap Subject: [PATCH] net: wireless: mediatek: fix mt76 LEDS build error Message-ID: <563c7f90-1d9f-440c-4670-8fbebc9f76b0@infradead.org> Date: Thu, 6 Sep 2018 15:28:12 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 Content-Language: en-US Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Randy Dunlap All of the mt76 driver options use its mac80211.o component, which uses led interfaces, so each of them should depend on LEDS_CLASS. Fixes this build error: drivers/net/wireless/mediatek/mt76/mac80211.o: In function `mt76_led_init': drivers/net/wireless/mediatek/mt76/mac80211.c:119: undefined reference to `devm_of_led_classdev_register' Fixes: 17f1de56df05 ("mt76: add common code shared between multiple chipsets") Reported-by: kbuild test robot Signed-off-by: Randy Dunlap Cc: Felix Fietkau Cc: Kalle Valo --- drivers/net/wireless/mediatek/mt76/Kconfig | 3 +++ 1 file changed, 3 insertions(+) --- linux-next-20180906.orig/drivers/net/wireless/mediatek/mt76/Kconfig +++ linux-next-20180906/drivers/net/wireless/mediatek/mt76/Kconfig @@ -18,6 +18,7 @@ config MT76x0U tristate "MediaTek MT76x0U (USB) support" select MT76_CORE depends on MAC80211 + depends on LEDS_CLASS depends on USB select MT76x02_LIB help @@ -28,6 +29,7 @@ config MT76x2E select MT76_CORE select MT76x2_COMMON depends on MAC80211 + depends on LEDS_CLASS depends on PCI ---help--- This adds support for MT7612/MT7602/MT7662-based wireless PCIe devices. @@ -38,6 +40,7 @@ config MT76x2U select MT76_USB select MT76x2_COMMON depends on MAC80211 + depends on LEDS_CLASS depends on USB help This adds support for MT7612U-based wireless USB dongles.