Re: [PATCH v1 2/3] mm: Fix benign off-by-one bugs

From: Alejandro Colomar
Date: Mon Nov 10 2025 - 17:06:21 EST


Hi,

On Tue, Nov 11, 2025 at 01:47:19AM +0800, kernel test robot wrote:
> kernel test robot noticed the following build errors:

[...]

> >> mm/kfence/kfence_test.c:113:8: error: call to undeclared function 'ENDOF'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
> 113 | end = ENDOF(expect[0]);
> | ^
> >> mm/kfence/kfence_test.c:113:6: error: incompatible integer to pointer conversion assigning to 'const char *' from 'int' [-Wint-conversion]
> 113 | end = ENDOF(expect[0]);
> | ^ ~~~~~~~~~~~~~~~~
> mm/kfence/kfence_test.c:143:6: error: incompatible integer to pointer conversion assigning to 'const char *' from 'int' [-Wint-conversion]
> 143 | end = ENDOF(expect[1]);
> | ^ ~~~~~~~~~~~~~~~~
> 3 errors generated.

I'm pretty sure I tested this some months ago. I'll test again...


Have a lovely night!
Alex

--
<https://www.alejandro-colomar.es>
Use port 80 (that is, <...:80/>).

Attachment: signature.asc
Description: PGP signature