Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3576630pxb; Mon, 24 Jan 2022 12:37:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJxQ6yDl5AelIsved1bazEkq1r+hzmi7F5XJdyAKFiHW8u3FNiXqP7XhBsIxo8YS4we6/S+f X-Received: by 2002:a62:3804:0:b0:4c7:373b:cb2 with SMTP id f4-20020a623804000000b004c7373b0cb2mr15382800pfa.50.1643056675665; Mon, 24 Jan 2022 12:37:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643056675; cv=none; d=google.com; s=arc-20160816; b=OENAY58jPjJGd7UPHuopxQannOcUr2zmFp8eATq5o4jW+ov6+ZDH0ev3wTLht6NScp iBgm4uj20jwkJDuMGhhKzyUJI7V2MTWoDMPAbC0URgaPmJ0e4jxTR9Y9yT1Wfbjf09MQ EhVBEEJOBmG+VYJ5VGenBMIhB1hpCGFzL6Frbyn/p+eYt2Rzdn2vs5rL5cjWoXxRyFPV 48k86CtLdkWAk3lQXxmtUg1HOAUZt3KSgLjC0maxLGCJRQA5tf90G49lq8Svya5Uw2qq 5O9tvx7IBbR8wYy0H+6CC/jpjvrORt7FoqGM74D9HemPKEi34URr9HWAeRtBfbAFyO13 /7DA== 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=bZ//OAhR0MyQfnK17CrHNMuS03c7a7AKaKDzxYUtGMM=; b=tN2A2ph9cog7kE7588Ptbg14nvFB5bEL7ID5/lQQMq4FpQx8zx8xzp9nfOizFEVKqm easW+43MZ64W+BsVsB2ea3kk+Rd7TTk8a9AHnzfeBxvb4CaNg8uEEJg6nLP3CKkZ2czj smiGH91C3aMcaxoFA4l4cbj0azYHilZvdmg9fl5Ab8miIK8zNjDRjOutdAy/y52uKYqu WYgoXorB1Xw35QpFfFSddvQIUoctetq4C6opMvSKNpJHQmqDMxUrSe2h+daPwhNgc0In lCYm5SpMJSTtR/5qUZmFtj7VpkLSjXCt3u3RSthwxXb8+pkIrnggaO4yfy2zT/YjZswS PNfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=YHFeCgFV; 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 g7si3728590pfr.106.2022.01.24.12.37.43; Mon, 24 Jan 2022 12:37:55 -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=YHFeCgFV; 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 S1355945AbiAXTo6 (ORCPT + 99 others); Mon, 24 Jan 2022 14:44:58 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:58044 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354135AbiAXTgF (ORCPT ); Mon, 24 Jan 2022 14:36:05 -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 DE1D7B8122C; Mon, 24 Jan 2022 19:36:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 19EAEC340E5; Mon, 24 Jan 2022 19:36:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643052962; bh=xX+HrHhYId0Tfufo3/43Ld1U2JB46Xat28lK7sWeS/0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YHFeCgFVzqRrNp0Z890erP8tkknqpzg5PLZ6aogOTdf/VgcxznKe+YHTl1mB5Ieu6 RyQSmeDK1M3s1EEzKDqzn5YR8r/HCy2alg/w3EJWNbW+bnBrByPLHvPlz91oTRa+OE 99PiluY44XVE+PvCZjf2Def+I9PlbNDZ+Ilf34+4= 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.4 230/320] powerpc/smp: Move setup_profiling_timer() under CONFIG_PROFILING Date: Mon, 24 Jan 2022 19:43:34 +0100 Message-Id: <20220124184001.805656409@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183953.750177707@linuxfoundation.org> References: <20220124183953.750177707@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 c06cac543f188..82dff003a7fd6 100644 --- a/arch/powerpc/kernel/smp.c +++ b/arch/powerpc/kernel/smp.c @@ -1296,10 +1296,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