Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp543242lqr; Wed, 5 Jun 2024 13:27:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUxePOkgqKHf/a/pasae1xJztJGmmTltTs+x+Ot26TMPIy0n4YFiKKigunSkOLfA9qb9GeiPwobQGcskTCottioNs7SnwG4ufe9JRNbEA== X-Google-Smtp-Source: AGHT+IGKwlA4hckp7oqSqjkH48uJ137T2azHpqCw+J8pMtq237uAIBcMofqb0J83YpBLGk7zfO3M X-Received: by 2002:a2e:a78f:0:b0:2de:8697:e08b with SMTP id 38308e7fff4ca-2eac79c888dmr32114131fa.26.1717619240204; Wed, 05 Jun 2024 13:27:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717619240; cv=pass; d=google.com; s=arc-20160816; b=R5+zFLjFkhx8EWqB+6h5eEWqYex4n5Zh5xqtJv00Ey0JD9YYDJCcAVskZvvLISHPdC YP2jzZNe4qmoAVtyG1CzwnkghJFryviUkEBqFUgL7ggLQ0GsRo6gfzWZ1ZRbt3wjKMqM iV3QeZE23RejvRC3Gko/TtoxaEeJ1ocFa0Bd1f//2pQ/2iUrZQ1vVtzDMSF+rNwCLvFk iZ9poW8a32PB1j5AvEQNlPm9a1g3V3gMbAQGxpujYLqsMJGrdUhKuA/dmbkBMYXZJ5gq OqxYW23dpjvaZSiYyMgaP99bQQkbdhArOCR3HIqFYExqQu26I3R5w+sLvVwn6HGGl7y4 PqRA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:subject:cc:to:from:date:user-agent:message-id; bh=xF9IXnT6J7nRdV7W40KG6pmiTZnqlhu6kJOqkZkELuk=; fh=mjDKelfe6UwtrbrQsWTm6mHxXqJJm1yC7XMGoQRRIY8=; b=Jh9E2sC1VKRYS+beOCTU0tzTUUVJrHBwRqO5hs7liPYUV64CHUQ8bGGfYh463uo7uP UDztFk6gY6N3uq16Cr1gpQNLVbE1V8/8zpTBuraAHUCaWe1Z9BItklxgx90LHso9Vc47 cGyQswDzHytRcR8b4+YUSkftlB8wbq8e4ffgSri1/F5Oe+8J6fHu9ALlNL9UrIui4Ibr K7+UHrXF+eXItln2ZAWL6jwRgZhpPMmSGy0nMvj4GfnGNoFvUyhqbfPANKgw0k8bAcEA sfXWkbn8s4kjpZa5I0DIyPQfOP7Qyg5YhedqH5auallEuZDZjifCgo7C1oZxAuCUnIbv qiTg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-203171-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203171-linux.lists.archive=gmail.com@vger.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 a640c23a62f3a-a68eab67ed8si418700766b.905.2024.06.05.13.27.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 13:27:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-203171-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; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-203171-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203171-linux.lists.archive=gmail.com@vger.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 E21591F24240 for ; Wed, 5 Jun 2024 20:27:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5031515ECEF; Wed, 5 Jun 2024 20:27:06 +0000 (UTC) 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 C593D15099F; Wed, 5 Jun 2024 20:27:05 +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=1717619225; cv=none; b=qwS8byGIdfVGjiJRWL+MsyLiPUHSP7/gsQGTg28tHr6zncoYyhKHSYI46KqfOT51xDUlh9cfKfTeHNs9mB8nKgngJ8gPig0OsDBzpwuXLD9CJxiTwjhDRr/JZLju6MrO4ixmOd4aINRWJfeh1uzC7MS48MivGjy9MZoliHWwqOs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717619225; c=relaxed/simple; bh=syTGjDVnQ+cdUU7BaGwOwiOKne/SDex7bNLLogAsKak=; h=Message-ID:Date:From:To:Cc:Subject:References:MIME-Version: Content-Type; b=MAYyPQn/WfUB69FMJt9tfAIhCiuY0VOB+FCVIpBUONsiWtgxSjzdt848KnK/jsb8Y9vM852jO+r6qa44TOa9XWGnzgdTRT4TJXf4uyT1qX+o+wTW+CFc0nxKHt+LW8yScN5fWKzpn/VVIO6AZdi/da4pQm4406H1vPjiHmMvWeM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 668DDC32782; Wed, 5 Jun 2024 20:27:05 +0000 (UTC) Received: from rostedt by gandalf with local (Exim 4.97) (envelope-from ) id 1sExDw-00000000i6v-1npP; Wed, 05 Jun 2024 16:27:08 -0400 Message-ID: <20240605202708.289105647@goodmis.org> User-Agent: quilt/0.68 Date: Wed, 05 Jun 2024 16:26:45 -0400 From: Steven Rostedt To: linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org Cc: Masami Hiramatsu , Mark Rutland , Mathieu Desnoyers , Andrew Morton Subject: [PATCH 1/6] ftrace: Declare function_trace_op in header to quiet sparse warning References: <20240605202644.293295925@goodmis.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 From: "Steven Rostedt (Google)" Sparse complains that function_trace_op is not static but is not declared in a header file. It is used only in assembly code. But add it to a header so that sparse no longer complains: kernel/trace/ftrace.c:99:19: warning: symbol 'function_trace_op' was not declared. Should it be static? Signed-off-by: Steven Rostedt (Google) --- include/linux/ftrace.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index 9f61556a9491..4135dc171447 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h @@ -1131,6 +1131,9 @@ extern void ftrace_graph_init_task(struct task_struct *t); extern void ftrace_graph_exit_task(struct task_struct *t); extern void ftrace_graph_init_idle_task(struct task_struct *t, int cpu); +/* Used by assembly, but to quiet sparse warnings */ +extern struct ftrace_ops *function_trace_op; + static inline void pause_graph_tracing(void) { atomic_inc(¤t->tracing_graph_pause); -- 2.43.0