From patchwork Thu Dec 15 16:31:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 634830 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DCFE1C25B04 for ; Thu, 15 Dec 2022 16:32:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230031AbiLOQcG (ORCPT ); Thu, 15 Dec 2022 11:32:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230166AbiLOQbm (ORCPT ); Thu, 15 Dec 2022 11:31:42 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A327B879; Thu, 15 Dec 2022 08:31:41 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 160A061E61; Thu, 15 Dec 2022 16:31:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EA2E4C433EF; Thu, 15 Dec 2022 16:31:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1671121900; bh=gAwB+Fty7Ew2vwNk/+gFvPZ/aMvqgMJxojNhd2obFPk=; h=From:To:Cc:Subject:Date:From; b=Ad6Tic/c9OuhNFSGaN0ipRjCWQ5gEmHBwzSrL5oizW40pHFZJ5Pw1qPk54qYonN8x SH42GkPJG0KrUHsxQBEiv7HDCMMhVa3h5Rtsm4bbXsbZX6xWIHS9LKY8hnP9/VkKVQ ZBvMuO9GFoHroiClO3AbfNzys7Z5tNBD+AuT5MrHRUvoFGr8YdYql4ezaN4cKOqWzn AKiKUq3oC66S9P9FoA/CuQezAg6lcRiUEhjYMsoT01KcnuPyf7W+s8q6ENPYShhfhu p5QXvIeF/EMH0NusScO0b3xG843jmY1Zu0fdxcjm8k8lIzPJowtxdZVLPTXSAjzrFI 2zC9pClpXmtqQ== From: Arnd Bergmann To: Felix Fietkau , Lorenzo Bianconi , Ryder Lee Cc: Arnd Bergmann , Shayne Chen , Sean Wang , Kalle Valo , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] wifi: mt76: mt7996: select CONFIG_RELAY Date: Thu, 15 Dec 2022 17:31:10 +0100 Message-Id: <20221215163133.4152299-1-arnd@kernel.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Arnd Bergmann Without CONFIG_RELAY, the driver fails to link: ERROR: modpost: "relay_flush" [drivers/net/wireless/mediatek/mt76/mt7996/mt7996e.ko] undefined! ERROR: modpost: "relay_switch_subbuf" [drivers/net/wireless/mediatek/mt76/mt7996/mt7996e.ko] undefined! ERROR: modpost: "relay_open" [drivers/net/wireless/mediatek/mt76/mt7996/mt7996e.ko] undefined! ERROR: modpost: "relay_reset" [drivers/net/wireless/mediatek/mt76/mt7996/mt7996e.ko] undefined! ERROR: modpost: "relay_file_operations" [drivers/net/wireless/mediatek/mt76/mt7996/mt7996e.ko] undefined! The same change was done in mt7915 for the corresponding copy of the code. Fixes: 98686cd21624 ("wifi: mt76: mt7996: add driver for MediaTek Wi-Fi 7 (802.11be) devices") See-also: 988845c9361a ("mt76: mt7915: add support for passing chip/firmware debug data to user space") Signed-off-by: Arnd Bergmann --- drivers/net/wireless/mediatek/mt76/mt7996/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/mediatek/mt76/mt7996/Kconfig b/drivers/net/wireless/mediatek/mt76/mt7996/Kconfig index 5c5fc569e6d5..79fb47a73c91 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7996/Kconfig +++ b/drivers/net/wireless/mediatek/mt76/mt7996/Kconfig @@ -2,6 +2,7 @@ config MT7996E tristate "MediaTek MT7996 (PCIe) support" select MT76_CONNAC_LIB + select RELAY depends on MAC80211 depends on PCI help