提交 a3cf3c39 编写于 作者: G Greg Kroah-Hartman 提交者: Xie XiuQi

lib: raid6: fix awk build warnings

commit 702600ee upstream.

Newer versions of awk spit out these fun warnings:
	awk: ../lib/raid6/unroll.awk:16: warning: regexp escape sequence `\#' is not a known regexp operator

As commit 700c1018 ("x86/insn: Fix awk regexp warnings") showed, it
turns out that there are a number of awk strings that do not need to be
escaped and newer versions of awk now warn about this.

Fix the string up so that no warning is produced.  The exact same kernel
module gets created before and after this patch, showing that it wasn't
needed.

Link: https://lore.kernel.org/r/20191206152600.GA75093@kroah.comSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 cf88ebd9
...@@ -13,7 +13,7 @@ BEGIN { ...@@ -13,7 +13,7 @@ BEGIN {
for (i = 0; i < rep; ++i) { for (i = 0; i < rep; ++i) {
tmp = $0 tmp = $0
gsub(/\$\$/, i, tmp) gsub(/\$\$/, i, tmp)
gsub(/\$\#/, n, tmp) gsub(/\$#/, n, tmp)
gsub(/\$\*/, "$", tmp) gsub(/\$\*/, "$", tmp)
print tmp print tmp
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册