From patchwork Thu Aug 10 12:15:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Jones X-Patchwork-Id: 1819812 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=kcsoHeEj; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ventanamicro.com header.i=@ventanamicro.com header.a=rsa-sha256 header.s=google header.b=Q9TdYYjf; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4RM5Vd2l9nz1yYC for ; Thu, 10 Aug 2023 22:15:53 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=8x+uKOk6rk5WUGDLJ3kGSxSX5Sym0QZKVw8vW+cv9ZY=; b=kcsoHeEj0e/krg bEv+3RvySXlIefg9l90asHott3oUJkq4ijHSF9sHL5xj3QVD3SX2cs/5QnmNhIcwB9egcEN6MEKqr nzxN3GAmuvAp7jn691nLumKHboUIsJvjT6FwHMh7zZw1MPHzm+CETwJhnsZfTsiBwxuMwRqezCDy8 60YJUSZsHjmrYUR+rB14Vzda4Ath/02nEHNinWAqbOOmELgyAi2KQtZI5GXBOzHX4ud0th6T8TW+a 5RDtl70MIDMZFM6Wax29f4Pu0Nyj49FIES0N9w9FcczftSzbTZ8hGsNfTrLUPVdmqyLUi6KFuq8ua jJpB9qPdZ+XCQu5mN+Yw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qU4Zi-007YvD-1r; Thu, 10 Aug 2023 12:15:34 +0000 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qU4Zg-007YuW-0Y for opensbi@lists.infradead.org; Thu, 10 Aug 2023 12:15:33 +0000 Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-51cff235226so1783305a12.0 for ; Thu, 10 Aug 2023 05:15:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1691669728; x=1692274528; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=HhPm4XniQnLTZmvRs5SF/QH1XuKKmxFSH7LbffQYznE=; b=Q9TdYYjfIzvrVLmzNFhqMOxRM4LYzP2c1pEieytoXKskiqr3WPGat5e2qObDug2riZ 3Zwr75xeTBgqFf1O6IZMMOezYlD6E2s4w3jcMQh5pQMMyAYP3j+hKeUQvCRQw64BhxEV S8Mbbu81lTU3CWFbi4qBsNuYHND1e1qfZ5UYfMKhXVGcvHqF78JmZW7pix/rtJCAmuhm YThgxujh7E1rukFyKSAd55rdBLXvg/j7l7D9Tq9YaZWOV5F03T7vm6hnxpNkufuEDKPv wiirB7B4CGnEtiX7rO7a26BtB4dyQ8T5g6IfbByNbZt0gQUeZkPN5m2yno7DzihtmMw1 a04g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691669728; x=1692274528; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=HhPm4XniQnLTZmvRs5SF/QH1XuKKmxFSH7LbffQYznE=; b=YabLqBWArEbosG42UMN58N2AahfHUHGNyVXy0CTgZpQW9Y9qxcBU4CoLph/Ygihgaz rfK8BkAZkGIWQN/sRz3B9MAMtmJ9GoQguQdA/vaglW616lfIlByRWNMaq/ou+aUWhzKb ydJJ0esC88DV7ZfMA9pQWqxB9kSv5V73xYONleADZfGbuHlYOnCTq+KnLlpQ9mpZ6oT6 OCAsJ2tZmwV4W0l72tCTooGcfdf89I/Q7fGfCG9Aitsk/OUbz9frpzGQrmA9c3UH37u6 DJvw5Q+p9FsxM6+cDTHQjLlBpap3XnJmkrF6lrBYP8QlgeLTRAQYUtOgYDnjFRRjSTuH 96PQ== X-Gm-Message-State: AOJu0YxCRlJ53+XyE/KwkKME3fvn+VG0x4Qywozdi4vj2yIen2NuwYXV qr1/5kpLD4fZxlCYXXFEM+fMgCoWZPsS93fdk/EASA== X-Google-Smtp-Source: AGHT+IFROk1rVd6f6IHs9VK8ywGp/6hitSaPwckeEzhnarypNQ/7ywlBS4vyccHne8NRSN45GtWPug== X-Received: by 2002:a05:6402:b19:b0:521:d2ab:e4df with SMTP id bm25-20020a0564020b1900b00521d2abe4dfmr2449372edb.19.1691669728328; Thu, 10 Aug 2023 05:15:28 -0700 (PDT) Received: from localhost (2001-1ae9-1c2-4c00-20f-c6b4-1e57-7965.ip6.tmcz.cz. [2001:1ae9:1c2:4c00:20f:c6b4:1e57:7965]) by smtp.gmail.com with ESMTPSA id m4-20020aa7c2c4000000b0051e0be09297sm748679edp.53.2023.08.10.05.15.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 05:15:27 -0700 (PDT) From: Andrew Jones To: opensbi@lists.infradead.org Cc: schwab@suse.de, Anup Patel , Atish Patra Subject: [PATCH v2] Makefile: Fix grep warning Date: Thu, 10 Aug 2023 14:15:28 +0200 Message-ID: <20230810121527.62217-2-ajones@ventanamicro.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230810_051532_210234_D2F7F308 X-CRM114-Status: UNSURE ( 8.86 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: grep (at least my version, grep-3.8-3.fc38.x86_64) warns with "grep: warning: stray \ before -". Fix the warning by making the command line input to grep less ambiguous. Signed-off-by: Andrew Jones --- v2: Use -e instead of -- [Andreas] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:533 listed in] [list.dnswl.org] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: opensbi@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "opensbi" Errors-To: opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org grep (at least my version, grep-3.8-3.fc38.x86_64) warns with "grep: warning: stray \ before -". Fix the warning by making the command line input to grep less ambiguous. Signed-off-by: Andrew Jones Reviewed-by: Anup Patel --- v2: Use -e instead of -- [Andreas] Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 730dbd910e51..ca70949df480 100644 --- a/Makefile +++ b/Makefile @@ -168,7 +168,7 @@ endif OPENSBI_LD_PIE := $(shell $(CC) $(CLANG_TARGET) $(RELAX_FLAG) $(USE_LD_FLAG) -fPIE -nostdlib -Wl,-pie -x c /dev/null -o /dev/null >/dev/null 2>&1 && echo y || echo n) # Check whether the compiler supports -m(no-)save-restore -CC_SUPPORT_SAVE_RESTORE := $(shell $(CC) $(CLANG_TARGET) $(RELAX_FLAG) -nostdlib -mno-save-restore -x c /dev/null -o /dev/null 2>&1 | grep "\-save\-restore" >/dev/null && echo n || echo y) +CC_SUPPORT_SAVE_RESTORE := $(shell $(CC) $(CLANG_TARGET) $(RELAX_FLAG) -nostdlib -mno-save-restore -x c /dev/null -o /dev/null 2>&1 | grep -e "-save-restore" >/dev/null && echo n || echo y) # Check whether the assembler and the compiler support the Zicsr and Zifencei extensions CC_SUPPORT_ZICSR_ZIFENCEI := $(shell $(CC) $(CLANG_TARGET) $(RELAX_FLAG) -nostdlib -march=rv$(OPENSBI_CC_XLEN)imafd_zicsr_zifencei -x c /dev/null -o /dev/null 2>&1 | grep "zicsr\|zifencei" > /dev/null && echo n || echo y)