Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2627338pxb; Sat, 23 Oct 2021 04:24:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVtiGw3Ozmu7K0MLjbHG/aW9kwZjBGwOXuBdYXZX0dBgJcizAIXlYK+eDz+cSrSLkbM98f X-Received: by 2002:a62:be18:0:b0:47b:baa6:fcfc with SMTP id l24-20020a62be18000000b0047bbaa6fcfcmr4813149pff.35.1634988286454; Sat, 23 Oct 2021 04:24:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634988286; cv=none; d=google.com; s=arc-20160816; b=mE1ls+LLbLgccZpnQC7e0iKGIu+UmiObZJ2UjgpNH+3LW8LuIiHXRnFD1GLxbQTzCb x4iFWY/+0fJwc3fV1FNBxmgcYvhro1CqWoGL+kpPcJUeZr+iy47i2QZZlZ/3DMBWkfzp SLPJzdZ5QmrlI0m0YZRrdnYtCHUfUemzb/GWYGFwxGLvJPnBtcH6r7ZDZMHWHtImHDlj okHw/ZA324q8lV7OuYjy2ZG3wjUvZbxMUdqiw0dRs99SDcnEj0ngc8EfZGa+PDv5AeH8 7fIWcYXYIwj2PfZRrnYyG0xYThqnvjyy09vg28VNaEuHtXPN6Z8DxvJxsS8BjB5JGnSF 3yBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:to:from:dkim-signature; bh=40kRliw1J3bs8Bek3w+2j+Xm8OJ2PlDk7ZqoLZsYXTc=; b=Jicefk56CAwX5WsbIkK/S6vvHEhGfBZI5h8EJOI2FOPhzbq8YcfwZlf/Rubdpbyrn8 nFKRbHYxTHd7VEgqLgzsiDstDFrpHsmmwMs33Z17EjWovcg4opEsorILFkdAPXmsuhiu +UOkDXrBFQPXBKt9Nmr2cIW6DPbX2YeowoNQd8S28TwnC0NA1tDiVIjKNdipHULmYem2 dVwFGRbcsmDgQs2iXJe5UkfJHQzFAQ7bixA8YoXJV6gcJQUTEp2gtQRxtuPGNJ6ExZi+ Ww018pgGcHRTKgXhj09wJa0hL5UwOyvkCHPBLdY+6z9uxXP2R9i/6kpFRNTALM1jsFVk IaQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=XAg84bKs; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m14si15591574pgv.221.2021.10.23.04.24.37; Sat, 23 Oct 2021 04:24:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=XAg84bKs; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229901AbhJWL0b (ORCPT + 64 others); Sat, 23 Oct 2021 07:26:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229778AbhJWL0a (ORCPT ); Sat, 23 Oct 2021 07:26:30 -0400 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E4F4C061764 for ; Sat, 23 Oct 2021 04:24:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject :To:From:Sender:Reply-To:Cc:Content-Type: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=40kRliw1J3bs8Bek3w+2j+Xm8OJ2PlDk7ZqoLZsYXTc=; b=XAg84bKspn39RtYPlTHUc/+v5M grybn9kIRsIgqxaDRzibPp6DV7AT8FJxWUSIxhcoLlzAyLiFs4bv2nGhjhcb12jQsSGinDpCmlG/Y fZyWHfv7e0g/Z8wWrmcYcm6T95hhNMf37AAP02V0V54Pyn8b8r2dR43WBVb8VQ8fUZC0=; Received: from p4ff1322b.dip0.t-ipconnect.de ([79.241.50.43] helo=localhost.localdomain) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1meF8C-0007fX-R8 for linux-wireless@vger.kernel.org; Sat, 23 Oct 2021 13:24:08 +0200 From: Felix Fietkau To: linux-wireless@vger.kernel.org Subject: [PATCH] mt76: connac: fix unresolved symbols when CONFIG_PM is unset Date: Sat, 23 Oct 2021 13:24:07 +0200 Message-Id: <20211023112407.26448-1-nbd@nbd.name> X-Mailer: git-send-email 2.30.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org mt76_connac_mcu_reg_* functions are always needed by connac based drivers Fixes: 87f9bf24ea84 ("mt76: connac: move mcu reg access utility routines in mt76_connac_lib module") Signed-off-by: Felix Fietkau --- drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c b/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c index 32e25180fc1e..26b4b875dcc0 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c +++ b/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c @@ -2477,6 +2477,7 @@ void mt76_connac_mcu_set_suspend_iter(void *priv, u8 *mac, mt76_connac_mcu_set_wow_ctrl(phy, vif, suspend, wowlan); } EXPORT_SYMBOL_GPL(mt76_connac_mcu_set_suspend_iter); +#endif /* CONFIG_PM */ u32 mt76_connac_mcu_reg_rr(struct mt76_dev *dev, u32 offset) { @@ -2505,7 +2506,6 @@ void mt76_connac_mcu_reg_wr(struct mt76_dev *dev, u32 offset, u32 val) mt76_mcu_send_msg(dev, MCU_CMD_REG_WRITE, &req, sizeof(req), false); } EXPORT_SYMBOL_GPL(mt76_connac_mcu_reg_wr); -#endif /* CONFIG_PM */ MODULE_AUTHOR("Lorenzo Bianconi "); MODULE_LICENSE("Dual BSD/GPL"); -- 2.30.1