From: Jarkko Sakkinen <jarkko@kernel.org>
To: Mikulas Patocka <mpatocka@redhat.com>
Cc: Sean Christopherson <sean.j.christopherson@intel.com>,
Andy Lutomirski <luto@amacapital.net>,
Borislav Petkov <bp@suse.de>,
Jethro Beekman <jethro@fortanix.com>,
x86@kernel.org, linux-sgx@vger.kernel.org
Subject: Re: [PATCH] x86/vdso: fix a warning with x32 compiler
Date: Mon, 25 Jan 2021 19:14:08 +0200 [thread overview]
Message-ID: <YA78YPVWsE6WNHhd@kernel.org> (raw)
In-Reply-To: <alpine.LRH.2.02.2101230548050.21951@file01.intranet.prod.int.rdu2.redhat.com>
On Sat, Jan 23, 2021 at 05:50:31AM -0500, Mikulas Patocka wrote:
> 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@redhat.com>
> Fixes: 8382c668ce4f ("x86/vdso: Add support for exception fixup in vDSO functions")
So... Why not %zu?
/Jarkko
next prev parent reply other threads:[~2021-01-25 17:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-23 10:50 [PATCH] x86/vdso: fix a warning with x32 compiler Mikulas Patocka
2021-01-25 17:14 ` Jarkko Sakkinen [this message]
2021-01-25 17:26 ` Mikulas Patocka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YA78YPVWsE6WNHhd@kernel.org \
--to=jarkko@kernel.org \
--cc=bp@suse.de \
--cc=jethro@fortanix.com \
--cc=linux-sgx@vger.kernel.org \
--cc=luto@amacapital.net \
--cc=mpatocka@redhat.com \
--cc=sean.j.christopherson@intel.com \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox