[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20110420092500.GD15898@linux-sh.org>
Date: Wed, 20 Apr 2011 18:25:00 +0900
From: Paul Mundt <lethal@...ux-sh.org>
To: Mike Waychison <mikew@...gle.com>
Cc: Peter Jones <pjones@...hat.com>, linux-fbdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] efifb: Fix "cast to pointer from integer of different size"
On Tue, Apr 19, 2011 at 01:38:03PM -0700, Mike Waychison wrote:
> Fix set_system() to not cause a cast warning when printing a u32 as a
> pointer:
>
> drivers/video/efifb.c: In function 'set_system':
> drivers/video/efifb.c:247: error: cast to pointer from integer of
> different size
>
> Allow the integer to print as a pointer by first casting to unsigned
> long which we know will be the width of a pointer and at least as wide
> as u32.
>
> Signed-off-by: Mike Waychison <mikew@...gle.com>
I've already taken another patch that fixed it a slightly different way,
thanks anyways.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists