From patchwork Sun Feb 11 22:43:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Kellermann X-Patchwork-Id: 199521 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp2131917dyd; Sun, 11 Feb 2024 14:43:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IFejF2JqlST/xOIdnqsSjp0mGBiqLbe5DYsoLSS6hWJDotruK2bYADu7knX6ujFaUTdoZTW X-Received: by 2002:a17:906:b2d2:b0:a3c:2d03:435d with SMTP id cf18-20020a170906b2d200b00a3c2d03435dmr3352595ejb.1.1707691424955; Sun, 11 Feb 2024 14:43:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707691424; cv=pass; d=google.com; s=arc-20160816; b=K23QSUsuTjsXX1XrW/8sCs3EbF1BzqKfUinlHLIhNA6mla7O+RBavtbPCh43gswGl/ bzmlpFLRiYvy1+liDKgRxYuml1MgIIJI3o7AiHNMqkEtEKzUc+oQpYvzRkXk5NWr6M5d mwL9zZKqvaubI8UBeJwBjUZr2Xo7+BkyXJt1cugTSB6O2TsrChZs+gctLuLWFExYj7Vc PClVlZj8DTaBz0OkLe99rw+MrVZPnUXXVYsYr1C8GszxupiHBhFOUv5G3Mv9p5WoEpMi waLK8emkTJsDPBzAMP2VfRD99ZQqxFBB4Q4UEl6TFc3pAhWcPGentBWI9n1gXB0/t8jM A83g== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=bjFoTus7aHlrnOcOuTAWCgZWdvA6SJu+L7BLRl44mJ4=; fh=5kUk0BuiP2Zkou9AWO+tJW2vxRwQzUoS5waYPzCHDwU=; b=kA5R8RKggN+BH9DQ0nSvn74M8P0wiHUMNvdCdbuUgw0SdOPAb1GQ3dyE1PnxipCGJT xs5gL5nbDFao7+8oP3tP77wW4FCYYlDpYRHD5epZEHW9tiK0GBMdnN2Rq/IRvZJLvnUy J2DD1nUIINEgoNsgixrPIJcILqYLrn8mhIAcrfVDQv/VyKP6TrlHslCjefT1jXYjaOTY TZnnNatS4nouV4SgeOqi7rCg7A8rj+sIRFUh0/urD0K8+mHu77gk5EQC+mNXe+QDuJnH 8XoAjXpYYw5sIo5niOd/wrxfGKCXQ0kHEG7nIoMsUSIAF3yxsK/YWo2LzWFxW4lXqo2m NrXg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ionos.com header.s=google header.b=XzwGrRYB; arc=pass (i=1 spf=pass spfdomain=ionos.com dkim=pass dkdomain=ionos.com dmarc=pass fromdomain=ionos.com); spf=pass (google.com: domain of linux-kernel+bounces-60975-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60975-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ionos.com X-Forwarded-Encrypted: i=2; AJvYcCWMhDsLBSPoWCrGKX01jIkwV8K9AuJvfqTD0KlRFdYMJKv3YLg5YJcW+5oyGcZ9J3enLv/PW3UIUx/bBGeO1qW/q9D+CQ== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id v4-20020a1709063bc400b00a3c1f025fa3si2051005ejf.701.2024.02.11.14.43.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Feb 2024 14:43:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60975-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@ionos.com header.s=google header.b=XzwGrRYB; arc=pass (i=1 spf=pass spfdomain=ionos.com dkim=pass dkdomain=ionos.com dmarc=pass fromdomain=ionos.com); spf=pass (google.com: domain of linux-kernel+bounces-60975-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60975-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ionos.com 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 91CEA1F2242F for ; Sun, 11 Feb 2024 22:43:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9D71317548; Sun, 11 Feb 2024 22:43:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ionos.com header.i=@ionos.com header.b="XzwGrRYB" Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 48B7D5684 for ; Sun, 11 Feb 2024 22:43:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707691405; cv=none; b=dvO9UqunajS/Ecj2cA5gbslsQe4xdxRZAe32GG+Q5ply5nscJ3cDDnTrIRhAVPVXwF9sMCSb15qZXp8urq0PTIv6pDmaZjopQXYwtDUAhjEYzSBfQ61SjX2ON2UHkHKeGYjwFab2yIYQqppMKGfPkOPnh1c72e76eePaHLPNjls= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707691405; c=relaxed/simple; bh=vH5zUWq2bx6dQW4vfZYSuRe8aVXk2pfKniPKqPuO358=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=nvtYlkBSKTOxyzX2h3Fay2/QjXS/X2t0plCkmJzMeoROSD8qqMCSsD068ARY3cWyLk6fM3rnIw6qYBk2QoI56nYsoNR5erNgaGhcpyMs/3R2z9H2+Kga7w+cSr7oGMb+IO5a7Vt5zcQtf/Z5Ih+F968SS/lMoZlrc+v87OgspAc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ionos.com; spf=pass smtp.mailfrom=ionos.com; dkim=pass (2048-bit key) header.d=ionos.com header.i=@ionos.com header.b=XzwGrRYB; arc=none smtp.client-ip=209.85.218.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ionos.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ionos.com Received: by mail-ej1-f42.google.com with SMTP id a640c23a62f3a-a38271c0bd5so318245166b.0 for ; Sun, 11 Feb 2024 14:43:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ionos.com; s=google; t=1707691400; x=1708296200; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=bjFoTus7aHlrnOcOuTAWCgZWdvA6SJu+L7BLRl44mJ4=; b=XzwGrRYB4wgrdtQVHY5xX1gmGzqgxYdBbYfbzqQhvXkCm0J/eiDscC0FQdiLMEcoyN xf3f7ffeMf42ZBRCIzQGhFrIqNFJriSP8DTRjRKvgS+j8N0qblrGp6360bNHCpeo8Gmc MSqV7wvSAVwNGBQBlS/Y1ipmz9/E/o+l7gA4ozerlUh4mTNE1dGKh28pnGeaIog3ngyu 2fTAI5Oo1pGDmW5jecWj3oi+r1uvzKjEoB8C+mz6+CRQmFWm1ITT7NWPey7nBKM//TgF n8l3ckrZfMqa3L8lWOch0M++KM0cYDLo+QFXj7TSvchlQRMvZxNoCf592pG0KnBaHVoV nFLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707691400; x=1708296200; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=bjFoTus7aHlrnOcOuTAWCgZWdvA6SJu+L7BLRl44mJ4=; b=cRrIC0oKexMnxrGwarLbZcL4nQnWe+17vuspcTYA7eVNFAADyl86cMDdemxU9AaY/6 ZnzVF2fsXyCb+cYxusEZ2k5ZDYu3aRDVgKE6gESqnEwVWREJOnvYG4xwMzkYmGz9iyIY Akv8x3giMyv7iJOEhq4mjJbqR2ov3649jXIo65Hz5b/CWTE1qhY/LX8w7DBjmKV8EiYF R1Kph1fxb4zEfbaUW78s6RBqDfLvzLulpfvlzK8nKHafJ4sBm4ry8fcCT1lFn9uWZWaJ Mp00fTfdCdB3Dz9CTGPLcrCv1Q8eJN090i5q+WJ9dSsG9BPSQYerKXEhRmIkQYdYuJTJ YFig== X-Gm-Message-State: AOJu0YzG7+oiRBMe6s8mOZU3BX4nur7Cgx6LPjaefRV9ZyD7l8iD+rqo OEp/r9F59PrRWD1ItgRlQMTzN26U61D5h8fuNQTkacrqHTzdzzY1uH9brPQRIGs= X-Received: by 2002:a17:906:7f8a:b0:a38:4879:72f9 with SMTP id f10-20020a1709067f8a00b00a38487972f9mr3948919ejr.24.1707691400547; Sun, 11 Feb 2024 14:43:20 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCVtkTht4pynUiAjFuubCUmY6w2q1SDAomrzS74tMB+us6WxH+jvbhOHWUNcrWMoEl5L6T55EfIgeLoXTWNKIlhYxr9Azsf4uiaYvVR0jG2UYSJFwNC53+sU4Mb9JCe/fX5SgZ0iM9y9BJX3hSLh6HTvEqrXDhnZY6lExzdV7s8jIHcuvCCKuG67bCDx3nmBH3OuRXj8OUpxJzEKKWMdgfkfHIGL+kY6VJS2t6LOasRut1XGmG8ZWm/H9pdGeBNsH2C0ZWGQZm8dOABjP7/+vv/lSJAW2MSWurvNReMFQoeTJ1fUgn9eVo4ou7kQKvt8tQ== Received: from raven.intern.cm-ag (p200300dc6f267100023064fffe740809.dip0.t-ipconnect.de. [2003:dc:6f26:7100:230:64ff:fe74:809]) by smtp.gmail.com with ESMTPSA id g25-20020a1709061c9900b00a3bb2156f7asm3252608ejh.185.2024.02.11.14.43.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Feb 2024 14:43:20 -0800 (PST) From: Max Kellermann To: rostedt@goodmis.org, mhiramat@kernel.org, mark.rutland@arm.com, James.Bottomley@HansenPartnership.com, deller@gmx.de, linux-trace-kernel@vger.kernel.org, linux-parisc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Max Kellermann Subject: [PATCH] parisc/ftrace: add missing CONFIG_DYNAMIC_FTRACE check Date: Sun, 11 Feb 2024 23:43:14 +0100 Message-Id: <20240211224314.169314-1-max.kellermann@ionos.com> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790644243492498993 X-GMAIL-MSGID: 1790644243492498993 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 --- 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 d1defb9ede70..621a4b386ae4 100644 --- a/arch/parisc/kernel/ftrace.c +++ b/arch/parisc/kernel/ftrace.c @@ -78,7 +78,7 @@ asmlinkage 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);