Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp332098lqt; Thu, 6 Jun 2024 05:14:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX60Wx3qQP4e+1YMaTn+Id87IFPZbzGTva2zY6RQDPEJWBsAHTTREJ8Huf9K/28b0wjh7ds676T1bhd7PF76PMV8Dgt3Z6H/3Z7AI9yzA== X-Google-Smtp-Source: AGHT+IFs5PqaXV/COMKPRRmcDDUTGI+NDKpfmR/pvgMAxzhHxMUenMVLViO5agzHxv9hagIu5/13 X-Received: by 2002:a05:6214:3d07:b0:6af:ba7f:be64 with SMTP id 6a1803df08f44-6b02bf790d7mr55971216d6.37.1717676053363; Thu, 06 Jun 2024 05:14:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717676053; cv=pass; d=google.com; s=arc-20160816; b=YRqA5W2ITQv09C7Y0iTNRBv+0FHMgQyHFVID6KZGY16I9QAzBR/8gxxif9rBQykQm1 1pMuJsnTY6DFqFgbLY78Q8s5pqbfh5PXg4Xy+ET3otJTdbCf/AMUp9tH+YsLWZQ6hbu4 6MQcEcAFsCSR0oNxJv0nsHRCNf02z7Jg2W0d3vyGWLGqLtm3pPJsdSu4ypXxMvl3Hvkm 5KaFsPJx59QpwYbOSolyMIAFEAam1Rz2dEJpPFVURLHdFaqSBJzM8eM+lfWEhHXkQPpD OaPKtoh3+5QXuU6wrjbJTfj8RmAAXXye2YriK9JCGNObhWcMDo8YoyfrqXlqyvfCEu6m LK5A== 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=4rJrPV42jkTfL2+X9vA177e32sV2MaSCjSkXh5RI/TE=; fh=mTYg3JJ8i2GBNLFt8qb4bgYwOyk0kmrOzICLbi6qJ1c=; b=GezfOfa+wsSXRYAwtifITLZ2SBvHN/DCXIfXfGCmRmfvdhjprlfbrLCz+CRFYtEqXG 3MPnB9C92XYJki38v9JFDNWEQISPRStJHKadS8pHBGo3ODCAozVuv9JbHsjrGpcyXSh2 eZxhHgkZ7EnGSHb8oGPM4MSNqvXssrNG8by6XG2niFhM2Sas2R1RTUCD4LNKahmfQd2+ 1lUnAJWY5qpvx3cOOQpVEnCXXh831+XpVE9jYyimTxzC+TY7LLZMFGeIUSXDqhKvnDG+ zRvfy8APFdZb1F+y+GK3S8l9JVUM+X+eQNCHZybIVlPVZdDX6j/DyQT2dmBbugH4LS4G sipA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-204249-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204249-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-6b04f63c7c8si14072166d6.36.2024.06.06.05.14.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 05:14:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204249-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-204249-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204249-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 15AF31C215AC for ; Thu, 6 Jun 2024 12:14:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 338FB197A82; 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 9D0AC195FD5 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=fBYuvHgOamWqPfQR6uGw395ItfnPeEvygfy0sL4oZkwxKmE5UQAR8ed2K5IfsB9AL09qMRMzSotSh7H1s2K2Ukc4790ye0fKqAKJZ8XBXesacM+jRmrDQvhkFTT9WtXtewjj3Wqsoef98HkvHH5CmwUz0zhgZCY3hURMFCFQvGg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717675861; c=relaxed/simple; bh=1USSILCftAKY2knoh2V0QYMEyPvdlS6a70pxmpzW/yw=; h=Message-ID:Date:From:To:Cc:Subject:References:MIME-Version: Content-Type; b=EpuAarIEyb2svTlrS5OS+vXoBsc/X+318Les7ma7+fzu/Rn5+VlEosUiXOvWI1MbtnCG4ilngJRh1+NxPi+ye4colemJSaz+D6KEbozqvRyGarPxoAmB1T6ovvPk1QXcT+hYzpwPVEr+shpDCm4vOJweffow6F1gi24u9wfHLEM= 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 7A59BC4DDE5; Thu, 6 Jun 2024 12:11:01 +0000 (UTC) Received: from rostedt by gandalf with local (Exim 4.97) (envelope-from ) id 1sFBxR-00000000nMp-440Z; Thu, 06 Jun 2024 08:11:05 -0400 Message-ID: <20240606121105.828859387@goodmis.org> User-Agent: quilt/0.68 Date: Thu, 06 Jun 2024 08:10:13 -0400 From: Steven Rostedt To: linux-kernel@vger.kernel.org Cc: Masami Hiramatsu , Mark Rutland , Mathieu Desnoyers , Andrew Morton Subject: [for-next][PATCH 09/15] ftrace: Assign ftrace_list_end to ftrace_ops_list type cast to RCU 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)" Use a type cast to convert ftrace_list_end to RCU when assigning ftrace_ops_list. This will quiet the sparse warning: kernel/trace/ftrace.c:125:59: warning: incorrect type in initializer (different address spaces) kernel/trace/ftrace.c:125:59: expected struct ftrace_ops [noderef] __rcu *[addressable] [toplevel] ftrace_ops_list kernel/trace/ftrace.c:125:59: got struct ftrace_ops * Link: https://lore.kernel.org/linux-trace-kernel/20240605202708.450784356@goodmis.org Cc: Mark Rutland Cc: Mathieu Desnoyers Cc: Andrew Morton Acked-by: Masami Hiramatsu (Google) Signed-off-by: Steven Rostedt (Google) --- kernel/trace/ftrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index 9c4d01b1bb68..034242675e7b 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c @@ -122,7 +122,7 @@ static int ftrace_disabled __read_mostly; DEFINE_MUTEX(ftrace_lock); -struct ftrace_ops __rcu *ftrace_ops_list __read_mostly = &ftrace_list_end; +struct ftrace_ops __rcu *ftrace_ops_list __read_mostly = (struct ftrace_ops __rcu *)&ftrace_list_end; ftrace_func_t ftrace_trace_function __read_mostly = ftrace_stub; struct ftrace_ops global_ops; -- 2.43.0