Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1704874pxb; Thu, 16 Sep 2021 13:28:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhBlkdKLo4l7OVldEFSX9bgJ49uR6k4PTKDfllmX51/n8PGgiS7mN935EhPDmnssa8iCni X-Received: by 2002:a17:906:5959:: with SMTP id g25mr8294868ejr.501.1631824089476; Thu, 16 Sep 2021 13:28:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631824089; cv=none; d=google.com; s=arc-20160816; b=Rj4Ha7RjS3hhpCIGwPnfESEZBeoS+BXzewYK163B6PD+l2vd05CIhR7s8itcpusv+X yf/qL5clIUR2VJjh6hLkqgFuksPHxNm/CLvgdPfPO6oei1VH4x+BkITPqdJkIlwFoRoK CGCkuoqTXm+kBiqlwm2NVwKP+xdIGUtPftmnbNFKrByAl2aaDuL9DZzJkeHoEP9ftC6Q ucSdpVsHCToXZI+KJuOJThdVUHUp6r9RHCQ+gRgKr9Ums5t2gyK4PY1RPQHyJtuXPJKG 5h3YNjO9ery+MkYG5pgLPmBLCdkUIOPVCZrHL4+ukLvihygVa4t8a3+l97sbM2R/pOKO k3+g== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=fNDnTNtVyBUquzjfKi/Pb58KMF11fI059SIp2v1GLdk=; b=EH2DF4EocpNadkFateryui5ftHIwb7YDMXphXNb0h4R13UZ/P+j5eYKfPo2WYclRR0 xbAUpzT6YY4mqtw0t06gvv+JsByXMWEGZ7OLISVy6fHmEcs++sYEp5mDwp+stw0BbCW0 GiZRNwojLt0gitCnoay6WGiB39xxhb9OByg7U03S3bgyT9RgKiQd/OWiHvRG7Ysg+3FX RyuyiGbbp3Vweo4dvIRF8O4IIOIRKXHkDwlUXGjNs8aBPo0Ca7PBSdUz6IjvrwK0hro2 neuh5xji1jklQqYSGDd67cJHPloqrPPt3nDdjpCQyDWaDxrsFfEIu/Bk5DRHykMFGK0c aKUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=yvODgczZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b1si5634701ejb.600.2021.09.16.13.27.39; Thu, 16 Sep 2021 13:28:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=yvODgczZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242444AbhIPQ2Y (ORCPT + 99 others); Thu, 16 Sep 2021 12:28:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:59256 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241654AbhIPQT5 (ORCPT ); Thu, 16 Sep 2021 12:19:57 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1E3A96139F; Thu, 16 Sep 2021 16:13:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631808831; bh=S/mYC2aZPFp2a9cuahC+9ncNQUxRy7at7ImfNz5LxPU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yvODgczZxIG4KAWqsqW75GOoLcXBaGQE+WXP1x7ngOwADHsBSE2lJFC8/10u0uIFM g28YBYA7OEw48pf/2CX3ij4ezLiPyiUPP4dxexNVY2jBr9CX+cXBrHM2X1dJCkQ2YF Lsz0NgfsHU8G+dNw/imqS+PopEas+V8OKULM1WVs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kernel test robot , Ping-Ke Shih , Kalle Valo , Sasha Levin Subject: [PATCH 5.10 238/306] rtw88: wow: build wow function only if CONFIG_PM is on Date: Thu, 16 Sep 2021 17:59:43 +0200 Message-Id: <20210916155802.169834628@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155753.903069397@linuxfoundation.org> References: <20210916155753.903069397@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ping-Ke Shih [ Upstream commit 05e45887382c4c0f9522515759b34991aa17e69d ] The kernel test robot reports undefined reference after we report wakeup reason to mac80211. This is because CONFIG_PM is not defined in the testing configuration file. In fact, functions within wow.c are used if CONFIG_PM is defined, so use CONFIG_PM to decide whether we build this file or not. The reported messages are: hppa-linux-ld: drivers/net/wireless/realtek/rtw88/wow.o: in function `rtw_wow_show_wakeup_reason': >> (.text+0x6c4): undefined reference to `ieee80211_report_wowlan_wakeup' >> hppa-linux-ld: (.text+0x6e0): undefined reference to `ieee80211_report_wowlan_wakeup' Reported-by: kernel test robot Signed-off-by: Ping-Ke Shih Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/20210728014335.8785-4-pkshih@realtek.com Signed-off-by: Sasha Levin --- drivers/net/wireless/realtek/rtw88/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/realtek/rtw88/Makefile b/drivers/net/wireless/realtek/rtw88/Makefile index c0e4b111c8b4..73d6807a8cdf 100644 --- a/drivers/net/wireless/realtek/rtw88/Makefile +++ b/drivers/net/wireless/realtek/rtw88/Makefile @@ -15,9 +15,9 @@ rtw88_core-y += main.o \ ps.o \ sec.o \ bf.o \ - wow.o \ regd.o +rtw88_core-$(CONFIG_PM) += wow.o obj-$(CONFIG_RTW88_8822B) += rtw88_8822b.o rtw88_8822b-objs := rtw8822b.o rtw8822b_table.o -- 2.30.2