Skip to content

Commit a5359dd

Browse files
Dirk Müllerliu-song-6
authored andcommitted
lib/raid6/test: fix multiple definition linking error
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>
1 parent daae161 commit a5359dd

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/raid6/test/test.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#define NDISKS 16 /* Including P and Q */
2020

2121
const char raid6_empty_zero_page[PAGE_SIZE] __attribute__((aligned(PAGE_SIZE)));
22-
struct raid6_calls raid6_call;
2322

2423
char *dataptrs[NDISKS];
2524
char data[NDISKS][PAGE_SIZE] __attribute__((aligned(PAGE_SIZE)));

0 commit comments

Comments
 (0)