From: "Kevin Winchester" <kjwinchester@gmail.com>
To: "David Howells" <dhowells@redhat.com>
Cc: tglx@linutronix.de, linux-kernel@vger.kernel.org,
"Ingo Molnar" <mingo@redhat.com>
Subject: Re: [PATCH] Fix an incompatible pointer type warning on x86_64 compilations
Date: Tue, 10 Jun 2008 09:20:01 -0300 [thread overview]
Message-ID: <d1af83620806100520u4a0110e4y4db27c8fc412500b@mail.gmail.com> (raw)
In-Reply-To: <20080607161840.4803.48478.stgit@warthog.procyon.org.uk>
On Sat, Jun 7, 2008 at 1:18 PM, David Howells <dhowells@redhat.com> wrote:
> Fix an incompatible pointer type warning on x86_64 compilations.
> early_memtest() is passing a u64* to find_e820_area_size() which is expecting
> an unsigned long. Change t_start and t_size to unsigned long as those are
> also 64-bit types on x88_64.
>
> Signed-off-by: David Howells <dhowells@redhat.com>
> ---
>
> arch/x86/mm/init_64.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
>
> diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c
> index 156e6d7..998a06e 100644
> --- a/arch/x86/mm/init_64.c
> +++ b/arch/x86/mm/init_64.c
> @@ -506,7 +506,7 @@ early_param("memtest", parse_memtest);
>
> static void __init early_memtest(unsigned long start, unsigned long end)
> {
> - u64 t_start, t_size;
> + unsigned long t_start, t_size;
> unsigned pattern;
>
> if (!memtest_pattern)
> @@ -525,7 +525,7 @@ static void __init early_memtest(unsigned long start, unsigned long end)
> if (t_start + t_size > end)
> t_size = end - t_start;
>
> - printk(KERN_CONT "\n %016llx - %016llx pattern %d",
> + printk(KERN_CONT "\n %016lx - %016lx pattern %d",
> t_start, t_start + t_size, pattern);
>
> memtest(t_start, t_size, pattern);
>
This is essentially a revert of a patch I sent to Ingo for a warning I
saw in linux-next. Has find_e820_area_size() changed in linux-next to
take u64 instead of unsigned long? In any case, the patch should not
have been submitted to Linus, since it was only in next that I saw the
warning. Sorry for the confusion.
--
Kevin Winchester
prev parent reply other threads:[~2008-06-10 12:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-07 16:18 David Howells
2008-06-10 10:37 ` Ingo Molnar
2008-06-10 12:20 ` Kevin Winchester [this message]
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=d1af83620806100520u4a0110e4y4db27c8fc412500b@mail.gmail.com \
--to=kjwinchester@gmail.com \
--cc=dhowells@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
/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
all inboxes | Powered by JetHome®