Re: [mdadm PATCH 2/3] Fix one building error related with memcpy

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

 



On 06/06/2018 03:07 AM, Xiao Ni wrote:
> I encounter one building error, such as:
> In file included from /usr/include/string.h:494,
>                  from mdadm.h:46,
>                  from super0.c:26:
> In function 'memcpy',
>     inlined from 'update_super0' at super0.c:523:3:
> /usr/include/bits/string_fortified.h:34:10: error: '__builtin_memcpy' accessing 3936 bytes at offsets 156 and 160 overlaps 3932 bytes at offset 160 [-Werror=restrict]
>    return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
>           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> This patch adds a temporary to fix this problem.
> 
> Signed-off-by: Xiao Ni <xni@xxxxxxxxxx>
> ---
>  super0.c | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)

Fixed in 2dcd6492 - memmove is a cleaner solution than doing two memcpys.

Cheers,
Jes
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[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