All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] efifb: fix int to pointer cast warning
@ 2011-04-19  9:47 Konstantin Khlebnikov
  2011-04-19 14:22 ` Peter Jones
  2011-04-20  9:24 ` Paul Mundt
  0 siblings, 2 replies; 3+ messages in thread
From: Konstantin Khlebnikov @ 2011-04-19  9:47 UTC (permalink / raw)
  To: linux-fbdev

drivers/video/efifb.c:247: warning: cast to pointer from integer of different size

Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org>
---
 drivers/video/efifb.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/video/efifb.c b/drivers/video/efifb.c
index 4eb38db..fb20584 100644
--- a/drivers/video/efifb.c
+++ b/drivers/video/efifb.c
@@ -242,9 +242,9 @@ static int set_system(const struct dmi_system_id *id)
 		return 0;
 	}
 
-	printk(KERN_INFO "efifb: dmi detected %s - framebuffer at %p "
+	printk(KERN_INFO "efifb: dmi detected %s - framebuffer at 0x%08x "
 			 "(%dx%d, stride %d)\n", id->ident,
-			 (void *)screen_info.lfb_base, screen_info.lfb_width,
+			 screen_info.lfb_base, screen_info.lfb_width,
 			 screen_info.lfb_height, screen_info.lfb_linelength);
 
 


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

* Re: [PATCH] efifb: fix int to pointer cast warning
  2011-04-19  9:47 [PATCH] efifb: fix int to pointer cast warning Konstantin Khlebnikov
@ 2011-04-19 14:22 ` Peter Jones
  2011-04-20  9:24 ` Paul Mundt
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Jones @ 2011-04-19 14:22 UTC (permalink / raw)
  To: linux-fbdev

On 04/19/2011 05:47 AM, Konstantin Khlebnikov wrote:
> drivers/video/efifb.c:247: warning: cast to pointer from integer of different size
> 
> Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org>

Looks fine to me:

Signed-off-by: Peter Jones <pjones@redhat.com>

> ---
>  drivers/video/efifb.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/video/efifb.c b/drivers/video/efifb.c
> index 4eb38db..fb20584 100644
> --- a/drivers/video/efifb.c
> +++ b/drivers/video/efifb.c
> @@ -242,9 +242,9 @@ static int set_system(const struct dmi_system_id *id)
>  		return 0;
>  	}
>  
> -	printk(KERN_INFO "efifb: dmi detected %s - framebuffer at %p "
> +	printk(KERN_INFO "efifb: dmi detected %s - framebuffer at 0x%08x "
>  			 "(%dx%d, stride %d)\n", id->ident,
> -			 (void *)screen_info.lfb_base, screen_info.lfb_width,
> +			 screen_info.lfb_base, screen_info.lfb_width,
>  			 screen_info.lfb_height, screen_info.lfb_linelength);
>  
>  
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-fbdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


-- 
        Peter

Hardware simply does not work like the manual says and no amount
of Zen contemplation will ever make you at one with a 3c905B ethernet card.
		-- Alan

01234567890123456789012345678901234567890123456789012345678901234567890123456789

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

* Re: [PATCH] efifb: fix int to pointer cast warning
  2011-04-19  9:47 [PATCH] efifb: fix int to pointer cast warning Konstantin Khlebnikov
  2011-04-19 14:22 ` Peter Jones
@ 2011-04-20  9:24 ` Paul Mundt
  1 sibling, 0 replies; 3+ messages in thread
From: Paul Mundt @ 2011-04-20  9:24 UTC (permalink / raw)
  To: linux-fbdev

On Tue, Apr 19, 2011 at 10:22:14AM -0400, Peter Jones wrote:
> On 04/19/2011 05:47 AM, Konstantin Khlebnikov wrote:
> > drivers/video/efifb.c:247: warning: cast to pointer from integer of different size
> > 
> > Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org>
> 
> Looks fine to me:
> 
> Signed-off-by: Peter Jones <pjones@redhat.com>
> 
Applied, thanks.

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

end of thread, other threads:[~2011-04-20  9:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-19  9:47 [PATCH] efifb: fix int to pointer cast warning Konstantin Khlebnikov
2011-04-19 14:22 ` Peter Jones
2011-04-20  9:24 ` Paul Mundt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.