Re: [PATCH v2] lib/raid6/test: fix multiple definition linking error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Feb 8, 2022 at 8:51 AM Dirk Müller <dmueller@xxxxxxx> wrote:
>
> 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@xxxxxxxxxxxxxxx>
> Signed-off-by: Dirk Müller <dmueller@xxxxxxx>
> Reviewed-by: Paul Menzel <pmenzel@xxxxxxxxxxxxx>

Applied to md-next. Thanks!

Song




[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux