Message ID | 1668764429-11540-1-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 q4csp91086wrr; Fri, 18 Nov 2022 01:45:58 -0800 (PST) X-Google-Smtp-Source: AA0mqf60NAG6E4Qpb+1DI68LdD0LsxhnPk0MnfwJ/ptRZq5dmpVvBYidDEkHOy7+MPLBLDjyRa9P X-Received: by 2002:a63:171e:0:b0:476:9983:b395 with SMTP id x30-20020a63171e000000b004769983b395mr6020275pgl.355.1668764757725; Fri, 18 Nov 2022 01:45:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668764757; cv=none; d=google.com; s=arc-20160816; b=v+XAF8xdG54dLa5YYYYewz2EzMAY19vODJgJlsKKFz17FnDUDWxdP5xgVmAbUZryTN gc/qgL45zosKdWVrVa3EMuB+YOZjUfv1naCkJ2UGTcvd87HUHhXfUKnZ1dsLbmMQxkrj Z6qQAfCfUzZkgLz6hebCvMiujsTZiqJiAXjzUXWoN/PY9BqPvlHSmUMQr8/ywLADX6wK 5dkklbpwsMJrhU+PKqNX8yetAcWKEIxCNkLbZtyDp8RWOXL7+Pw+zAWCwUq/e9YVgfjS 4l/3K5NHKbLfEm9AaJr5QYVIv1jYKC256+ybLrOAYbCCWS70ziP+7gu49I08CuzSwBV3 VQvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=M1zDMB0DAlZ4tqqA5sC6rkDK3Qj8kz1VtQd8ooHRq54=; b=znjE24lcs+1h5FSsAbtcvKVJQ1SZwL/EeFLYbvViaVNCMBpexQII/dYQFhAVmAQRtx s0gXsk4folgaXefQ06S14woTrZKP/EJpXMTYZ3O+pTZFFWAtvfpPjouG1+dxcE9CHrne m3qF32BwC8JsNcCPhjkoRnNJMX1u6cOKx1A47y15sHCUUo5LQ0Pm4W2tAXUGeYhkT5j5 hskrwqIJFLfRUwbjWQZAgy4vQy+l45++A65m/zgTPGO+Nuzaw5g3uiZq3pWivGcaJCt/ GYf5ku9jgvkUxfklbqR4yKGUB2JN3DfqGek8zn4ks8+WZtEp1xCiQSbMj0VOiQY7x7/s GCHQ== 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 z32-20020a056a001da000b0056e3a9809f5si3024355pfw.56.2022.11.18.01.45.42; Fri, 18 Nov 2022 01:45:57 -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 S242073AbiKRJlt (ORCPT <rfc822;kkmonlee@gmail.com> + 99 others); Fri, 18 Nov 2022 04:41:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242075AbiKRJlI (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 18 Nov 2022 04:41:08 -0500 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 855C240441 for <linux-kernel@vger.kernel.org>; Fri, 18 Nov 2022 01:40:33 -0800 (PST) Received: from loongson.cn (unknown [113.200.148.30]) by gateway (Coremail) with SMTP id _____8Dx_NgQU3djApQIAA--.24156S3; Fri, 18 Nov 2022 17:40:32 +0800 (CST) Received: from linux.localdomain (unknown [113.200.148.30]) by localhost.localdomain (Coremail) with SMTP id AQAAf8CxLuINU3djeXMWAA--.59010S2; Fri, 18 Nov 2022 17:40:30 +0800 (CST) From: Tiezhu Yang <yangtiezhu@loongson.cn> To: Michael Ellerman <mpe@ellerman.id.au>, Nicholas Piggin <npiggin@gmail.com>, Christophe Leroy <christophe.leroy@csgroup.eu> Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH] powerpc: Use "grep -E" instead of "egrep" Date: Fri, 18 Nov 2022 17:40:29 +0800 Message-Id: <1668764429-11540-1-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 X-CM-TRANSID: AQAAf8CxLuINU3djeXMWAA--.59010S2 X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjvJXoW7uFWUCFyxZFykWw1UWw1ftFb_yoW8JF4xpa yvgrn7tws3ArykJF4UtF43XrW7trn5Aa1rX3y8K397ArsxXas3ZF1fXFs2qF47XrWkA3s5 ArZ3K34qvwsxuaDanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCTnIWj qI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUIcSsGvfJTRUUU b28YFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20xvaj40_Wr0E3s 1l1IIY67AEw4v_Jrv_JF1l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxSw2x7M28EF7xv wVC0I7IYx2IY67AKxVWUCVW8JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxVW8JVWxJwA2z4 x0Y4vEx4A2jsIE14v26r4UJVWxJr1l84ACjcxK6I8E87Iv6xkF7I0E14v26r4UJVWxJr1l e2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44I27wAqx4xG64xvF2 IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_JF0_Jw1lYx0Ex4A2jsIE14v26r4j6F4U McvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCF04k20xvY0x0EwIxGrwCFx2 IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v2 6r106r1rMI8E67AF67kF1VAFwI0_JF0_Jw1lIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67 AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcVCF04k26cxKx2IY s7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r4j6F4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr 0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x07jOb18UUUUU= 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?1749826674794766500?= X-GMAIL-MSGID: =?utf-8?q?1749826674794766500?= |
Series |
powerpc: Use "grep -E" instead of "egrep"
|
|
Commit Message
Tiezhu Yang
Nov. 18, 2022, 9:40 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 arch/powerpc`
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>
---
arch/powerpc/boot/wrapper | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Fri, 18 Nov 2022 17:40:29 +0800, 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 arch/powerpc` > > [...] Applied to powerpc/next. [1/1] powerpc: Use "grep -E" instead of "egrep" https://git.kernel.org/powerpc/c/a9ffb8ee7b65a468474d6a2be7e9cca4b8f8ea5f cheers
diff --git a/arch/powerpc/boot/wrapper b/arch/powerpc/boot/wrapper index 5bdd4dd..a86ae11 100755 --- a/arch/powerpc/boot/wrapper +++ b/arch/powerpc/boot/wrapper @@ -581,7 +581,7 @@ ps3) # reached, then enter the system reset vector of the partially decompressed # image. No warning is issued. rm -f "$odir"/{otheros,otheros-too-big}.bld - size=$(${CROSS}nm --no-sort --radix=d "$ofile" | egrep ' _end$' | cut -d' ' -f1) + size=$(${CROSS}nm --no-sort --radix=d "$ofile" | grep -E ' _end$' | cut -d' ' -f1) bld="otheros.bld" if [ $size -gt $((0x1000000)) ]; then bld="otheros-too-big.bld"