Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3583842pxb; Mon, 24 Jan 2022 12:49:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJxr4nd1uwtWz61mnslaLLoPAmuNLRVDFgaiyr+pnqavV9NupF/XGqfZqu8q6puHwkkCWuYO X-Received: by 2002:aa7:888e:0:b0:4c4:3ad:9eee with SMTP id z14-20020aa7888e000000b004c403ad9eeemr15311379pfe.13.1643057361371; Mon, 24 Jan 2022 12:49:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643057361; cv=none; d=google.com; s=arc-20160816; b=c7z+LKHo36j6FcGm3AMJM9O7IZBows/UWwCGgzmUwdDtMXG4sfXl5Q4ugFWLEhGd17 9a/V7w0CUfadVUCo+zIiy7gl5QYsvFnKbgX9WgRZDqATCDbo9g8RhPnxLKhitmYpMCKd qjBqdMeNBMWMOj0Z//bS5+fnWntEtAuE4FxoJWp4O9ydm9aoLMZ4jSaemO1/rQUjV92d nvsrg3Kn1yxXdrIDMQajUaj2G4feXc1zOkCF3JfSIr1jcWRvIpIUR7hjxSAQS5WbItqw 6SE6BSBEDdxdNkL8Zd5J1ELz1jZDgSHOAz7M47eYns9td5/UWIe1g3O6xEG7NHax40sE AiPQ== 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=quu4Gcm1Gr1oG3MpnHGmnNEzB6D5MQ++iTtwSViV7yI=; b=HyAUXC4gdhFGU5GoBdL44W0VVKjg4oK+uO8JBKxrq5ajvk5El+e2gtGwjzURHN/n2T xHe6Si98tGF7tLopFmON8WqQjbtGSYPKA5E2uwwdxaq55rgYRvTv3HPoQw3ZEIYdm5dh l4U5NBEJmEeRKspbbCIGdFoxpWj6iyWWhmuUFe16azuRJOL2nVP6cwazSpPprtsq3hhx b27yMoC2039gmEaSWHrH+g3ESm0uvSoQU5am+H8+5BGPMNK/i7VQZ4rYQlt8n70dKve8 fs18BxRoQW/WdJvxDMaC8/stDlVS91WkWfjdTmqcCipZsERND9mS77I535ort+ZZ8y+n 0Kuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=D6g8byy3; 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 s14si15342130plg.205.2022.01.24.12.49.09; Mon, 24 Jan 2022 12:49:21 -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=D6g8byy3; 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 S1377203AbiAXUFI (ORCPT + 99 others); Mon, 24 Jan 2022 15:05:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356810AbiAXTrX (ORCPT ); Mon, 24 Jan 2022 14:47:23 -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 9B93CC06178C; Mon, 24 Jan 2022 11:23:11 -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 E2B5D612A5; Mon, 24 Jan 2022 19:23:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BEDC5C340EA; Mon, 24 Jan 2022 19:23:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643052188; bh=cfgNBCaLfspusGGx3TWNkR2/M1NK5ZI0i2GmyN/yYHA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=D6g8byy3fJ+10Jn9OMo4BJfvScf5SkMjASYouGrXCSvd349vXczIvfOL+i2YO5X/o dxhHw3S8hnwJtOsxTy6YPmACVrduqXfBEOq3FGxdSlWoaresbqJA8yLIZSX1WPkmLw s1eySWn3GWugr5+RL+6DpluzZ15YrgdaOSDqnjFA= 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.19 184/239] powerpc/smp: Move setup_profiling_timer() under CONFIG_PROFILING Date: Mon, 24 Jan 2022 19:43:42 +0100 Message-Id: <20220124183948.947195852@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183943.102762895@linuxfoundation.org> References: <20220124183943.102762895@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 14adfeacfa46e..4853ac67cf21f 100644 --- a/arch/powerpc/kernel/smp.c +++ b/arch/powerpc/kernel/smp.c @@ -1070,10 +1070,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