Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3707308pxb; Mon, 24 Jan 2022 15:57:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJzB75dKNXzPIQgKqg2NJE7tMvVo5ZBbHRKFVDpUmqXd7KQUNn6EjssfEmcJysbMSmOdeopf X-Received: by 2002:a17:902:8604:b0:149:1a90:db8c with SMTP id f4-20020a170902860400b001491a90db8cmr16823675plo.62.1643068661335; Mon, 24 Jan 2022 15:57:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643068661; cv=none; d=google.com; s=arc-20160816; b=YrSONWjSsbqGU/hm5e/10xNO7OK23D4KegjG/daXRuTzKqBV1YGMeFewUe9MmrL0P8 XxweYEff9MRHD5Ao82OU7/sw5KiM4tmVS3dRVnX//yCNrA5pI+yd/fN7Ol3Q/rLF6o4L BJnAwxYBvyXYZMAFyj2+7N4Nor2tMVAFMDOphjsSECQHC1D6cI4gPn1q14cFPzES7pT9 /xxcQC3xUQy1naZYVLV6gMb36obC7z7Niep7uIlpBoxQ+P4hQgb2AVeijSnN0qHCMUND yw7HMaiJaOWYrUuvA3J6eLhVHOEUcriQjwDzUNGjESGtPbCSZpvA2r3mXywQG2zFOq+O /kqA== 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=WMbnhu3lpccrcQTyEsCH+FwskTiD1y6of2D4qCM8e8g=; b=PqNESh3CBeRq7uzP2CaNeij/W56yg7Qh/R0rxQB3YplF7h3igHJ8rINuIvj72rUgDG St92UYTEUTS4dOU8AZsom/x+pmTTMdJ5ur70G0KE7jDAyUawI3TunaJkbPnrxcziddnE C/EEqGcYwUS3rL7RJpmMb6mhKy09pTUZf56p86k0Sx6AgjIT3VMmdjXB/sz0FO000COy faxqYnnx9kk8fbMm/1gTjMhAV7nHfg3flU3OovcsMBDgd2ykNOLFkl/xYBqpfRTml/oz GqJ3BYpktn5+F9yflAemm2bqDOZFuFb/y2ksc9eoEs7lHu58Gkb4AfnW+gftworEOCTG 35Nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1FKCDMZe; 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 q4si16701591pgj.233.2022.01.24.15.57.29; Mon, 24 Jan 2022 15:57:41 -0800 (PST) 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=1FKCDMZe; 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 S2363061AbiAXXnb (ORCPT + 99 others); Mon, 24 Jan 2022 18:43:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1843477AbiAXXED (ORCPT ); Mon, 24 Jan 2022 18:04:03 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D168C06C5AF; Mon, 24 Jan 2022 13:15:26 -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 ams.source.kernel.org (Postfix) with ESMTPS id 0738FB811FB; Mon, 24 Jan 2022 21:15:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2D194C340E5; Mon, 24 Jan 2022 21:15:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643058923; bh=/EESlIcy4u19W/9Xq1u2Tkvy0QQYoel1/VtuLRwMchQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1FKCDMZe0MSK4bRfM3CWQMihOcsUwahnydDrxAPqyGmG+tEgVdcpafip4SNtTfprf d5iFf0W5gahP1d9g2GNAHEz79befP4IbAmQb03LfVjIUhjwqWIjc74Xe3rUqhhzqTq oLmULhXZ8FiQpF3TcUPKogI0jujgChpkhssxWDe8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kernel test robot , Randy Dunlap , Stephen Rothwell , Huang Rui , "Rafael J. Wysocki" , Sasha Levin Subject: [PATCH 5.16 0404/1039] x86, sched: Fix undefined reference to init_freq_invariance_cppc() build error Date: Mon, 24 Jan 2022 19:36:33 +0100 Message-Id: <20220124184138.888274826@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@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: Huang Rui [ Upstream commit 6c4ab1b86dac3954d15c00c1a6396d60a1023fab ] The init_freq_invariance_cppc function is implemented in smpboot and depends on CONFIG_SMP. MODPOST vmlinux.symvers MODINFO modules.builtin.modinfo GEN modules.builtin LD .tmp_vmlinux.kallsyms1 ld: drivers/acpi/cppc_acpi.o: in function `acpi_cppc_processor_probe': /home/ray/brahma3/linux/drivers/acpi/cppc_acpi.c:819: undefined reference to `init_freq_invariance_cppc' make: *** [Makefile:1161: vmlinux] Error 1 See https://lore.kernel.org/lkml/484af487-7511-647e-5c5b-33d4429acdec@infradead.org/. Fixes: 41ea667227ba ("x86, sched: Calculate frequency invariance for AMD systems") Reported-by: kernel test robot Reported-by: Randy Dunlap Reported-by: Stephen Rothwell Signed-off-by: Huang Rui [ rjw: Subject edits ] Signed-off-by: Rafael J. Wysocki Signed-off-by: Sasha Levin --- arch/x86/include/asm/topology.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/include/asm/topology.h b/arch/x86/include/asm/topology.h index cc164777e6619..2f0b6be8eaabc 100644 --- a/arch/x86/include/asm/topology.h +++ b/arch/x86/include/asm/topology.h @@ -221,7 +221,7 @@ static inline void arch_set_max_freq_ratio(bool turbo_disabled) } #endif -#ifdef CONFIG_ACPI_CPPC_LIB +#if defined(CONFIG_ACPI_CPPC_LIB) && defined(CONFIG_SMP) void init_freq_invariance_cppc(void); #define init_freq_invariance_cppc init_freq_invariance_cppc #endif -- 2.34.1