public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86/vdso: avoid warning when building vdso2c on 32-bit host
@ 2021-03-10  9:22 Jan Beulich
  2021-03-10 11:27 ` Borislav Petkov
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Beulich @ 2021-03-10  9:22 UTC (permalink / raw)
  To: Andy Lutomirski
  Cc: lkml, the arch/x86 maintainers, Thomas Gleixner, Ingo Molnar,
	Borislav Petkov

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@suse.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");
 }

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] x86/vdso: avoid warning when building vdso2c on 32-bit host
  2021-03-10  9:22 [PATCH] x86/vdso: avoid warning when building vdso2c on 32-bit host Jan Beulich
@ 2021-03-10 11:27 ` Borislav Petkov
  0 siblings, 0 replies; 2+ messages in thread
From: Borislav Petkov @ 2021-03-10 11:27 UTC (permalink / raw)
  To: Jan Beulich
  Cc: Andy Lutomirski, lkml, the arch/x86 maintainers, Thomas Gleixner,
	Ingo Molnar

On Wed, Mar 10, 2021 at 10:22:16AM +0100, Jan Beulich wrote:
> 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@suse.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");

Already fixed:

https://git.kernel.org/tip/70c9d959226b7c5c48c119e2c1cfc1424f87b023

Thx.

-- 
Regards/Gruss,
    Boris.

https://people.kernel.org/tglx/notes-about-netiquette

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-03-10 11:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-10  9:22 [PATCH] x86/vdso: avoid warning when building vdso2c on 32-bit host Jan Beulich
2021-03-10 11:27 ` Borislav Petkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox