This patch fixes a warning: arch/x86/entry/vdso/vdso2c.h:38:52: warning: format ʽ%luʼ expects argument of type ʽlong unsigned intʼ, but argument 4 has type ʽsize_tʼ {aka ʽunsigned intʼ} [-Wformat=] when compiling the kernel with x32 compiler. The reason for the warning is that in x32 mode, size_t is defined as unsigned, not unsigned long. Signed-off-by: Mikulas Patocka <mpatocka@xxxxxxxxxx> Fixes: 8382c668ce4f ("x86/vdso: Add support for exception fixup in vDSO functions") --- arch/x86/entry/vdso/vdso2c.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Index: linux-2.6/arch/x86/entry/vdso/vdso2c.h =================================================================== --- linux-2.6.orig/arch/x86/entry/vdso/vdso2c.h 2021-01-07 17:22:39.000000000 +0100 +++ linux-2.6/arch/x86/entry/vdso/vdso2c.h 2021-01-23 10:44:09.000000000 +0100 @@ -27,10 +27,10 @@ static void BITSFUNC(extract)(const unsi FILE *outfile, ELF(Shdr) *sec, const char *name) { unsigned long offset; - size_t len; + unsigned long len; offset = (unsigned long)GET_LE(&sec->sh_offset); - len = (size_t)GET_LE(&sec->sh_size); + len = GET_LE(&sec->sh_size); if (offset + len > data_len) fail("section to extract overruns input data");