Received: by 2002:ab2:3b09:0:b0:1ed:14ea:9113 with SMTP id b9csp147596lqc; Thu, 29 Feb 2024 12:57:48 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUSgFRGv6DS1y5ryAAb8pBP1OV3Niv8EnE3Fy1a0HGfL2GMQRKJnRNd8EwyLL3DoMoc3Rmkb5agEka+kp5iZ18EllSF8k4GtKA7SKrlNw== X-Google-Smtp-Source: AGHT+IH2Mk/lhqyNOUOC+wVC40ME6aJaS9ctrNdfiVL3NnqL32IpflwGlYehddtmhi2XOZyd684d X-Received: by 2002:a05:6a20:a49a:b0:1a1:2a67:c089 with SMTP id y26-20020a056a20a49a00b001a12a67c089mr2613601pzk.11.1709240268559; Thu, 29 Feb 2024 12:57:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709240268; cv=pass; d=google.com; s=arc-20160816; b=uopKoiCQBDFUn+I7k71wjqsi5ZQSq1hVrcFYoLeIIbB0XcIPez43KchbdTl3B+gqSX 2EU+di4fnIUYF1qDq8cahShhUL/2KyS0rKyYO+Hl6Ps+UV7PsSjKH7h2vOa8GZO81D6v gp6SQyqKw4ITk1kRV10EzO03v6q0YXoxUnmdKr8htSKJm4VDlNtjVsHisyiNQA7jFQ0l 82ic42OSUPBvukyKMD5NkOjEzzFLB700257I2yY0VvS59kCYvQc/2G0KMncDdheBEc6O hfpUz437hnpPI94mocAxw9H4Ofc38eejLcZUoD4WQF14ONKGK2R7nPwMoVwij2L9gc/P GYJw== 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=HfTD9V+mrQEe7z75LuaOkCatp7KBbTf6DyURcd/l8sI=; fh=3BFkueZaQXeWO2X4ubn2ljRzam/dzQdP1WFmEuYtHJA=; b=aYbnvwaUF9wYXW714sa8ayrMmt4LG7YhPKg/blDVqsNynIdRkGdjZ86xxk3FLzsKqX J2hOZWtU+QwFs4Y0+/EYoUrzU+qsrkF7OA1rB8vNyRKSoUWnE8bgJkv9wLpxaRxmT1g5 x2gAwX5xXhKhZuoTudSDcSj+eHqPk1Nb7JwDlf0FGiS7YjVTQcULLbUjMYMCe7wgxBVb 4kERDOUFI6z0uFFmfpGdHuTw63HXaegXcdmnzHm8o4n9qQ7njF4ts/4TboRYBWAz8QdU 4dKqXe3QBys5No2VD76V9aQ+w/9MG2xPLjpjP5LxRmc1uP4ilLDtsrBqqkeOgHZhcEix qHdw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=B5dX9m0Y; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-87502-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87502-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id y190-20020a62cec7000000b006e555a4d1e8si1994819pfg.61.2024.02.29.12.57.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 12:57:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-87502-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=B5dX9m0Y; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-87502-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87502-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 37BAA284B32 for ; Thu, 29 Feb 2024 20:57:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DB6701683A1; Thu, 29 Feb 2024 20:41:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="B5dX9m0Y" 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 E93F816838A; Thu, 29 Feb 2024 20:41:20 +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=1709239281; cv=none; b=uJEj6vv56UrZ4J2MQUoXgJfNngI3+hbFpe2xWeBqgVtqKT4CuWCHZRapVYmxmaMefuXtRZZlkxiMI36K/mjrhzK3wIT7ryhUU9wtUkZ3rz7dZTIoFZwmRpQwv7WMnA8hWUgcB7K6moOK7uqyGYwH2Hvju2GCE34Plb7y8MJlKb4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709239281; c=relaxed/simple; bh=3VU3H4kuIe/rQdv1ZeQ5FiFnpIIR4BQFW/7JsgHKPno=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=jcKJ0ZfuXEy3lI7Udb2fcOMteTKXuMDGIm+qSVEasmRIWMUvYSOjsXBpAr7fF6ojHFN9l5eFK9S2guGY/a5uxYNJHJ1PsqQ9m/TMIpFlMh+2Cwq80twYMQ+fQSZVmJ3FG/5BsmTB88WfgXinU1lAG1uPVOrI7UQs8CnmJ/xwx5M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=B5dX9m0Y; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 921A9C433F1; Thu, 29 Feb 2024 20:41:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709239280; bh=3VU3H4kuIe/rQdv1ZeQ5FiFnpIIR4BQFW/7JsgHKPno=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=B5dX9m0YnpZ8ryW90PL68UbS53r1GIz1nJ7IVnji7py4bdV4QItk4ocf7DQvTa2Al sC/+Euf6tm1tGq8jDo7CeM1ASI4dFNaY/Yxz4fPdXuDVa+JB+yMoK9xOP8B4yNA7Wt Gbc17O06ywmGAHAALfjniRHUtOUrpNRauHLGYz/u1jpvj9vkMc2IKqzHyRgNnLuUaP 24qVBj1s0qL1RpAWrPE6VA8ZtVC/Dg7TqcUmQEjS2YltW3Fz5NwTVhVQQf0bvabFd1 aFYWOVqrFx3NwovlozH4eeqL8wlKHg07Gn0CjSABKaVtkl+DrhAe2BOLf/cBqQzeOV TGgSqYl5v4cRw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Max Kellermann , Helge Deller , Sasha Levin , rostedt@goodmis.org, mhiramat@kernel.org, James.Bottomley@HansenPartnership.com, linux-trace-kernel@vger.kernel.org, linux-parisc@vger.kernel.org Subject: [PATCH AUTOSEL 5.15 7/9] parisc/ftrace: add missing CONFIG_DYNAMIC_FTRACE check Date: Thu, 29 Feb 2024 15:41:03 -0500 Message-ID: <20240229204107.2861780-7-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240229204107.2861780-1-sashal@kernel.org> References: <20240229204107.2861780-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 X-stable-base: Linux 5.15.149 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 0a1e75af5382d..44d70fc30aae5 100644 --- a/arch/parisc/kernel/ftrace.c +++ b/arch/parisc/kernel/ftrace.c @@ -81,7 +81,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) { return 0; -- 2.43.0