Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2161367rdb; Sun, 11 Feb 2024 14:43:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IFIHzlf6F8nB4NyWq5ctXeHaaxjQ2zhX6Lxajib3HQxLaR5eN+fXx0xlP5zX+icKgKXD8f5 X-Received: by 2002:a17:902:eb89:b0:1d9:b241:cde3 with SMTP id q9-20020a170902eb8900b001d9b241cde3mr7173997plg.36.1707691414086; Sun, 11 Feb 2024 14:43:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707691414; cv=pass; d=google.com; s=arc-20160816; b=SoPGKd4UpNiX+MaW4wBriYbFlf3+3/8uITLNGt0o16b87dOFcMK507k6qs6dG/xoW3 0c42WzGeqxnLLmaKm+WDp2OArXwtXhSXriPyT9qkrVsIqbVbLAwWO3BN74wU+f2H5Ltz hYfj84ys1C+ZkcPpZnsE4Nb2DwzlOjvj3lCsIVdRuNB0tY7a0tdEgGEKyHYbOkhpIMaC YyP2XpDmGkbQJSBWUMbi1m7s3teGl9sgFxajTGwXt7gHoC8c23CGfhUKhO+8QAgb1TZG caRgQoP3Xd4SNybfiipgUEAyqthMPkGhCaotX1t+qSJck13y6KHcLle7I/OycYlhy6y5 DG+g== 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=U3o6/1YxCTnGIpzd+C7Znvtlsm1TfyvDqPHYmjKUbv8=; b=nWBtOcnJKMbm4I9wbGCits+uR+cwuNILoa8O4tspCZuw59CxYwkGp/aP3tRFgqJAWG 2BSJ1qtG4Syn30jqg6xgzirFOuRRbRGJltOWLkFUDmK6bE3ghdewJHM/bOcVhi1MngAZ rTZZgjIb6cKH7fxCXVsCnBW+WCmehoWMnaThaucS/fFbSechmBrVTrz2vf9/TqVhTZrc ueQp5khPkS9ryFcwrMOEMz3Y+YJCQX+h6OkHVDS4Mon21ZCoHupjG4qesq6EV8KCfv9M cIl3dAbHHpxvJ9I6AbR7AcGQBvBPCUXBtWO11+x7acjrAceONRQ7HTHfykt7SWFmmXZK NKgw==; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60975-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ionos.com X-Forwarded-Encrypted: i=2; AJvYcCWxvtkaogplv4RFu4rZlu6QoVrOW6KbYSsiY9xK7eej8L/u3e/BJ9McO+wI+QVVjlAgPZg0954CI7K1qwZp/6cBk5tTzVbQpLlEMDITUA== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id i8-20020a17090332c800b001d8fc816118si5397736plr.189.2024.02.11.14.43.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Feb 2024 14:43:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60975-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=@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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60975-linux.lists.archive=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id BACF2282BA4 for ; Sun, 11 Feb 2024 22:43:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9FCA51426A; Sun, 11 Feb 2024 22:43:26 +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 Content-Transfer-Encoding: 8bit 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); -- 2.39.2