Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3602416pxb; Mon, 24 Jan 2022 13:16:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJwEAFRMyK73SMBEfUbqad4kudhMbdPodNxhsKckEFUgdQb3k8Iqulm0w5D+c5O3sB9RZyS2 X-Received: by 2002:a05:6a00:18aa:b0:4c9:7d4d:1a75 with SMTP id x42-20020a056a0018aa00b004c97d4d1a75mr5485804pfh.75.1643058976718; Mon, 24 Jan 2022 13:16:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643058976; cv=none; d=google.com; s=arc-20160816; b=ZfUa6oWLobju5JEUsCg/MXU6TKEcQdcmloKYUruUzPhgiBIp15B4KY/vuayBQ6hM6f jScp8/SZ6p3XKM1ILNM9nMke+1i9P2ScV/I2RO1WMPE3DP3yRxqECDtHVx65WT8/iDGf jeMZt9hMf1XEJIYqwGBHLatAhrVl9py8L/qE2TLabKOODNexbJ+GkWkmtoLq2blFbQoz OAhUhkNUtTEUbhVxc0k8rVInskpVaayFNQ9ZicpxDMYtc+7ml/lVKewBG8uRjrQZfZ/Z aCQyvQQ2zu35o7pGhklXTVJCs9P6HGr6It1qaXVI2gc9S2vCXsukXDkDo/n+2XMKbOY5 o6Wg== 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=+sz3G8daDFFUTfis+OEPvDIw5m8VPFoFa+GQF0JjN5c=; b=UEZ/uDbkWQ4hIsw64EY++75EvtyX+iqIiy6S7dXSFJODMuhiZfgzY7RnqEb9vL6Zv+ uU0SudGhI3USvK8uA6yIqoYyp+ZImgdT0OrUbKincC81hPUnAUtS2eScPNx91IncUbcQ w7rLJAAtFo2uWBC/nh7siYVLZCK6dV9OW6kSmyUo1hWnlQNHyvZM/RsoWinL1fVW5Fkq 0g2fNUJJpHQUbmV7qkyexZb8jvaSDPNInV/wCxGsN67TofigclArqL5K7+0kHrcKY0RS ZQnwcMmcO9w/kOAC1CVa7GzODhJ1mCpY+zvHyt+WPhZ7mLJFF/1uv9SWLZxidkuBQtUS gABA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="VPVoB/Ie"; 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 f10si16664450pfj.14.2022.01.24.13.16.05; Mon, 24 Jan 2022 13:16:16 -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="VPVoB/Ie"; 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 S1390711AbiAXUqF (ORCPT + 99 others); Mon, 24 Jan 2022 15:46:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356322AbiAXUXP (ORCPT ); Mon, 24 Jan 2022 15:23:15 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18AD4C0613A8; Mon, 24 Jan 2022 11:09:30 -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 dfw.source.kernel.org (Postfix) with ESMTPS id AC3FD611DA; Mon, 24 Jan 2022 19:09:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 74054C340E5; Mon, 24 Jan 2022 19:09:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643051369; bh=FRms4rYVIvN6iZnmgg6BThnJYfNtMZYW0Z7PMF+z5K0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VPVoB/IeynImdHTUpI4EbSJJEX82J7rmM5k2yKFhqjwpWFCXDdvHVGhsq7apvqYGc 5c+aAscwGqsItMDXVY8ykIuf26bPhfQ3U9tHkO9e5bpIcw2jYBXb+ECW8zHENrqKIL NCVCOyEBDlD5rYjaW8oVYopuUNZeifAQ8NEeQDh0= 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.14 138/186] powerpc/smp: Move setup_profiling_timer() under CONFIG_PROFILING Date: Mon, 24 Jan 2022 19:43:33 +0100 Message-Id: <20220124183941.542652031@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183937.101330125@linuxfoundation.org> References: <20220124183937.101330125@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 7c7aa7c98ba31..cf25b95ceee13 100644 --- a/arch/powerpc/kernel/smp.c +++ b/arch/powerpc/kernel/smp.c @@ -1009,10 +1009,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