diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-03-08 09:08:16 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-03-08 09:08:16 +0100 |
| commit | 7308d54a0eeec1a55fa0cb4f759c7eb6fa1f2527 (patch) | |
| tree | d5a2d5a693b8d3519a483ceaace424251809b4fc /lib-raid6-fix-awk-build-warnings.patch | |
| parent | 80f9fa9624df530d0e0623a764491b43f0ae78bc (diff) | |
| download | patches-7308d54a0eeec1a55fa0cb4f759c7eb6fa1f2527.tar.gz | |
patches update
Diffstat (limited to 'lib-raid6-fix-awk-build-warnings.patch')
| -rw-r--r-- | lib-raid6-fix-awk-build-warnings.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/lib-raid6-fix-awk-build-warnings.patch b/lib-raid6-fix-awk-build-warnings.patch new file mode 100644 index 00000000000000..bf0caf4aee0fd6 --- /dev/null +++ b/lib-raid6-fix-awk-build-warnings.patch @@ -0,0 +1,33 @@ +From foo@baz Fri 06 Dec 2019 04:20:42 PM CET +Date: Fri, 06 Dec 2019 16:20:42 +0100 +To: Greg KH <gregkh@linuxfoundation.org> +From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> +Subject: [PATCH] lib: raid6: fix awk build warnings + +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 700c1018b86d ("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. + +Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> +--- + lib/raid6/unroll.awk | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/lib/raid6/unroll.awk ++++ b/lib/raid6/unroll.awk +@@ -13,7 +13,7 @@ BEGIN { + for (i = 0; i < rep; ++i) { + tmp = $0 + gsub(/\$\$/, i, tmp) +- gsub(/\$\#/, n, tmp) ++ gsub(/\$#/, n, tmp) + gsub(/\$\*/, "$", tmp) + print tmp + } |
