Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3549587pxb; Mon, 24 Jan 2022 12:00:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJwXcER9D0pHfsStFI8Fmp4uMTKFUFY2hB6+H72u2Sprnz3+HPZXK/HZyjMdJWnZKGqoyEK5 X-Received: by 2002:a63:b147:: with SMTP id g7mr12929499pgp.4.1643054432607; Mon, 24 Jan 2022 12:00:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643054432; cv=none; d=google.com; s=arc-20160816; b=YmfBGynqc3u0rHDwvWgDoC6rQaAONC9QXmL6ASLGiWIHiTOPv/fS+fANdi9NXw//qR btTN/gF8RO0qWjaH/KvRtZS5AXCWU9iXdkOe+8DAXJdqUBGFwmDXXYHOkEo40OVUX421 TE0hhxfGrnm/wj1LLZ/PXtrBsX8V9LtyhZLPV3XHDtYelJ2p4Yc5CAWGWdiAVyttq8o0 m58cH4QtJ5ta/o+wBA3Q0UgUDEX/qH2+l3XpZ731pZPCRuz3+9I8x/pjvwUWW6DQaJpR 4D4czY5Dy0J6BQZPaJfIMox7tDUrmxBkHisxM9o4hWruJI0ihqlZEkjJYjXUQBrc569C Hkuw== 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=siSYFW7+/m+u04fuim0yHtRvuEH67jOChPPRafgMsC0=; b=O1xNlR2HzsQTQAdfi/eFcw71JIo0LZlDfewm2Ijd3CxFEBcl07IZWtF+8HLksPYv/K b352i5cqlqBbDENVc3Du7suMylRGAwzIX0zM572RNoVXotHNfey5EszZ5Lfq95bcLmvU EQqx1yRsNYRcqsWbWpjwEoTfc2nLkGX2d5FjYttxe4roTXrtplgb/hzyWMBkV6BbIvhe 08Utg78G3oKfH1k9ZC4/1jgxDROA/K0hBhV3CDeYsyZmt/E0Lpmy4fdghSxGnrfZdrwI z17Juam0BtIZ6KO7zrSKlrP7Qg908ViRM5PizGJgps5B4N8HcnBDhIkiRhQ5oMqtP/WW qB4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ExvwCPWN; 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 21si14460384pgo.26.2022.01.24.12.00.19; Mon, 24 Jan 2022 12:00:32 -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=ExvwCPWN; 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 S1343893AbiAXS6P (ORCPT + 99 others); Mon, 24 Jan 2022 13:58:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344147AbiAXS4B (ORCPT ); Mon, 24 Jan 2022 13:56:01 -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 0200AC0617A9; Mon, 24 Jan 2022 10:54:00 -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 BDC5BB8119D; Mon, 24 Jan 2022 18:53:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E4579C36AE9; Mon, 24 Jan 2022 18:53:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643050437; bh=4Dw/6zFwUu1pvPlMw2/pQ1gJ+iowxFDpDx957UrzjiM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ExvwCPWNcDnTl20lwT6qXgSr5gtjJCmPy2iYaLf5xyFxzg1GLEeZMCdCqsRttQ3Ae juz1hAG4azMW4ipmNcU3v5rUuUPCI9rfIiyBBHHq5OYkMx0Ajrm+SeWGOza9tKkVb9 Tqs1Di3gcXE07CAQitX/FNSOHoRwBqiVWn5pFio0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Michael Ellerman , Sasha Levin Subject: [PATCH 4.4 089/114] powerpc/smp: Move setup_profiling_timer() under CONFIG_PROFILING Date: Mon, 24 Jan 2022 19:43:04 +0100 Message-Id: <20220124183929.862014993@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183927.095545464@linuxfoundation.org> References: <20220124183927.095545464@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: Michael Ellerman [ Upstream commit a4ac0d249a5db80e79d573db9e4ad29354b643a8 ] setup_profiling_timer() is only needed when CONFIG_PROFILING is enabled. Fixes the following W=1 warning when CONFIG_PROFILING=n: linux/arch/powerpc/kernel/smp.c:1638:5: error: no previous prototype for ‘setup_profiling_timer’ Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/20211124093254.1054750-5-mpe@ellerman.id.au Signed-off-by: Sasha Levin --- arch/powerpc/kernel/smp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/kernel/smp.c b/arch/powerpc/kernel/smp.c index ec9ec2058d2d3..19ba60ab18073 100644 --- a/arch/powerpc/kernel/smp.c +++ b/arch/powerpc/kernel/smp.c @@ -732,10 +732,12 @@ void start_secondary(void *unused) BUG(); } +#ifdef CONFIG_PROFILING int setup_profiling_timer(unsigned int multiplier) { return 0; } +#endif #ifdef CONFIG_SCHED_SMT /* cpumask of CPUs with asymetric SMT dependancy */ -- 2.34.1