On Tue, Mar 16, 2021 at 09:32:32AM +0100, Christophe Leroy wrote:
I cannot see through the wood of #defines here, sorry.
Still a problem.
I don't understand, gcc bug ?
Rule #1: If you do not understand what is happening, it is not a
compiler bug. I'm not saying that it isn't, just that it is much more
likely something else.
The offending argument is 'const ptrdiff_t object_index'
So this is a 64-bit build.
include/linux/types.h:typedef __kernel_ptrdiff_t ptrdiff_t;
In file included from ./include/linux/printk.h:7,
mm/kfence/report.c: In function 'kfence_report_error':
./include/linux/kern_levels.h:5:18: warning: format '%td' expects argument
of type 'ptrdiff_t', but argument 6 has type 'long int' [-Wformat=]
This is declared as
const ptrdiff_t object_index = meta ? meta - kfence_metadata : -1;
so maybe something with that goes wrong? What happens if you delete the
(useless) "const" here?