Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp334778lqt; Thu, 6 Jun 2024 05:18:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX9qdK3xpYexnrtbeeNybAl/zqGvm4zgQqfQw3Zo4n6WC+6kyFiph3zN8kseUUpu3p2p9CxvHfAetBuGnKPOxMW6mnhqecVcnJdQKMIjw== X-Google-Smtp-Source: AGHT+IHaMZunnQzdogNJMY9qoqIOYxWmfGBaxoConshGI80C4Qm0zT0s3jlIG5adSLthJHtBRrXF X-Received: by 2002:a17:90a:ec11:b0:2ab:eff6:e2ce with SMTP id 98e67ed59e1d1-2c27da3de62mr6751977a91.0.1717676331322; Thu, 06 Jun 2024 05:18:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717676331; cv=pass; d=google.com; s=arc-20160816; b=hN/m6OieEjx6/FKhGO3yTxbB8hWmbb+rHAelF1k7f6liVmq93f+RGK/hIDRrFELOLb qeg4PymiAs1GZwKMX+10NNE8m0Xmb3QSbTpsrJVfZc66n625b90PiviH2C+MH//AV2eh emPsvrRX/NkgBP5MnOMe6y7MD7beC4nWIWKMYQraCfICThyQMiAScLVCva3qjWIoHigt 0oMNDQe5Yi8K9pl1ett081pPbNxctWOmFi89UZHj4UdzDkw5E6Aa0NZZ7oTkpWnatEvK RCvKtJz1YXctp8pu2Z22cc3F8BPd0XrOlXew2jmTQR5WZXbzRfMnANIFFBA3HOqrBLhL 8w7Q== 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=XAZjzlCgPocWqJp8C14mwGzDzJAB9+teEjY6dmxvzwo=; fh=R8JZsVKDlS7lXIAvTNV55bsjlDBI0i4sqiOYXO4tZQA=; b=gS56rug7t/9HosUWrsyXJhXBpJjsyzNMn+wm7pL+c1p+ZveKHNqWfN1VMnY1kgqiKB ZL3WJrElrc8ed1IcK25Ao0lweFTTpCncbdKqLA0ODk2iJruT78szpzzdxvLZyERZDAbY w48ThkWzLGsywAbQoVyIZcWemoWqEzyClUiDA3hU8XgncmDhwb44iukUcTpGxNycZ1N6 RgbJQGGw9KM9K9vpDRg2tAZwPQOYbUNypFy4Ft5euy7X+lwv/u/WIpuUafWdoqhCs6Ha RpLSzl9CzMkBbMDWOm0v6YS7yQ2TucA0EbMQ6rNT3bB2tQB+fUwHqUIDELgZ3shN+S2L 2kkA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-204262-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204262-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c29c49e357si1114904a91.160.2024.06.06.05.18.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 05:18:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204262-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-204262-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204262-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 EE94B283B31 for ; Thu, 6 Jun 2024 12:18:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4DD3919596A; Thu, 6 Jun 2024 12:18:44 +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 C9AC013B28A; Thu, 6 Jun 2024 12:18:43 +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=1717676323; cv=none; b=W9vmEFBVuJnrQJfe6xj0SVfNyjOj9OsimcEMmG4wQ3wOt0AC0YhxRT9iwmsRBBy/Q2IvAsyzRpDLRiI0eor8vJWRaD7iIE4duAW2YvqD+/leK1IH4NhL7DCGTEyWGEvqhGuluq4+7mLpSkev8fkVDomIkJxUycj5CtALls0EUvs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717676323; c=relaxed/simple; bh=SQNXTsj89MLWuzJf5l0TgCEvvxyzvDkvobR9izSokYA=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type; b=fc+52KeE63LyagkIS8L/52azcyhuTfttj8UdcIjjcxmzWxVe5Wqk4B5W9hW4qIjQxByYEmUTvItQfTZIp1ELAJ1+4nFmV5JzbpPOO2DaGEGkIE5BPwGdJpV7J4jULJ2c+IUv/uRCmrHbcsoiyD+7gZXXrheZxR7Ai8kBn3sNRqA= 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 C1A9EC32782; Thu, 6 Jun 2024 12:18:42 +0000 (UTC) Date: Thu, 6 Jun 2024 08:18:46 -0400 From: Steven Rostedt To: LKML , Linux Trace Kernel Cc: Masami Hiramatsu , Mark Rutland , Mathieu Desnoyers Subject: [PATCH] function_graph: Rename BYTE_NUMBER to CHAR_NUMBER in selftests Message-ID: <20240606081846.4cb82dc4@gandalf.local.home> X-Mailer: Claws Mail 3.20.0git84 (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 From: "Steven Rostedt (Google)" 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. 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) --- kernel/trace/trace_selftest.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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: -- 2.43.0