summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDirk Müller <dmueller@suse.de>2022-02-08 17:50:50 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-04-20 09:06:30 +0200
commit6f0d11bfbbfa0533924a04c6dbe7f0a2587fe7d3 (patch)
tree2d3b84d9b2be8460f03560b690e091598c40bb0a /lib
parent1c91fa481686c918abc03b8bb3533859d8ddfa9c (diff)
downloadlinux-stable-6f0d11bfbbfa0533924a04c6dbe7f0a2587fe7d3.tar.gz
linux-stable-6f0d11bfbbfa0533924a04c6dbe7f0a2587fe7d3.tar.bz2
linux-stable-6f0d11bfbbfa0533924a04c6dbe7f0a2587fe7d3.zip
lib/raid6/test: fix multiple definition linking error
commit a5359ddd052860bacf957e65fe819c63e974b3a6 upstream. GCC 10+ defaults to -fno-common, which enforces proper declaration of external references using "extern". without this change a link would fail with: lib/raid6/test/algos.c:28: multiple definition of `raid6_call'; lib/raid6/test/test.c:22: first defined here the pq.h header that is included already includes an extern declaration so we can just remove the redundant one here. Cc: <stable@vger.kernel.org> Signed-off-by: Dirk Müller <dmueller@suse.de> Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de> Signed-off-by: Song Liu <song@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/raid6/test/test.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/raid6/test/test.c b/lib/raid6/test/test.c
index b07f4d8e6b03..a7e937248299 100644
--- a/lib/raid6/test/test.c
+++ b/lib/raid6/test/test.c
@@ -22,7 +22,6 @@
#define NDISKS 16 /* Including P and Q */
const char raid6_empty_zero_page[PAGE_SIZE] __attribute__((aligned(PAGE_SIZE)));
-struct raid6_calls raid6_call;
char *dataptrs[NDISKS];
char data[NDISKS][PAGE_SIZE] __attribute__((aligned(PAGE_SIZE)));