Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3645579pxb; Mon, 24 Jan 2022 14:18:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJyVFSAL2F9f5i9WvcXd6OmCUFKr8f88t6na4R4/v90FkEexmRSvO63T9QV136cTBeC16t07 X-Received: by 2002:a63:216:: with SMTP id 22mr4546710pgc.7.1643062695209; Mon, 24 Jan 2022 14:18:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643062695; cv=none; d=google.com; s=arc-20160816; b=OOCTjGJRjPJJjNjUQk4ykDwecz9mJ7LIwjOsAXr+xUiswhqLDW8VE5OiWWLTd7yK6Q Xb1AexiIqnas6wlHaEfcb6qVvCO0Y0dLW7W4KeryG6R8jHnhgg+9tcJv7u4iqIM3CZQ4 xw5cL825Hnlc/pwy3s3s3SGWz/1LiAiBeOLkVzSVOlsvL/xarza4cO3y+EC6Kn9fXCtJ vKJlIQsOdgFpAwPq72KPPZkz95IIcWewvXtwLyDqS+E3h2PvHYPC3UAK8RR9xTWQYBwK 2mUJHPJr6hdUICP6lBSN5pndsIH5IGT8DwkXyciY8YnwfAz+2OYFj/zN2wGiECrppTvG bFZA== 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=lUlPnkO6wKd3/fhrQwW51zJqu2GkZxbrQyCmF1y8mT4=; b=rNaFFyubhtPBKFEptmirkkWdX7G8aosSYn8NZlZpUI3n/s6CDz/Z1BreQBdLkg20pv W0MLMMDrrnzJle7KKC4XPczUt7USUkMl2hH4hfFMZg+VPfoWbP8vUMPOGTKLGp8Ni8Z2 SqgOHGbmWQ+WneL7Dw2Pa1H9WibrcfMQtl97sfMmYK9i0ltfaSKGbCjbiqWsPZfEcm+o 98RhUZbk19/zku9aQabQX4Y+bDaRuKnWhW3uRtJNWCySGIWpDXQalmVhDtjQiGjNXhKF UeAIR+VMgpudKHcDM7tmyh7lM6KbYVw6vu9u9HFYDxDCCIrqx8D9XxmbSpQjTj3wsH0P 3j5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=PtP9TKms; 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 w2si14097694plz.170.2022.01.24.14.17.55; Mon, 24 Jan 2022 14:18:15 -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=PtP9TKms; 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 S1380388AbiAXWNF (ORCPT + 99 others); Mon, 24 Jan 2022 17:13:05 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:45014 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1453432AbiAXVaJ (ORCPT ); Mon, 24 Jan 2022 16:30:09 -0500 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 4BB83B81057; Mon, 24 Jan 2022 21:30:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 780C6C340E4; Mon, 24 Jan 2022 21:30:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643059807; bh=KWoGejEVrZUfkV1DJjO87i+BhLl7v3X3Zk9ndV6PkeM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PtP9TKmsI7oRGIQ1JXQgkaaq3Ta/Z+DYhqtH7OSdeIxpe9r/GcMwQgARM5/vptU4o SnnmZr7lXTlSgjuCOsh/IHt0x3Tsspsx9z6KDzwztnmORy7i2x30yVCtMAv91kLyWO 2gPOGbIZ0JRbs4x2Rw5VBa+bI0cPgZgTN4LZ1SLc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Michael Ellerman , Sasha Levin Subject: [PATCH 5.16 0741/1039] powerpc/smp: Move setup_profiling_timer() under CONFIG_PROFILING Date: Mon, 24 Jan 2022 19:42:10 +0100 Message-Id: <20220124184150.241591333@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: 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 c23ee842c4c33..aee3a7119f977 100644 --- a/arch/powerpc/kernel/smp.c +++ b/arch/powerpc/kernel/smp.c @@ -1635,10 +1635,12 @@ void start_secondary(void *unused) BUG(); } +#ifdef CONFIG_PROFILING int setup_profiling_timer(unsigned int multiplier) { return 0; } +#endif static void fixup_topology(void) { -- 2.34.1