2023-01-30 12:17:09

by Sudip Mukherjee

[permalink] [raw]
Subject: mainline build failure on arm hosts

Hi All,

The mainline kernel branch had been failing native build on arm hosts
for some weeks with the error:

drivers/crypto/caam/desc_constr.h: In function 'append_data.constprop':
./include/linux/fortify-string.h:57:29: error: argument 2 null where non-null expected [-Werror=nonnull]
57 | #define __underlying_memcpy __builtin_memcpy
| ^
./include/linux/fortify-string.h:578:2: note: in expansion of macro '__underlying_memcpy'
578 | __underlying_##op(p, q, __fortify_size); \
| ^~~~~~~~~~~~~
./include/linux/fortify-string.h:623:26: note: in expansion of macro '__fortify_memcpy_chk'
623 | #define memcpy(p, q, s) __fortify_memcpy_chk(p, q, s, \
| ^~~~~~~~~~~~~~~~~~~~
drivers/crypto/caam/desc_constr.h:167:3: note: in expansion of macro 'memcpy'
167 | memcpy(offset, data, len);
| ^~~~~~
./include/linux/fortify-string.h:57:29: note: in a call to built-in function '__builtin_memcpy'
57 | #define __underlying_memcpy __builtin_memcpy
| ^
./include/linux/fortify-string.h:578:2: note: in expansion of macro '__underlying_memcpy'
578 | __underlying_##op(p, q, __fortify_size); \
| ^~~~~~~~~~~~~
./include/linux/fortify-string.h:623:26: note: in expansion of macro '__fortify_memcpy_chk'
623 | #define memcpy(p, q, s) __fortify_memcpy_chk(p, q, s, \
| ^~~~~~~~~~~~~~~~~~~~
drivers/crypto/caam/desc_constr.h:167:3: note: in expansion of macro 'memcpy'
167 | memcpy(offset, data, len);
| ^~~~~~
cc1: all warnings being treated as errors


The commit 4f289826fee0 ("crypto: caam - Avoid GCC memset bug warning")
in linux-next fixes the build.


--
Regards
Sudip


2023-02-18 10:51:50

by Sudip Mukherjee

[permalink] [raw]
Subject: Re: mainline build failure on arm hosts

On Mon, 30 Jan 2023 at 12:17, Sudip Mukherjee
<[email protected]> wrote:
>
> Hi All,
>
> The mainline kernel branch had been failing native build on arm hosts
> for some weeks with the error:

This build failure is still present.


--
Regards
Sudip