Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp332088lqt; Thu, 6 Jun 2024 05:14:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXcGhdWTveI5Y/Lo9/g8QCvblWKKDHyrlZjUN9nv89JofHv3baB8c7MX1qcdBNyX1N5UZDjrFMuf5e1OUQq1odIQKBpXDeTiRWaOt1v2Q== X-Google-Smtp-Source: AGHT+IEK3urCi/LvRp8TuQNYTSht3iQqQ04madvjTitOXrfKvTydhTzs6inflpEjQ8IWHuTHlbC5 X-Received: by 2002:a25:ab09:0:b0:dfa:c544:52dc with SMTP id 3f1490d57ef6-dfaca9e8ec4mr5477139276.28.1717676052474; Thu, 06 Jun 2024 05:14:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717676052; cv=pass; d=google.com; s=arc-20160816; b=1BR02i3pZ3vPNlzWEICu8Rr/QwqDOnyW9FvRMUP6p+PCww/omKMwDV4/+ThvUbGm5d IN2xvW+jsT2z9MBfKPl8LREx1iTkKm36m7tbGfNQpGt3+rkOJK1+ythZEPNC72Jnh9v4 S9R8X87BNAnJFIj735fYddEOkZEWViGeE4Z0BRoapCAEFLYnT5IGvLYlObgZ8rrvcap8 TdUssHVDQuj9GGRoEZSRGG0EA3VXVUM9sTDfoM6lkULoN4LYuu28jnJmNB7ogTyg2vQC 3UlhmmIzFXOT7wHQF5Lcy8nj2u07SQBo/vKUcUF0jqbzKutna9b/3f0sFdRaDfgs4k+L 5+hw== 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=RSBxhNsL4ckjyhone9nwpknk/RhZj32L/G4NqZJIo6Y=; fh=mTYg3JJ8i2GBNLFt8qb4bgYwOyk0kmrOzICLbi6qJ1c=; b=smFP2AbajLngM7CYWBc7R/nXXM2DmBq9ecnT7YcAGPcIApC+x9kTx0LIB9RFeDreV3 lnjWEfXum2VI7WYa/2eaIAGGTvDjLhXsNRqkKdeZ7YQQSbDjMVU4qjPs+Wmo8Eg2mLMT 6Qz7vSa2Lmo0XF4ulco+VWYzuKLrAK1rWi+4OJ0yl1DKJzKFpYDRnnpXkmSk/BgQ4XIH nYGb+9DzVpnZyDHvI1mPC7uU6bqrwWzw9IEdV478hDhUkCphnM52YPd5+ZqC0qr3p/Ns ikbmUzU49/QLuwdrQS5sSrXtPgRqYIf1WBmE1qLu1XEk7XeUkn8vd+Meu9+DPfERvtSD 8UXA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-204248-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204248-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6b04f63c756si14141116d6.15.2024.06.06.05.14.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 05:14:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204248-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-204248-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204248-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 330501C25499 for ; Thu, 6 Jun 2024 12:14:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 30E48197A7F; Thu, 6 Jun 2024 12:11:03 +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 95B7B195FCD for ; Thu, 6 Jun 2024 12:11:01 +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=1717675861; cv=none; b=k3jIySiJ1H1JwbnL8yIsPfrw3kLoJ6Q1jbhp7qvBTfbTqyIrk620Qm3vKgoNwEq5vj2fqL/CC4BU7r/Gxg7TYeA4hJPE0V4T07Ij+1fRF86788sdtq2m7P8tMbyLEkF4PiWoBXQYrmp7pvx2OMWnxV2wXiIZ+FjZEAWFjkAPACs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717675861; c=relaxed/simple; bh=iVZzamMFw4KSf7EJWCT9D8ewRTw/E7zgRCVheMa8EUU=; h=Message-ID:Date:From:To:Cc:Subject:References:MIME-Version: Content-Type; b=NB7Jy5weE6FawZ/6GoOvIbvqfJlwV1QrEl/0g1aKxHJnE77qlpc8op+k6yKAA73oWkHLRkoKxO22pdt/UkvO+pjODF5uMM1bbRT2jX4bGrmW/6GqgGY96UQF4pNP4wu3roossrnTphmAJQmyeOdpVtu37rL1zAqp+YVTRTc6cuk= 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 48262C4DDE4; Thu, 6 Jun 2024 12:11:01 +0000 (UTC) Received: from rostedt by gandalf with local (Exim 4.97) (envelope-from ) id 1sFBxR-00000000nMK-3Oit; Thu, 06 Jun 2024 08:11:05 -0400 Message-ID: <20240606121105.667743331@goodmis.org> User-Agent: quilt/0.68 Date: Thu, 06 Jun 2024 08:10:12 -0400 From: Steven Rostedt To: linux-kernel@vger.kernel.org Cc: Masami Hiramatsu , Mark Rutland , Mathieu Desnoyers , Andrew Morton Subject: [for-next][PATCH 08/15] ftrace: Declare function_trace_op in header to quiet sparse warning References: <20240606121004.857581251@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? Link: https://lore.kernel.org/linux-trace-kernel/20240605202708.289105647@goodmis.org Cc: Mark Rutland Cc: Mathieu Desnoyers Cc: Andrew Morton Acked-by: Masami Hiramatsu (Google) 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