Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2542455lqp; Mon, 25 Mar 2024 01:53:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW9MDOPbscBNxuk40Cspm7mhCkjqMfNbF4d6ew51rVNzdbl3QqRLH+gEueutLw4J02OK9CHtNWy/OdNPCrDCHYAZJDr7ZloWUUCIHJ8eg== X-Google-Smtp-Source: AGHT+IG8+HvhwE9TGBmYqtkPd4PHtEfsHOOqL+Vr7Xc0n7Ga10eTUIc2s8OoXeIn64gTKbAHphmJ X-Received: by 2002:a50:ab5d:0:b0:56b:deff:4402 with SMTP id t29-20020a50ab5d000000b0056bdeff4402mr3559834edc.42.1711356790581; Mon, 25 Mar 2024 01:53:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711356790; cv=pass; d=google.com; s=arc-20160816; b=WcqKBIJCwfhgX7vqg2H2pnbiSEQMnAaPUDra0Khi5knGXtlHwvWp6S/kxAsokEHA8Z 0wRg0H1nz+TNUmQLJYHXAegrvKoV/u0WMQDrW9fGPTzu+4NpYmgGnTQ6RXqXP6GKtMnD CO5ll5agPvTOZ751Bbb0SbsvgWMyj9JPXT5dNEilNDfKo5gWQvxP8XhDH/Qs9eaEf/4a uo7crg14Qb3Ve8CFJ/IuTRuSznNNrbRv18ZUEGINXiQ6Sfp8Zcqmpi0iHYiZc9o0kZTI yXTQ2Mmp40weRCDkUoMs//lAq2s5KnP4JQ5Fgou/1j4OpSmnsF8pHmU6GGSD6rlVgq3Z hl8Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=rnIJhoL/63W8Cugcl2SMUwts3GCQTEKzSkA3i762FqA=; fh=fqbrJ6k9ZMDw3/hBnojHDMiZbhxiNWlKRyg2aT5L90k=; b=uALl/ZXuM5JiO76PVthFKoSt+xVDrt7DEzqVHBIKC9fE7UEA4YGWp8RymqR923Tt7V cDzkLdg2ayoY9MBccR9+mPdYhtPj9CzoyRCEhnzRoeFQ2vCVpe3d++1j35Se2Zrkr5MU viPZGNLxju8TYNDcfSq+qWS8J9kKW1pBqpow4v1p9rT2eS9Y813FN33NONtkP1i1lOZH /rNPcjTGPOPzOZ7rfktcVFSpX6sJxBcMQiT308vfkvM1HmpDIPZ8Hv3BjY3kPLE0O5Kh id7XRP5XPEfMR6IFphuNrHGev9q+4EXChN7Rv1nXH+rXJ/LGcsyJ/SFdTuiPUmlPgplM YZAQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="nMu/h/Wo"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-115770-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-115770-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id x1-20020a05640226c100b0056bfb84be4bsi1906732edd.369.2024.03.25.01.53.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 01:53:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-115770-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="nMu/h/Wo"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-115770-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-115770-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 506C61F31E22 for ; Mon, 25 Mar 2024 08:53:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 58D7136B9D2; Mon, 25 Mar 2024 03:00:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="nMu/h/Wo" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6E1991448FA; Sun, 24 Mar 2024 23:12:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711321964; cv=none; b=BBYWt+a6blGqBal7fko0iRoJfXFRO91idw5WiUuKxWEPwCC2VKuC52JY7B0dKct6x3C40+g9LIabI9dtKZrRuziZ6ZxUH+OsuBPNV1d+0TRJNSPZjvrRsrw3nXssEP7LoxpHxe/hTuuDYyvkt4i9YCWPq6vVEZ3sOFEM+XfHXg8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711321964; c=relaxed/simple; bh=PbeCPPqUTj8zu2JIOMJODjSU9380VXX4VQ800iYqnmI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=kNq1U3WmKRtK+fpZbsURKV9tf66xr1maAk1kIyAvofkBC4JcLoHx1q/DdvoUMa77Vqrmyy3XU1NPCQ8zVFAWzcdoOa9BoCrUNrD5XPuoIBsROc0vBovos+9ZOLNmqEO8batfLu1CW6p2CmVOyR3cQR9YOOpsXYppXWi6eXPqT5c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=nMu/h/Wo; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A9280C433C7; Sun, 24 Mar 2024 23:12:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711321964; bh=PbeCPPqUTj8zu2JIOMJODjSU9380VXX4VQ800iYqnmI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nMu/h/WoJKZ5p58uWczYckBJUFI/NdcmiOwTl4tMNBzNTi14I5zHEMCs6ydKYCgNE inj0I7GtNdwzSXnE2FvKFqYem5seTE8wb2ulWuQC8OyJIWkGZEDECCFxXJAprr8vpC OxWhPMkKe1CB4L4Vk4NDF/jRaJ65oRH8odFM1iV87EWRQoIBguKCkZ4SwO3vA/o+de sHbX/iQKxogoDqt5MdXBmpQmsrwW27yGrdOg39GU3SHIYHIQcwdacxfwPXzzIItJZ0 BeZjbH1NcxDMHkR4aBzwibM+88Ugw8m3E6TcTGBiz8UQ6O1QuwikcY8QB2gf8t3Vq7 VxBIpMEVfmrDg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Max Kellermann , Helge Deller , Sasha Levin Subject: [PATCH 6.1 036/451] parisc/ftrace: add missing CONFIG_DYNAMIC_FTRACE check Date: Sun, 24 Mar 2024 19:05:12 -0400 Message-ID: <20240324231207.1351418-37-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324231207.1351418-1-sashal@kernel.org> References: <20240324231207.1351418-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Max Kellermann [ Upstream commit 250f5402e636a5cec9e0e95df252c3d54307210f ] Fixes a bug revealed by -Wmissing-prototypes when CONFIG_FUNCTION_GRAPH_TRACER is enabled but not CONFIG_DYNAMIC_FTRACE: arch/parisc/kernel/ftrace.c:82:5: error: no previous prototype for 'ftrace_enable_ftrace_graph_caller' [-Werror=missing-prototypes] 82 | int ftrace_enable_ftrace_graph_caller(void) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/parisc/kernel/ftrace.c:88:5: error: no previous prototype for 'ftrace_disable_ftrace_graph_caller' [-Werror=missing-prototypes] 88 | int ftrace_disable_ftrace_graph_caller(void) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Max Kellermann Signed-off-by: Helge Deller Signed-off-by: Sasha Levin --- arch/parisc/kernel/ftrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/parisc/kernel/ftrace.c b/arch/parisc/kernel/ftrace.c index 4d392e4ed3584..ac7253891d5ed 100644 --- a/arch/parisc/kernel/ftrace.c +++ b/arch/parisc/kernel/ftrace.c @@ -78,7 +78,7 @@ void notrace __hot ftrace_function_trampoline(unsigned long parent, #endif } -#ifdef CONFIG_FUNCTION_GRAPH_TRACER +#if defined(CONFIG_DYNAMIC_FTRACE) && defined(CONFIG_FUNCTION_GRAPH_TRACER) int ftrace_enable_ftrace_graph_caller(void) { static_key_enable(&ftrace_graph_enable.key); -- 2.43.0