Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 268852417D9; Tue, 21 Jul 2026 18:40:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784659233; cv=none; b=emlw1bC70Cvv9W3J+VjULuLu0Cly56DEWY9vW6wY4lnxWijCfzwcXNdiKUAgE6djuvVzZZBo/GR/4vI8Xi3MnMCGyoj+2d24D38ev1uEKJGTSuf6bzssbuweFqHyyROQkJGIiLZa2MrfTvxTUdQjZBhaJTzVKLByOXUnnhQICuA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784659233; c=relaxed/simple; bh=vk/uEceawZTJxhQnchBAaWQfoaF3HD+qaIiEmOBKTcE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=c0Ii3xgyC6Aelc9Js09RrIMCODi5GyPBCUIn/18t7Qo4H1SGzE4CBoAASDHo6Bzu6dk+/1o+QFGmvQUjQ610N6A5ZqkwVzn3B016sWRlZAq8WwZbfLlgODFU3+9ozllXLrWvBe49O5XDI0Ym6z98NVJUcutbH/H6AEHxdTbIah4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=18MGxpYE; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="18MGxpYE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 866621F00A3A; Tue, 21 Jul 2026 18:40:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784659232; bh=LYAhMHnkX5UN4M531zCtCyhp4UTsyeVKZ9JxuthXh74=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=18MGxpYEsgM4kGkmgybZ5mx5WDKOKOpFS6iKhURd+kxtkbsoLL0uauq/b08JhJamb PdNwC4b6l54iRN0XwvqJwPWAzuS3NjRNxOxZ/bTD3th2y7UWDm0ER0cssovs2U04NX NXimEV96reEYwkeNIr/ChT1r/xln+1Bh/kNjU3qQ= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Cao Ruichuang , "Steven Rostedt (Google)" , "Masami Hiramatsu (Google)" , Shuah Khan Subject: [PATCH 6.18 1390/1611] selftests/ftrace: Drop invalid top-level local in test_ownership Date: Tue, 21 Jul 2026 17:25:06 +0200 Message-ID: <20260721152546.708482441@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260721152514.750365251@linuxfoundation.org> References: <20260721152514.750365251@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Cao Ruichuang commit 808c447df2fe234eb7d9e08ecf53159d291c104c upstream. test_ownership.tc is sourced by ftracetest under /bin/sh. The script currently declares mount_point with local at file scope, which makes /bin/sh abort with "local: not in a function" before the test can reach the eventfs ownership checks. Replace the top-level local declaration with a normal shell variable so kernels that support the gid= tracefs mount option can run the test at all. Link: https://lore.kernel.org/r/20260407102613.81419-1-create0818@163.com Fixes: 8b55572e51805 ("tracing/selftests: Add tracefs mount options test") Signed-off-by: Cao Ruichuang Reviewed-by: Steven Rostedt (Google) Acked-by: Masami Hiramatsu (Google) Cc: stable@vger.kernel.org Signed-off-by: Shuah Khan Signed-off-by: Greg Kroah-Hartman --- tools/testing/selftests/ftrace/test.d/00basic/test_ownership.tc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/tools/testing/selftests/ftrace/test.d/00basic/test_ownership.tc +++ b/tools/testing/selftests/ftrace/test.d/00basic/test_ownership.tc @@ -6,7 +6,7 @@ original_group=`stat -c "%g" .` original_owner=`stat -c "%u" .` -local mount_point=$(get_mount_point) +mount_point=$(get_mount_point) mount_options=$(get_mnt_options "$mount_point")