]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
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)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 20 May 2022 13:18:28 +0000 (15:18 +0200)
commitd577e5aabb9f44d936f76e827db511395abb64b9
tree5590d4c38265876e77343ee3f1544f5b344917fc
parent72627ba067d1b99f2cbdacc6b794122dc33f4fba
lib/raid6/test: fix multiple definition linking error

BugLink: https://bugs.launchpad.net/bugs/1971497
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
lib/raid6/test/test.c