Message ID | 1669165413-12035-6-git-send-email-yangtiezhu@loongson.cn |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2524374wrr; Tue, 22 Nov 2022 17:05:20 -0800 (PST) X-Google-Smtp-Source: AA0mqf4CaAbD06PsSrlRcFWLi9Lr/kPxGXF7kBvdcJ9bJInY6HxN87sdMWInCMpRTgJX0mA38WRf X-Received: by 2002:a17:907:778c:b0:7ad:79c0:4669 with SMTP id ky12-20020a170907778c00b007ad79c04669mr22503328ejc.395.1669165519924; Tue, 22 Nov 2022 17:05:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669165519; cv=none; d=google.com; s=arc-20160816; b=sDncFrp1nmUwsQVyNO+P6JZoyODSb6Jd+rfoqp1Q+YExOaPKbpsGa9mrVWQlTIB0mv 0x0ggxQBA/K3qAI/AABDEstngzKXY5G15EX+JLDJOoIWY1Q4/1x5S2rgYOOf6GFZwRRh vk9+tJ8r8EpWNuTTPZ9b/wqRVuD/4ioH0v8wAL3e2UI6v7d0sRVokNB/qUt8W/GwQD1Z shxLENPCg3+nR3whPghI6nXeWvS3mWWTEhE5nq9anKxOCz4PnFToAEyuSOKKq+YwT3No UjCDjWCnoi8jtG0zi7EvKRmauJ3HxU+ImFHN6jowxdr9+P/GRHZkkjhIOOvFW1sxRVQt oUyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=Qw1VnRWaqAUu0TJBVVSeB9ry9wlsLXVLSfflV5xK9f8=; b=UT++ye07okgwILTENCWkW0aBxCHSmuED7Eojsz8SA2aQNNAS2nkPnqQVKdMSd2nOoN 90joSMQE0rUQ3HVferTtDS0jkb5Kx/WGEyBQrqSnrPu9hjgmLd1IEyCBpDl+KWZWA809 uW26J/SDXhnAaVcdLa5ktc8fOkXwkIYn7zU4dnq+1jL3TWOeP8xQQOxHwWDZZILt1eDE fyNId2BTkLtEx6xM+KSVx+Dg8JegWltWM12mhq0ph28D2k5yWFGyT0fiZz6KPI4L/ECN RYr/eziQgqmJ1hpMb8KIPA+BXqnAkc9l3LFSFMOEexqoCryXuO/NGQgj36OTxCcoJB97 dX0Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qq18-20020a17090720d200b0078d83fb6672si10911193ejb.118.2022.11.22.17.04.56; Tue, 22 Nov 2022 17:05:19 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235384AbiKWBEB (ORCPT <rfc822;cjcooper78@gmail.com> + 99 others); Tue, 22 Nov 2022 20:04:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234936AbiKWBDr (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 22 Nov 2022 20:03:47 -0500 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A91EDDA4F2; Tue, 22 Nov 2022 17:03:45 -0800 (PST) Received: from loongson.cn (unknown [113.200.148.30]) by gateway (Coremail) with SMTP id _____8BxnutwcX1jlyMAAA--.455S3; Wed, 23 Nov 2022 09:03:44 +0800 (CST) Received: from linux.localdomain (unknown [113.200.148.30]) by localhost.localdomain (Coremail) with SMTP id AQAAf8CxJldqcX1js24YAA--.45400S7; Wed, 23 Nov 2022 09:03:43 +0800 (CST) From: Tiezhu Yang <yangtiezhu@loongson.cn> To: Shuah Khan <shuah@kernel.org>, Shuah Khan <skhan@linuxfoundation.org> Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 5/6] selftests: net: Use "grep -E" instead of "egrep" Date: Wed, 23 Nov 2022 09:03:32 +0800 Message-Id: <1669165413-12035-6-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1669165413-12035-1-git-send-email-yangtiezhu@loongson.cn> References: <1669165413-12035-1-git-send-email-yangtiezhu@loongson.cn> X-CM-TRANSID: AQAAf8CxJldqcX1js24YAA--.45400S7 X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjvJXoWruFWrur1kGFy3Gr1fJw17trb_yoW8Jry5p3 y8GwnrKF1rJFyjyF4UWFsaqF1fKan3XF48WrWrGrnrZrs8J3WxXF1SgF47AF47WrWDXws5 Zas29ry8uan8A3DanT9S1TB71UUUUUDqnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCTnIWj qI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUIcSsGvfJTRUUU b7xYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20xvaj40_Wr0E3s 1l1IIY67AEw4v_Jrv_JF1l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxSw2x7M28EF7xv wVC0I7IYx2IY67AKxVW5JVW7JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxVW8JVWxJwA2z4 x0Y4vEx4A2jsIE14v26r4j6F4UM28EF7xvwVC2z280aVCY1x0267AKxVW8JVW8Jr1le2I2 62IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44I27wAqx4xG64xvF2IEw4 CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jw0_WrylYx0Ex4A2jsIE14v26r4j6F4UMcvj eVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCF04k20xvY0x0EwIxGrwCFx2IqxV CFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r10 6r1rMI8E67AF67kF1VAFwI0_JF0_Jw1lIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxV W8JVW5JwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Gr0_Cr1lIxAIcVCF04k26cxKx2IYs7xG 6r1j6r1xMIIF0xvEx4A2jsIE14v26r4j6F4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr 1UYxBIdaVFxhVjvjDU0xZFpf9x07josjUUUUUU= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750246904372400612?= X-GMAIL-MSGID: =?utf-8?q?1750246904372400612?= |
Series |
selftests: Use "grep -E" instead of "egrep"
|
|
Commit Message
Tiezhu Yang
Nov. 23, 2022, 1:03 a.m. UTC
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/net`
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
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
---
tools/testing/selftests/net/toeplitz.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/net/toeplitz.sh b/tools/testing/selftests/net/toeplitz.sh index 0a49907..da5bfd8 100755 --- a/tools/testing/selftests/net/toeplitz.sh +++ b/tools/testing/selftests/net/toeplitz.sh @@ -32,7 +32,7 @@ DEV="eth0" # This is determined by reading the RSS indirection table using ethtool. get_rss_cfg_num_rxqs() { echo $(ethtool -x "${DEV}" | - egrep [[:space:]]+[0-9]+:[[:space:]]+ | + grep -E [[:space:]]+[0-9]+:[[:space:]]+ | cut -d: -f2- | awk '{$1=$1};1' | tr ' ' '\n' |