Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp332361lqt; Thu, 6 Jun 2024 05:14:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV5skngEp50SnxM6d790ZIwIbRyJ6bzZhsvdSQ9bcaHTc5DLK9RKTf4N2KJOOuyTzIalSvRjG/KryJtL4keNhwtSAZFRRINaLWUeSQ3qA== X-Google-Smtp-Source: AGHT+IF4+h4wtCWOl4dAtpIjljMwPoDImei+URZGN/1yOJl92eIkeQogSlFTz5xyy0a8hdcLJTC6 X-Received: by 2002:a2e:9898:0:b0:2ea:bdea:a75e with SMTP id 38308e7fff4ca-2eac799112fmr37305941fa.17.1717676081187; Thu, 06 Jun 2024 05:14:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717676081; cv=pass; d=google.com; s=arc-20160816; b=sZ3KBBDl+YxCKrvWbQQjNclgdfqou/hfJEOWJRCXzqhG/CHsOM+PV4UjPrJecZNQiw 8pWLe0pyIDxeVhXJWTM7DrDrnN/R92dL7BknueyA+AB9gP6TFL6w1dalknIK6ZxQ1HQT SNrCZQfkGhgV+7qz3z2y7hZPhyjoCgArgRxT8LPSfkWDMickIaTLGOH8eUVHvg8vzoFF ddG/6iUWR1JRzhu0hQWkNKqVOgdwXiy/VvXomVb1ho3ULgwDgK6SPMIDPW1ryMts7kOX u5eZv0K31Tz34ME5BoOa6CivvgOSk+73Gip4Aq/F1ZZTsgGCtKqPyyX8Bk+wHESIGTo2 5qFA== 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=mpd1awEKUKZ+z5/Z8EweX6KDCZ+cmkt7u2zmsrt7Hs8=; fh=nKfoN7UdqOu/DvYTGAbUDlQOipRyyGAc9CYQlDoFez0=; b=b3EIz05WVrTNbgf9Lqk7JLb+/t5mZ0a/zC7/qMh2YxeGwmUffHJl2lEfY7lTXc+FML MXcpvXPRHXecXyWVv1DM6y7jeVJkV6LTzU6rlCJEtWlktgJhGEDbKr2FK0LlvQ7FgdiD BsaJC2bkTpCO6PeBUYwwxYsHdx4QHyW60nyCSrQE/Ce3TTkiimhDwRXGLGTKUgPY6t0+ A9RkG9hvaewxo0FtFGE7hXeI2Y4lmtCVd1HslO5UuwIfCMv/28qJYLlr3GymV8ki0ZIH 9sZuwYSAyUR4eYTvbqP7b1kl87tC9bUhAApePmcq/E4ePuDrZKEvDR5dNkJ8rsAdek05 O8YA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-204251-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204251-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6c806dbfc0si63779566b.304.2024.06.06.05.14.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 05:14:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204251-linux.lists.archive=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; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-204251-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204251-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 E03A11F25B00 for ; Thu, 6 Jun 2024 12:14:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B672B19884A; 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 3D989197523 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=1717675862; cv=none; b=KvIpcKEmw9LkZYB4eZ3vwRtWBPy6vz/hDjTPL2ePPKJtEx5jHCdQv4CMLb9VGg/X2Cp54MbiRbD2VJTfT3APCoLhtFh7zyxP+L3NWGlqQxPciWX9YUUa+oShZJ1d4gN623M66ykEQyPu3TwarL6o16DLpZAJ2TTiTymu1M5J/oE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717675862; c=relaxed/simple; bh=O4Z8RIZmGILc7wFuWKxh23fcOr7gMxekIIMSeGbJnB0=; h=Message-ID:Date:From:To:Cc:Subject:References:MIME-Version: Content-Type; b=UgR5RRyGmV5I+ZgGdnUprj/ZOp0NZ9EQ7fe9ylT+W1pN/zII36dlOebTs7C08nlwpXd5xoBDAgL3cSXjur59FJYwDNGMtdDmCj0AECzI8lM6pPqTnQrdtMCjAZKwjGShCpcVjtesfFrrNtqZEX+Dv2Z3KvzasaBmWGe9Wt/QLn8= 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 D8865C4AF5F; Thu, 6 Jun 2024 12:11:01 +0000 (UTC) Received: from rostedt by gandalf with local (Exim 4.97) (envelope-from ) id 1sFBxS-00000000nOK-1qO2; Thu, 06 Jun 2024 08:11:06 -0400 Message-ID: <20240606121106.299363966@goodmis.org> User-Agent: quilt/0.68 Date: Thu, 06 Jun 2024 08:10:16 -0400 From: Steven Rostedt To: linux-kernel@vger.kernel.org Cc: Masami Hiramatsu , Mark Rutland , Mathieu Desnoyers , Andrew Morton , kernel test robot Subject: [for-next][PATCH 12/15] function_graph: Make fgraph_do_direct static key static 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)" The static branch key "fgraph_do_direct" was not declared static but is only used in one file. Change it to a static variable. Link: https://lore.kernel.org/linux-trace-kernel/20240605202708.936515302@goodmis.org Cc: Mark Rutland Cc: Mathieu Desnoyers Cc: Andrew Morton Fixes: cc60ee813b503 ("function_graph: Use static_call and branch to optimize entry function") Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202406051711.dS1sQZ9n-lkp@intel.com/ Acked-by: Masami Hiramatsu (Google) Signed-off-by: Steven Rostedt (Google) --- kernel/trace/fgraph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/trace/fgraph.c b/kernel/trace/fgraph.c index 4bf91eebbb08..63d828054c79 100644 --- a/kernel/trace/fgraph.c +++ b/kernel/trace/fgraph.c @@ -515,7 +515,7 @@ static struct fgraph_ops fgraph_stub = { static struct fgraph_ops *fgraph_direct_gops = &fgraph_stub; DEFINE_STATIC_CALL(fgraph_func, ftrace_graph_entry_stub); DEFINE_STATIC_CALL(fgraph_retfunc, ftrace_graph_ret_stub); -DEFINE_STATIC_KEY_TRUE(fgraph_do_direct); +static DEFINE_STATIC_KEY_TRUE(fgraph_do_direct); /** * ftrace_graph_stop - set to permanently disable function graph tracing -- 2.43.0