lib/raid6/test: fix multiple definition linking error
authorDirk Müller <dmueller@suse.de>
Tue, 8 Feb 2022 16:50:50 +0000 (17:50 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Apr 2022 07:08:12 +0000 (09:08 +0200)
commit1c01f607228829b12481e62ad7ce61d249b466b1
tree9f3644b8ebd97e3883110937ffd64f7d84b86fc0
parent4339a4a6ae4866a16907b2cb02125e0cc98db3c9
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>
lib/raid6/test/test.c