Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3728948pxb; Mon, 24 Jan 2022 16:31:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJyqMWGZXYNB8/xPIPE3eCkTUm+65aTtuB//MUxvMzft+3vAaEVffdAX+4jXoeKABNLGzJVZ X-Received: by 2002:a17:902:8d83:b0:14b:4063:dbcd with SMTP id v3-20020a1709028d8300b0014b4063dbcdmr9441110plo.72.1643070691332; Mon, 24 Jan 2022 16:31:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643070691; cv=none; d=google.com; s=arc-20160816; b=smKGDG97kZLribAvcPLzILEKjS7g9geCouJ/i7PiZh3iXJQ62ZW/jxQ7vBLFjgT5ig OoZ+nsvGisjVoGou/3EWe8MCQ8WnNFBuW+S+6FiGrzbzlLLcyZcQIp63p9hdmIFdGkWn kMS9Oqm8K0pkE7illaqYKpJys4EDcZ9uZxHbqFIrOPjA02KYBlUpmRAeXl0Hl5DbUFeH +TDA09GY0rSUKGkk48Vu4fPbTl1HfKyLECXscsdngSSrY2nBWblPEd8Pm91N+qgwQ8qv G+PJdsZBIHETxCnpbY/fRVj6fL3snMLjQCug07b7zPEi2QjNvo4/f08BwOXVPaOvkZe8 DVAA== 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=AVXB2yhVZZ7JP5GRjwlof6FjbGd94WoATYKwFq/9IzM=; b=aJe8oyxW9IgnFZ1UErU74ywsrxF/hAsDBX131fscqPfLbLquHlzDVr2C2Xu9V5eIKh 9OFRbqYpMFt+xuOhAtwQb0JztXpoHssZj7Zu/SO3fCapBRT3OvYCEqxoDlx2uz7xvABl t1Y/NSBavP3gozWXSmBYS80gC9REZAqG6j5xK5adx3GnhpkdMdopygYsP0+Tmv9VsqXu 0daMfg9d1xkpurErXTOs5DQfYRCYc4f5jkf5/CjlksAeaOP4jxB7Le6v/vdtQFak0g0w YqLONqQ8J5qMKRR8sAaEgBEewj49/hwTRdzdvp5Gs/9v3pQKzj5141Gb6ElRAnQOWfNA 41Cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=YWhNTvrN; 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 k25si14349088pgl.206.2022.01.24.16.31.18; Mon, 24 Jan 2022 16:31:31 -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=YWhNTvrN; 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 S3408869AbiAYAYR (ORCPT + 99 others); Mon, 24 Jan 2022 19:24:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1578529AbiAXWDE (ORCPT ); Mon, 24 Jan 2022 17:03:04 -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 04D44C036BC7; Mon, 24 Jan 2022 12:41:22 -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 853EE6153D; Mon, 24 Jan 2022 20:41:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6FA09C340E5; Mon, 24 Jan 2022 20:41:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643056881; bh=ZKIO0EI8etdhFdJgw05cNmBcT16ZGNTA2eUjGktLPHw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YWhNTvrNxpA40XdlnOBHDywNQ9gP02dOXgGMeSmwfU4W8L5Y3kNzX4ADz52/gryBd +yjGtzYrjXl4N0mgZ3KuT7FEeyM/tdmoQL5gMGYtYxswVndFIP05DMGc7HApBljrnz VgBEpqsczJyIYpDe/hI0w7m0Jk1W5KGGFn29dSdE= 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.15 630/846] powerpc/smp: Move setup_profiling_timer() under CONFIG_PROFILING Date: Mon, 24 Jan 2022 19:42:27 +0100 Message-Id: <20220124184122.766073833@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184100.867127425@linuxfoundation.org> References: <20220124184100.867127425@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 605bab448f847..c7ef0739c8640 100644 --- a/arch/powerpc/kernel/smp.c +++ b/arch/powerpc/kernel/smp.c @@ -1640,10 +1640,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