Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6072462rwb; Tue, 22 Nov 2022 08:25:30 -0800 (PST) X-Google-Smtp-Source: AA0mqf50B9BffVh10bHQc+oLWo+2D7Ipl3eiBGW/ugwFnnXXRzsGnlN01p745oCu5rFmRfdqftBT X-Received: by 2002:a62:c5c2:0:b0:56c:8c13:234c with SMTP id j185-20020a62c5c2000000b0056c8c13234cmr6498408pfg.12.1669134330413; Tue, 22 Nov 2022 08:25:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669134330; cv=none; d=google.com; s=arc-20160816; b=P9AkkXyv0IHjgzBRt+gSExo0cIqtTtvPG3Too3AnXtdAKqbXqTxYSnUdhFGjQNe92R kj5nsUUZiqAkxSiYcNGts+6of0LMe2+i1N49uX2F6clQERnkin77R2YiGEJYtX8a4NRm Srp+/3VfOgooI0krRaPdUgCQoUCc3k1fDQCp+GSjBAOtqeCk5SSkSAKv76uDOPQGarS9 +TiqUNhcOFaV7rsyh3sG8UC7Ut0Q0cEQPNraONBmcNaXgHV5pX/xOevkbyHwnytvKxKH agT6Zqlb8i54iUwsXMUTO450aUni5DacvphCtg7jJ6vRt7fFpd8k5xTxBUyxmulcZrRS A2tQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=7FyLRcWeEt10Tp6Q2JSqZYM23I/W5i6bt7PkeloOjrY=; b=Oju0SI2dLR8YDEFjaqapHTFuyZxL2IX5v82TjD1/Y/enRayxrit+HkefbbjKnRbzo2 WvQTp5nNxFa6bdqoM91x/sVkwWuDBt7Kkpt7NRq81j2w+PtJ18CIsv4n3ETKdMN1DlBt OsWiRFFDdpSj15uhnzU0vscCSnyhJLc8Ly+Wei7jHdOj9XerdEjl8mjvMfO5C1UlFkU7 p+a6r2LPyEmspomcy6ZQzRpe5GndchaLL55s21pRiH2t60iLoW+2ClvUDGkh536vQi9y k7uYEpAMWTbAnJHlwbZpw3EYDfLc5lF6EyVO6hi4U66CEbsu1WtQaGFdwfZSZkZpHrTH WU0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b="F/l9sfje"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nd10-20020a17090b4cca00b0021306464b66si1489376pjb.28.2022.11.22.08.25.18; Tue, 22 Nov 2022 08:25:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b="F/l9sfje"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S233871AbiKVPnV (ORCPT + 90 others); Tue, 22 Nov 2022 10:43:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233550AbiKVPnT (ORCPT ); Tue, 22 Nov 2022 10:43:19 -0500 Received: from mail-il1-x12f.google.com (mail-il1-x12f.google.com [IPv6:2607:f8b0:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1719B1743A for ; Tue, 22 Nov 2022 07:43:18 -0800 (PST) Received: by mail-il1-x12f.google.com with SMTP id o17so1218279ilg.12 for ; Tue, 22 Nov 2022 07:43:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=7FyLRcWeEt10Tp6Q2JSqZYM23I/W5i6bt7PkeloOjrY=; b=F/l9sfjehEkVkYFxDLcg0q15uEq2C4J1hCH5nBl+qzVe5+J2mDnJ9mMs7KO018UF9n HcRfwzUPjMXduEd9m9s+gdINS4UCFDrUZm00qGxYFg9CTocqtCMtFJLqMOIrHbXC+4c4 TgS3Rn9PriIqzHHhQew7xjyzuTs7GDDiD9y7w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=7FyLRcWeEt10Tp6Q2JSqZYM23I/W5i6bt7PkeloOjrY=; b=rlGFaSot5CVANu8AtPwN4PbVuiIX1cfmp++ZGUWlopAy96GRJvHl6YsMtd529cfp8P 9X8X6Qy2BjK0fsEcGOi9Eob2MrFON02xoHU217/RCjbcTabEhnRCBAn8MdBbuwi+Y6sE nxrMSL2MZ8fsqtkZi1plhZ/j4zMb0WH+FZtV5yDAzaqMwgY+EHr14z/5j8R4WWRP8NrL pau+jVU3hZbgHQf2r2oo+yE8IvGC+AYt26137WTY0q1UsDNXN7kGtyE8xcC4P+VVJkH8 A1AyAvDp5mV4GIus4diptnxeXxejyKNMMpxFVqa4jkGHh/e1BXMmgpUXWt+Q5O/2Laph 8Rrw== X-Gm-Message-State: ANoB5pmlf6PsmmRHWbIInuepc8uq/4ZdYW5DUc62AgbVZ/kfoNksMJyh z9vnfc5fXsrXf5QE5h/tSKcYow== X-Received: by 2002:a05:6e02:1054:b0:2f9:4fbf:1f4c with SMTP id p20-20020a056e02105400b002f94fbf1f4cmr2741162ilj.296.1669131796818; Tue, 22 Nov 2022 07:43:16 -0800 (PST) Received: from [192.168.1.128] ([38.15.45.1]) by smtp.gmail.com with ESMTPSA id n13-20020a6b590d000000b006ddd85d06c2sm5349298iob.55.2022.11.22.07.43.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 22 Nov 2022 07:43:15 -0800 (PST) Message-ID: <42c7effb-691c-c7a1-0d7d-8ba1569c0269@linuxfoundation.org> Date: Tue, 22 Nov 2022 08:43:14 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH] tools: selftests: Use "grep -E" instead of "egrep" To: Tiezhu Yang , Shuah Khan Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Shuah Khan References: <1668763704-10408-1-git-send-email-yangtiezhu@loongson.cn> Content-Language: en-US From: Shuah Khan In-Reply-To: <1668763704-10408-1-git-send-email-yangtiezhu@loongson.cn> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/18/22 02:28, Tiezhu Yang wrote: > The latest version of grep claims the egrep is now obsolete so the build > now contains warnings that look like: > egrep: warning: egrep is obsolescent; using grep -E > fix this up by moving the related file to use "grep -E" instead. > > sed -i "s/egrep/grep -E/g" `grep egrep -rwl tools/testing/selftests` > > Here are the steps to install the latest grep: > > wget http://ftp.gnu.org/gnu/grep/grep-3.8.tar.gz > tar xf grep-3.8.tar.gz > cd grep-3.8 && ./configure && make > sudo make install > export PATH=/usr/local/bin:$PATH > Does this change work without the latest grep? It seems to work on grep (GNU grep) 3.7 when I ran quick test on kselftest_deps.sh with your change. > Signed-off-by: Tiezhu Yang > --- > .../selftests/ftrace/test.d/preemptirq/irqsoff_tracer.tc | 8 ++++---- > tools/testing/selftests/gpio/gpio-sim.sh | 2 +- > tools/testing/selftests/kselftest_deps.sh | 2 +- > tools/testing/selftests/net/toeplitz.sh | 2 +- > tools/testing/selftests/powerpc/scripts/hmi.sh | 2 +- > tools/testing/selftests/rcutorture/bin/console-badness.sh | 2 +- > tools/testing/selftests/rcutorture/bin/kvm-build.sh | 4 ++-- > tools/testing/selftests/rcutorture/bin/kvm-find-errors.sh | 4 ++-- > tools/testing/selftests/rcutorture/bin/kvm.sh | 4 ++-- > tools/testing/selftests/rcutorture/bin/parse-console.sh | 10 +++++----- > 10 files changed, 20 insertions(+), 20 deletions(-) > Please split these into sepratate 5 patches. All rcu changes in one, net in one, powerpc etc. The change looks good to me. thanks, -- Shuah