Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp527662lqt; Thu, 6 Jun 2024 10:13:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUENf1ro9Hy469RriKbP7AeS475UYU9eMrD4+OF4UOjcwpG2hZDYRqDZEnAEkpRiPWQZ5j0XEIZl5bIoKIuz/P4J7l9zujvkjUJBPW4CQ== X-Google-Smtp-Source: AGHT+IGVSHJKFXL5+HQovFBAKAbGdbHD2HSxf8yIr3W1srlAE4uHAmQSovQK7o9w9W6pZOghMmLq X-Received: by 2002:a05:6a21:999e:b0:1b2:afc4:ff71 with SMTP id adf61e73a8af0-1b2f161d235mr288031637.0.1717693987678; Thu, 06 Jun 2024 10:13:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717693987; cv=pass; d=google.com; s=arc-20160816; b=TUD3n4IN+T+30zxYM9eJJyZ3w0UvbBp/CzU0cfZyG5/sqCKS86TQWF3yqOkShcsCYl i3KRuKgPAN7e784iP9C6gRsG/yLDv9sAA6tHSTzGlPlTQXRhLNN/hxDxu5UoPbFmJOnk aljpaPVL89mMTDxGOmofJIDdyq060Y9vrEVm2Y6C9LazeA1HBMAw8wgwQxbGSRCsn8Xe mCksVod/N1YYQGUvmto5az6yrBshJhEt1sZSMFaitBqIvXCKZcCQOYGCeYcYWsWO8y5r 5QI340Buy0a3/At1yEDKTakirglycDReEHXuU3YSfds5RcMq3o898IzwMvm7ee+06EHY elPA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:subject:cc:to:from :date; bh=TVDq2DFVyF5EZEABxw+UfJVfjk9rUYdOxH04VJ+JtHI=; fh=YDSINvbnScxrzzqJJRQdW6Vcrq2vPRdcD1FxR5O5wbU=; b=ga1ZaC7CNTHf0e5AKhAzMazQTVgu2z+bS5H+TU/Qjc5UTaGFQA2WnZ/FtLMcaSmw7g hWtZoGGjufW6yoQzMDf/l9BUmi8vofzSA6HDnhRTA4zT103Yi/o3E2F6AiKuBzt7W4BP p3P8ApzK/KLvf2uJkZbDj2BOG5DNtBWVz2JmFaNp5TC07d/ul/cHTi04AXIz0uehOR/I vhhLzc5FPfzFVzTLi47HRg/DQlkx+iVI826IHS5d6hmtJWMVqu31rc8Rv1GUgJeNd6yJ UdU6CSS+zDmwQ/BLtoX7ngSJtOuk/efZVXDoMshscWNeYl9hTQZC+JU4Hvm/BsWWRjD2 ayrQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-204726-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204726-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d9443c01a7336-1f6bd75fb14si2830995ad.48.2024.06.06.10.13.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 10:13:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204726-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-204726-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204726-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 6A10928C66B for ; Thu, 6 Jun 2024 16:49:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 33567198A3E; Thu, 6 Jun 2024 16:48:58 +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 B4B0A198A2C for ; Thu, 6 Jun 2024 16:48:57 +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=1717692537; cv=none; b=J9ieVUzLAydWz58F3oWuADN/Ernu1w2ARa1cqn3BW8YmknyK4agHN8DgFsHilMrov3NZCNMRBBwFc6qWdD/7XgbcRbUH+sWoD//9On09m7lxtShCZ4dZkvW5vVx5oZTsqcDG65G1oD3x+nSjtGzUEughO4BR08JrQl38L62k78k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717692537; c=relaxed/simple; bh=NA592QpdHNILyqQw+YPUbhUgEevZwCv+wztjQVrzJ/0=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type; b=gqog7N4UsHywNA+EmsZ94nFJX4EtQ9NScU+e14xvnS0/VpeGYYcpLxH7KN5s1sl6n8SA7YZkwv0P3b3W6AFq+zPLObohlsLjk8nDjKjCwkVzmE1NmAEnIo6VRPmFCQb4LzsxPc5+y40XFIKa2+RzRmPOH3NU03rYv7P7INXGpUY= 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 66206C2BD10; Thu, 6 Jun 2024 16:48:56 +0000 (UTC) Date: Thu, 6 Jun 2024 12:49:08 -0400 From: Steven Rostedt To: LKML Cc: Masami Hiramatsu , Mark Rutland , Mathieu Desnoyers Subject: [for-next][PATCH] function_graph: Rename BYTE_NUMBER to CHAR_NUMBER in selftests Message-ID: <20240606124908.0d7b31e2@rorschach.local.home> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) 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=US-ASCII Content-Transfer-Encoding: 7bit git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git ftrace/for-next Head SHA1: 1af19b7c01061172f943ac247409626af0ba0867 Steven Rostedt (Google) (1): function_graph: Rename BYTE_NUMBER to CHAR_NUMBER in selftests ---- kernel/trace/trace_selftest.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --------------------------- commit 1af19b7c01061172f943ac247409626af0ba0867 Author: Steven Rostedt (Google) Date: Thu Jun 6 08:18:46 2024 -0400 function_graph: Rename BYTE_NUMBER to CHAR_NUMBER in selftests The function_graph selftests checks various size variables to pass from the entry of the function to the exit. It tests 1, 2, 4 and 8 byte words. The 1 byte macro was called BYTE_NUMBER but that is used in the sh architecture: arch/sh/include/asm/bitops-op32.h Just rename the macro to CHAR_NUMBER. Link: https://lore.kernel.org/linux-trace-kernel/20240606081846.4cb82dc4@gandalf.local.home Cc: Masami Hiramatsu Cc: Mark Rutland Cc: Mathieu Desnoyers Fixes: 47c3c70aa3697 ("function_graph: Add selftest for passing local variables") Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202406061744.rZDXfRrG-lkp@intel.com/ Signed-off-by: Steven Rostedt (Google) diff --git a/kernel/trace/trace_selftest.c b/kernel/trace/trace_selftest.c index 369efc569238..adf0f436d84b 100644 --- a/kernel/trace/trace_selftest.c +++ b/kernel/trace/trace_selftest.c @@ -758,7 +758,7 @@ trace_selftest_startup_function(struct tracer *trace, struct trace_array *tr) #ifdef CONFIG_DYNAMIC_FTRACE -#define BYTE_NUMBER 123 +#define CHAR_NUMBER 123 #define SHORT_NUMBER 12345 #define WORD_NUMBER 1234567890 #define LONG_NUMBER 1234567890123456789LL @@ -789,7 +789,7 @@ static __init int store_entry(struct ftrace_graph_ent *trace, switch (size) { case 1: - *(char *)p = BYTE_NUMBER; + *(char *)p = CHAR_NUMBER; break; case 2: *(short *)p = SHORT_NUMBER; @@ -830,7 +830,7 @@ static __init void store_return(struct ftrace_graph_ret *trace, switch (fixture->store_size) { case 1: - expect = BYTE_NUMBER; + expect = CHAR_NUMBER; found = *(char *)p; break; case 2: