Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3552687pxb; Mon, 24 Jan 2022 12:04:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJw1av2iVyIHGWxQ1obeknzMgCjgmpRyMmpS4YUQlt5ilK2PTX1Um9y1RNSJIFqGLi/Vbxzi X-Received: by 2002:a17:902:ec8d:b0:14b:12aa:dc6b with SMTP id x13-20020a170902ec8d00b0014b12aadc6bmr15812147plg.110.1643054642641; Mon, 24 Jan 2022 12:04:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643054642; cv=none; d=google.com; s=arc-20160816; b=qUgVVNNVAundID0e7e84zFuJaC6tEctn98XIeUTSVM+LhIlWA1a5b2Z8XFwTu03NOD x19uq5OjWIGwr2IR/7yPVAcEoNqksHw4h5nrV5WqdcEJV/UlgnCutSnFvVF3ZY0voPSr YAEuYjqZEU03Ll9PzD7JTGghup878q4GycfyIbG1yZk0/ly6oxYFS7WNL/FFgWOnUIP1 cNIm1nCyh4QnbcIR7EqwQkvZJb0GImF2BRZUbT37LgekwHUHmh/uqnfb6Qd/l1lA8oxv rMcgaQbFCLvJPjUbda5OsoIpMBuUUlOUpYTuZLxK+4bqSyMMW3AnANZViExmaRNWfAVv PlVw== 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=XVmV0WtPl0wHsHa5T+qRfKWHgP/p5xXrFJLOHer3irc=; b=I7QRUgJKGsLTYbXl3leqbov4DKpNF2oVh5uavwc6VuiHoFopzu42TerVyOIxgaA/Vg W3rnxCqaqlfRhDJ9RkSGbs8CeX2vYsHw6t0+rJVemREvaFRQ1ww7A6TiM5+hJgPYh4AX xyZJDSLkVqJ1oX3JDYmq2LYTMIndHF1GNImoE+dQtsvX+sDpqs9ujTxYdnqsguEhm3D9 OZKGVTzdFbjS3wHVnYN+i72jCpdPkmgjoxG9ePMbKYmbS+SL/UuQ+6oMan8YNz/5rq6G TcIbL5u0DwJvnYePSAYTL4yjl01hk1/XOw3K63fsdiBfnOqRma+26BdLeoeAEJFIf/0c Dc8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=F4SUYd3t; 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 r12si13640211pgj.462.2022.01.24.12.03.48; Mon, 24 Jan 2022 12:04:02 -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=F4SUYd3t; 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 S235338AbiAXTDx (ORCPT + 99 others); Mon, 24 Jan 2022 14:03:53 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:56912 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345041AbiAXS7p (ORCPT ); Mon, 24 Jan 2022 13:59:45 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 613446090C; Mon, 24 Jan 2022 18:59:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 416C7C340E5; Mon, 24 Jan 2022 18:59:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643050784; bh=FWikH7Ue5U2AmBBJHD/wrnCX9gAjKiiBLs4NTXotUXo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=F4SUYd3tk2gm18YsfArtjvGmziHfYoAlxRvuCXbMISlG0KrgoOQZZTcpQg5+GNPPW 4jAGzR6BADGldEyM6nTDR3eUOdv1zSdZXwi6H2n06D354f3VuiZ3O79L35N7q/mlW5 E8N16RujXBWAusvZYPvEuVshDFPQehBVGsg7tTKY= 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.9 110/157] powerpc/smp: Move setup_profiling_timer() under CONFIG_PROFILING Date: Mon, 24 Jan 2022 19:43:20 +0100 Message-Id: <20220124183936.264195605@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183932.787526760@linuxfoundation.org> References: <20220124183932.787526760@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 9c6f3fd580597..31675c1d678b6 100644 --- a/arch/powerpc/kernel/smp.c +++ b/arch/powerpc/kernel/smp.c @@ -759,10 +759,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