Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2652025rdb; Mon, 4 Dec 2023 04:00:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IHder1xvlVpT5ybQhb8HhoVzj7FLDdTyrp0hSMMT1O+JAorgMSgyP99mNPFbQTJQDx1eX0m X-Received: by 2002:a17:90a:ea14:b0:286:83af:f357 with SMTP id w20-20020a17090aea1400b0028683aff357mr1017558pjy.69.1701691205039; Mon, 04 Dec 2023 04:00:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701691205; cv=none; d=google.com; s=arc-20160816; b=nT0pCiXpKGGQlReQE9zuLZsGlMlAekbHRHX2QyfLuK0839YdAC5lQ4uYlMRCA/fofv pS2k9comst2HdGMVz/PkaokKA0qWAM07WiZWBUolntlPgDJ7CCaFli4XGRA+mHkbqUAR 7w610I84YpBgykdVHsabicl2OKCB8rCo7Jvw2b2yz/RgzfWP58Qa2uowCGSz9plaO/E8 +ly42rA4CX6i5R4LTZvqoZXik/fS3PN3VF67CpUKY8uZl6psKZbPKWM0+MxXwhu+VaIy ZQ50NecEIVI4T8XJc4yJrra1Pi1JFnRh+JeFzhT3RECrltkdSLg6NeXNQ8iUQZut4dRb 4d0w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=1aBnj3omoBbfDvJXGyccQvcG4f1IP9bksuFylPEmcBw=; fh=ZaUu8Qu87y0sWtsc/L1xWJKMgHMvIjP9DS2ujBqzc8w=; b=WHu2YIF6lWnoVWCSJkvgeVDbw3XBHW1AcCLmxepunzIKezRVvnZYOYZNT9pjyPhPaz jHIop6yA36DeCk+Pltfcw02nGWav8t7Efcd1D81t0Rn1TNiUeZenav+TnaY//k/p8HUX lNzs+/VArhsXfiwmXbJ/XUHjtD6itMUMhduxnPjD5BeGPnvZWAgypxAtSCPOiO144mb7 BhHhK3+diEzPHmArWI3YGp+iKeuzJpjOF63z9AU9MVuwgj97+X+OIB7DjntrzPPOsDR0 J2TOBLBiX+7vEg7KQ/JbJvfV6JqVDF5WZSS/XInjCKVde0PeISuTyekS0gsuToU/FpIT h9lQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kwK3J2ny; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id il6-20020a17090b164600b002747da1ef66si7927075pjb.53.2023.12.04.04.00.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 04:00:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kwK3J2ny; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 2ACF28094D72; Mon, 4 Dec 2023 04:00:00 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233165AbjLDL7d (ORCPT + 99 others); Mon, 4 Dec 2023 06:59:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235417AbjLDL6t (ORCPT ); Mon, 4 Dec 2023 06:58:49 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B9031FE0 for ; Mon, 4 Dec 2023 03:57:57 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 31B25C43397; Mon, 4 Dec 2023 11:57:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701691076; bh=2ybd8Cw7YtU9u9EHHq/wEoKMfFc0foeXptI4v618YLo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kwK3J2nyRuMO7cc5FBlkOyQQSG16HXJjEpaaGw+7p6jnWH8JfDJgQ3aRzupuj+HKJ I+Q8200Ouq+z26Ued3VzF7lulESo3RTxh/uBSoAXt01m8og1VH+yUqaXsK2186cN8P H4LJD0/LOAXq+HryzMRBKBn4i6B8pThCUKG31eo0TspSza2nH3GMr8zKzFUWe/B/dP D+pMcvarz9XNE5Eb2uDlXFlC+BV+C8HBlqr2gjbjKe06AcxFT/wqBX6UjZxsEzfEA4 1A1XeFtr+uHK8eNDjH6u4FmaZF/j66FI2sEgKFmXPZ5n93470IsO76PWFqSNOJEOak r1N4zlmIlKQSQ== From: Arnd Bergmann To: linux-mips@vger.kernel.org Cc: Arnd Bergmann , "Andrew Morton" , "Stephen Rothwell" , "Linux Kernel Mailing List" , "Thomas Bogendoerfer" Subject: [PATCH 19/20] mips: smp: fix setup_profiling_timer() prototype Date: Mon, 4 Dec 2023 12:57:09 +0100 Message-Id: <20231204115710.2247097-20-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231204115710.2247097-1-arnd@kernel.org> References: <20231204115710.2247097-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 04 Dec 2023 04:00:00 -0800 (PST) From: Arnd Bergmann The function is unconditionally defined in smp.c but is conditionally declared in a header that is not included here. arch/mips/kernel/smp.c:473:5: error: no previous prototype for 'setup_profiling_timer' [-Werror=missing-prototypes] Add the missing #include and #ifdef to match the declaration. Signed-off-by: Arnd Bergmann --- arch/mips/kernel/smp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/mips/kernel/smp.c b/arch/mips/kernel/smp.c index 8fbef537fb88..774e4dcd86d2 100644 --- a/arch/mips/kernel/smp.c +++ b/arch/mips/kernel/smp.c @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include @@ -468,11 +469,13 @@ int __cpu_up(unsigned int cpu, struct task_struct *tidle) return 0; } +#ifdef CONFIG_PROFILING /* Not really SMP stuff ... */ int setup_profiling_timer(unsigned int multiplier) { return 0; } +#endif static void flush_tlb_all_ipi(void *info) { -- 2.39.2