[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <14b269f1-a9d2-3083-00d7-c23368f135e9@suse.com>
Date: Wed, 10 Mar 2021 10:22:16 +0100
From: Jan Beulich <jbeulich@...e.com>
To: Andy Lutomirski <luto@...nel.org>
Cc: lkml <linux-kernel@...r.kernel.org>,
the arch/x86 maintainers <x86@...nel.org>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>, Borislav Petkov <bp@...en8.de>
Subject: [PATCH] x86/vdso: avoid warning when building vdso2c on 32-bit host
size_t arguments can't compatibly be passed for l-modifier format
specifiers. Use z instead.
Fixes: 8382c668ce4f ("x86/vdso: Add support for exception fixup in vDSO functions")
Signed-off-by: Jan Beulich <jbeulich@...e.com>
--- a/arch/x86/entry/vdso/vdso2c.h
+++ b/arch/x86/entry/vdso/vdso2c.h
@@ -35,7 +35,7 @@ static void BITSFUNC(extract)(const unsi
if (offset + len > data_len)
fail("section to extract overruns input data");
- fprintf(outfile, "static const unsigned char %s[%lu] = {", name, len);
+ fprintf(outfile, "static const unsigned char %s[%zu] = {", name, len);
BITSFUNC(copy)(outfile, data + offset, len);
fprintf(outfile, "\n};\n\n");
}
Powered by blists - more mailing lists