From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 18063C25B04 for ; Mon, 12 Dec 2022 10:43:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232198AbiLLKn0 (ORCPT ); Mon, 12 Dec 2022 05:43:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232128AbiLLKlK (ORCPT ); Mon, 12 Dec 2022 05:41:10 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DB01FAD3; Mon, 12 Dec 2022 02:36:14 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 060ACB80C8B; Mon, 12 Dec 2022 10:36:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ACBF6C43396; Mon, 12 Dec 2022 10:36:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670841371; bh=HvNKuWYFW8umeX/fI6aXrzjdk4JcPKrYu3UMnlPw/N8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OfsJZGj7sikCAjHvN+D8xMLliQFy+uTUKQdmEd7a9y3k3c82kmH+DS1kjyGafx9cT sEOSlilYR+H7EEN3iVtxtFwaX67wyhZWtNqfT/DuUpt8JZgsJhQxsga4p1syesqov+ PY8PYM2E8gvL6HF9GbgPeaEx5khPZgJ+vKFyq1h0deygUm35P9HrQ9mrt3euUM+XJb S8f1hOtR/qGsYkr6M5OvIOS7eQ44M70Y2VaVHiogRHvwTzVGqJl9viiRiKrM60lnBP GJBad6fEvlQ0qHFAlsijTKUEldXZH3dR2AG5JSZ0l9fxGEj5ewDOLgWC7EK2FlxJRN m3lrGUFDT6dFA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Tiezhu Yang , Jakub Kicinski , Sasha Levin , davem@davemloft.net, edumazet@google.com, pabeni@redhat.com, shuah@kernel.org, netdev@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH AUTOSEL 5.15 5/6] selftests: net: Use "grep -E" instead of "egrep" Date: Mon, 12 Dec 2022 05:35:57 -0500 Message-Id: <20221212103600.299810-5-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221212103600.299810-1-sashal@kernel.org> References: <20221212103600.299810-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tiezhu Yang [ Upstream commit 6a30d3e3491dc562384e9f15b201a8a25b57439f ] 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 using "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 Link: https://lore.kernel.org/r/1669864248-829-1-git-send-email-yangtiezhu@loongson.cn Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- 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 0a49907cd4fe..da5bfd834eff 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' | -- 2.35.1