Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp543663lqr; Wed, 5 Jun 2024 13:28:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWW4QZdkwl9H4oibyvq9u4BlNIZLEbekqhQqrwJ4xKQtgrRtRXH2MZoz6UNUvGkGREBzClZYE2vdgWUJS1Oc6wnLsYoOvE6nvzoa0q6bw== X-Google-Smtp-Source: AGHT+IGn5naNOuoUN7Yn51Nn9nn4HAsJZGi+hRgJq8hkroJTPqyZKsX/Dwi7mk3e3qpQgmmOtOUf X-Received: by 2002:a05:620a:5e4f:b0:794:f833:ed34 with SMTP id af79cd13be357-7952f0f8553mr115472085a.16.1717619302674; Wed, 05 Jun 2024 13:28:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717619302; cv=pass; d=google.com; s=arc-20160816; b=OS9XnpawNqKvybeB/FrHp9l4XmPDaG/5zWcqHWukVlpZBYyzKHViUOBAeh08s6kepv bpWVh0+ffQpG2oEoHLj2AQWcuy/v/E7/Clk3N/XqEjF+VRKkiI3G10Qk0+/qx3rzVUN0 qBacM2jnHZcDjvcQcpgtGCfV/cVlSX7RRHKp4SCK3THzQ6UGDLKwDHwuiY0r4LO7abS4 hgSARCwrz3RVeUvQSC8dU0ZmPYzQKLzXTAP193xbaG+Pvk9aG25cyvHQFfN7Zo+woyz5 930fbG+2YwXXPXP2aL7Tc+5D/u3S+wLBkOQapo9YR2rH1Vf1Q1jLp8OG4r1Tb3svcZrm NRoA== 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=QV61iSCt0BEhYanP0WsovWi3c/Ko7x6xCtAwvn6cWFE=; fh=BN3k1SVmJgv7qUoz+vlA0xMJLY/7qKHFnjdMRugw0Xs=; b=BSFeRf6o3/OKySbmH+ms9KIxQ2rcf4WYZV/llyT7hF7n8QAgzN6mjYlLpYTVnKh5iI Kzx9xOHgVcxtREMBclW6j3RCyGZmjfDSnwPoF8TQk3YQq6t16UDzF3xUYDteRy5X7m0D 2OIlo+VAUb/1ggMhIHKL+z+nn014zUxVBPRjjGrbn/ipfatncZ2b8eMcJrC7lWjB1VZq 7vC1GNF0DplRKCE/OTZQuQYcFRKVERnA2+HjMxDvNsP58Supm6BOnppS3xN2CVaREcFC I4Zk9NkvLSkjurgfPDmSGi7ngApaOJ4U9Th9LqaNuGfHGf9u+QZyd7hrlNHep85evUYS JpwQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-203176-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203176-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-795285d1b0dsi197179385a.688.2024.06.05.13.28.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 13:28:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-203176-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-203176-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203176-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 3837B1C2194E for ; Wed, 5 Jun 2024 20:28:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 32AAE15FA66; Wed, 5 Jun 2024 20:27:08 +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 8A09815EFAA; Wed, 5 Jun 2024 20:27:06 +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=1717619226; cv=none; b=tJu41+91y4eSrPCA3wSyt9Y6CnYxOS5+s5XnfEACgsIJpmRy2TsGfNMs2Dm2w/N3dNJc/ZWrwSwGYRubkiPStJ9f8C6puTqp3BJOJYhsiW19EY6eeRQrA6KqCBZb/oRUGB6Zywq70DzdPhMhWxDNYmYBb9GyuPvdOeVJ46w4ROc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717619226; c=relaxed/simple; bh=f7mhAHQ6UAt9EOXxpYEDswe/vbF9g8NMK/HEN3liMwc=; h=Message-ID:Date:From:To:Cc:Subject:References:MIME-Version: Content-Type; b=mI4XHqniUmUd55hBSuYPqfpIqnF0DMkRaTu6UeGxAoZNY+I7uvMe90vHm0diOZqnF/aasZXthnbNPkHtWRKUIJofUq9RnQQunJ+d0sfH63cWRKWnGxetfBmWrwSUoGxdlvfjATtj+6CpPOT/6iRgBxxxCsIqDOGXccTsIWHCaeE= 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 02763C32786; Wed, 5 Jun 2024 20:27:06 +0000 (UTC) Received: from rostedt by gandalf with local (Exim 4.97) (envelope-from ) id 1sExDx-00000000i8s-0Jhv; Wed, 05 Jun 2024 16:27:09 -0400 Message-ID: <20240605202708.936515302@goodmis.org> User-Agent: quilt/0.68 Date: Wed, 05 Jun 2024 16:26:49 -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 , kernel test robot Subject: [PATCH 5/6] function_graph: Make fgraph_do_direct static key static 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)" The static branch key "fgraph_do_direct" was not declared static but is only used in one file. Change it to a static variable. 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/ 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