Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1741113pxb; Thu, 16 Sep 2021 14:30:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6xFsxs69LDyLLMaXk9T4mFVMSRMlQQFIvoWD8h6K0VxtRJ+YwdquW0IhYZIpI1XZBemPG X-Received: by 2002:a17:907:1de0:: with SMTP id og32mr8595768ejc.348.1631827851501; Thu, 16 Sep 2021 14:30:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631827851; cv=none; d=google.com; s=arc-20160816; b=jFK9cGF7EHkiOac12VJDmDHRqMea+4ij9p20wJDIgp7i+Pzi8xo/w4QoHV0YuauUBM VQYjnvccZPz6x0drYYabrcz3sUjd1xjpUTBNssjZ1ZD8ns0GRycSCuQx+jVaoznpDiQD KT3PUiK+WKcM8gd2kAnyd5cMVFJqcb0AUi4Rh0nr2ZgKOkkuiLtUVr9QteDlxHj7bspy hh+mQcCGu/OD2/Aktu78mel/1EXpXJRz1+LGxJw8PcqXJhOFi+gxbGgShsjW+MqvHCU9 p7FCiZG8rWymqdhL6n0WI9DwfuRlzj17zh/pRxRkATLPQ7Jf3OKtr9tFEkGeHNKmISL/ tnHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Hpq4kQQp/V+jLzmtc87i8zqq5qF3rmT+XnnrA7EPb1k=; b=M4PB/pGSjslBazCDbT/vEcI+b6yZGw8xyOrXZRNzkc3G1oDZsiskqWCIDIbBurCRMf h7Kic/s3ABuARlI7kW+JICac6YGjme44qKjGVWvTS0oTbNoEr3EbcFIV+U8bwiw5fvRh 6jP20LEL7RORTsrrfRnSfL8gk+2h2PMnL0Yzd0XiUaIXww3YUxRz7nFHEZkZdpsabDXQ uAdQsATWac4GVI46E7QM15truEfglGlXWNIlhTwzMsZ9PxPPbXgtatezvZpH91ZhFIby dTLoNM9rMwxRXyOd1XZmcmqazCL8O0eEj012wyA3g+6yEIAv3awH5q0+Ml5FTBA4VKtb xFYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=OlVi2f22; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mq9si4153483ejc.435.2021.09.16.14.30.26; Thu, 16 Sep 2021 14:30:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=OlVi2f22; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241892AbhIPQfX (ORCPT + 99 others); Thu, 16 Sep 2021 12:35:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:38206 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241027AbhIPQ1s (ORCPT ); Thu, 16 Sep 2021 12:27:48 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id ED2B0615E0; Thu, 16 Sep 2021 16:17:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631809064; bh=9iClfcn2FvwaNTaQw0Bk6+vBHtIgyJFO+KgfvpvKnfs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OlVi2f22f+i5A9+8LmoVOx9ZNI4a03VtmEFrsahq/LpSY/axWp+N8hdGaAtaN5rxt 56HqZ8XvK4FNQqm7ncyo1ss2dZYnc1LVeXx+nuHIXOYdNHMmcJZjh9sOZKQv0kMG50 AZvC8oRmzO/HEmvcbqrmAKcVlRsnL1liGUruSejg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "Tzvetomir Stoyanov" , Tom Zanussi , Shuah Khan , Shuah Khan , linux-kselftest@vger.kernel.org, Masami Hiramatsu , "Steven Rostedt (VMware)" Subject: [PATCH 5.13 018/380] selftests/ftrace: Fix requirement check of README file Date: Thu, 16 Sep 2021 17:56:15 +0200 Message-Id: <20210916155804.589461544@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155803.966362085@linuxfoundation.org> References: <20210916155803.966362085@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Steven Rostedt (VMware) commit 210f9df02611cbe641ced3239122b270fd907d86 upstream. The selftest for ftrace checks some features by checking if the README has text that states the feature is supported by that kernel. Unfortunately, this check gives false positives because it many not be checked if there's spaces in the string to check. This is due to the compare between the required variable with the ":README" string stripped, because neither has quotes around them. Link: https://lkml.kernel.org/r/20210820204742.087177341@goodmis.org Cc: "Tzvetomir Stoyanov" Cc: Tom Zanussi Cc: Shuah Khan Cc: Shuah Khan Cc: linux-kselftest@vger.kernel.org Cc: stable@vger.kernel.org Fixes: 1b8eec510ba64 ("selftests/ftrace: Support ":README" suffix for requires") Acked-by: Masami Hiramatsu Signed-off-by: Steven Rostedt (VMware) Signed-off-by: Greg Kroah-Hartman --- tools/testing/selftests/ftrace/test.d/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/tools/testing/selftests/ftrace/test.d/functions +++ b/tools/testing/selftests/ftrace/test.d/functions @@ -115,7 +115,7 @@ check_requires() { # Check required file echo "Required tracer $t is not configured." exit_unsupported fi - elif [ $r != $i ]; then + elif [ "$r" != "$i" ]; then if ! grep -Fq "$r" README ; then echo "Required feature pattern \"$r\" is not in README." exit_unsupported