Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1478492 > unrolled thread

drivers/gpu/drm/i915/intel_display.c:2954:11: warning: cast to pointer

Started byNick Warne <nick@linicks.net>
First post2016-09-07 18:50 +0200
Last post2016-09-09 15:00 +0200
Articles 5 — 2 participants

Back to article view | Back to linux.kernel


Contents

  drivers/gpu/drm/i915/intel_display.c:2954:11: warning: cast to  pointer Nick Warne <nick@linicks.net> - 2016-09-07 18:50 +0200
    Re: drivers/gpu/drm/i915/intel_display.c:2954:11: warning: cast to  pointer Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2016-09-08 08:30 +0200
      Re: drivers/gpu/drm/i915/intel_display.c:2954:11: warning: cast to  pointer Nick Warne <nick@linicks.net> - 2016-09-08 18:10 +0200
        Re: drivers/gpu/drm/i915/intel_display.c:2954:11: warning: cast to  pointer Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2016-09-09 14:00 +0200
          Re: drivers/gpu/drm/i915/intel_display.c:2954:11: warning: cast to  pointer Nick Warne <nick@linicks.net> - 2016-09-09 15:00 +0200

#1478492 — drivers/gpu/drm/i915/intel_display.c:2954:11: warning: cast to pointer

FromNick Warne <nick@linicks.net>
Date2016-09-07 18:50 +0200
Subjectdrivers/gpu/drm/i915/intel_display.c:2954:11: warning: cast to pointer
Message-ID<seOcW-2cL-27@gated-at.bofh.it>
Hi Daniel,

kernel build 4.4.20 - I am still seeing this warning:

drivers/gpu/drm/i915/intel_display.c: In function
‘intel_plane_obj_offset’: drivers/gpu/drm/i915/intel_display.c:2969:11:
warning: cast to pointer from integer of different size
[-Wint-to-pointer-cast] offset = (unsigned char *)vma->node.start;

but according to here:

https://patchwork.kernel.org/patch/7897461/

this has been fixed up.  Any reason why it hasn't in the latest 4.4.x
longterm tree?

Thanks,

Nick
-- 
Gosh that takes me back... or is it forward?  That's the trouble with
time travel, you never can tell."
		-- Doctor Who "Androids of Tara"

[toc] | [next] | [standalone]


#1478788

FromGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Date2016-09-08 08:30 +0200
Message-ID<sf10t-2cU-15@gated-at.bofh.it>
In reply to#1478492
On Wed, Sep 07, 2016 at 05:38:52PM +0100, Nick Warne wrote:
> Hi Daniel,
> 
> kernel build 4.4.20 - I am still seeing this warning:
> 
> drivers/gpu/drm/i915/intel_display.c: In function
> ‘intel_plane_obj_offset’: drivers/gpu/drm/i915/intel_display.c:2969:11:
> warning: cast to pointer from integer of different size
> [-Wint-to-pointer-cast] offset = (unsigned char *)vma->node.start;
> 
> but according to here:
> 
> https://patchwork.kernel.org/patch/7897461/
> 
> this has been fixed up.  Any reason why it hasn't in the latest 4.4.x
> longterm tree?

What is the commit id that fixed this in Linus's tree?

thanks,

greg k-h

[toc] | [prev] | [next] | [standalone]


#1479352

FromNick Warne <nick@linicks.net>
Date2016-09-08 18:10 +0200
Message-ID<sfa3M-7ZV-3@gated-at.bofh.it>
In reply to#1478788
On Thu, 8 Sep 2016 08:29:37 +0200
Greg Kroah-Hartman <gregkh@linuxfoundation.org> wrote:

> On Wed, Sep 07, 2016 at 05:38:52PM +0100, Nick Warne wrote:
> > Hi Daniel,
> > 
> > kernel build 4.4.20 - I am still seeing this warning:
> > 
> > drivers/gpu/drm/i915/intel_display.c: In function
> > ‘intel_plane_obj_offset’:
> > drivers/gpu/drm/i915/intel_display.c:2969:11: warning: cast to
> > pointer from integer of different size [-Wint-to-pointer-cast]
> > offset = (unsigned char *)vma->node.start;
> > 
> > but according to here:
> > 
> > https://patchwork.kernel.org/patch/7897461/
> > 
> > this has been fixed up.  Any reason why it hasn't in the latest
> > 4.4.x longterm tree?  
> 
> What is the commit id that fixed this in Linus's tree?

Took me a while to find it if this is it - a bit of a re-write in the
whole file I think:

https://github.com/torvalds/linux/commit/44eb0cb9620c6a53ec8e7073262e2af8079b727f

Thanks,

Nick
-- 
Gosh that takes me back... or is it forward?  That's the trouble with
time travel, you never can tell."
		-- Doctor Who "Androids of Tara"

[toc] | [prev] | [next] | [standalone]


#1479918

FromGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Date2016-09-09 14:00 +0200
Message-ID<sfsDn-2kg-1@gated-at.bofh.it>
In reply to#1479352
On Thu, Sep 08, 2016 at 04:59:53PM +0100, Nick Warne wrote:
> On Thu, 8 Sep 2016 08:29:37 +0200
> Greg Kroah-Hartman <gregkh@linuxfoundation.org> wrote:
> 
> > On Wed, Sep 07, 2016 at 05:38:52PM +0100, Nick Warne wrote:
> > > Hi Daniel,
> > > 
> > > kernel build 4.4.20 - I am still seeing this warning:
> > > 
> > > drivers/gpu/drm/i915/intel_display.c: In function
> > > ‘intel_plane_obj_offset’:
> > > drivers/gpu/drm/i915/intel_display.c:2969:11: warning: cast to
> > > pointer from integer of different size [-Wint-to-pointer-cast]
> > > offset = (unsigned char *)vma->node.start;
> > > 
> > > but according to here:
> > > 
> > > https://patchwork.kernel.org/patch/7897461/
> > > 
> > > this has been fixed up.  Any reason why it hasn't in the latest
> > > 4.4.x longterm tree?  
> > 
> > What is the commit id that fixed this in Linus's tree?
> 
> Took me a while to find it if this is it - a bit of a re-write in the
> whole file I think:
> 
> https://github.com/torvalds/linux/commit/44eb0cb9620c6a53ec8e7073262e2af8079b727f

Ick, messy.

Why not just use 4.7?  Why are you stuck at 4.4?

And is this a real bug in 4.4 or just a build warning?

thanks,

greg k-h

[toc] | [prev] | [next] | [standalone]


#1479970

FromNick Warne <nick@linicks.net>
Date2016-09-09 15:00 +0200
Message-ID<sftzr-2Vd-1@gated-at.bofh.it>
In reply to#1479918
On Fri, 9 Sep 2016 13:55:45 +0200
Greg Kroah-Hartman <gregkh@linuxfoundation.org> wrote:

> On Thu, Sep 08, 2016 at 04:59:53PM +0100, Nick Warne wrote:
> > On Thu, 8 Sep 2016 08:29:37 +0200
> > Greg Kroah-Hartman <gregkh@linuxfoundation.org> wrote:
> >   
> > > On Wed, Sep 07, 2016 at 05:38:52PM +0100, Nick Warne wrote:  
> > > > Hi Daniel,
> > > > 
> > > > kernel build 4.4.20 - I am still seeing this warning:
> > > > 
> > > > drivers/gpu/drm/i915/intel_display.c: In function
> > > > ‘intel_plane_obj_offset’:
> > > > drivers/gpu/drm/i915/intel_display.c:2969:11: warning: cast to
> > > > pointer from integer of different size [-Wint-to-pointer-cast]
> > > > offset = (unsigned char *)vma->node.start;
> > > > 
> > > > but according to here:
> > > > 
> > > > https://patchwork.kernel.org/patch/7897461/
> > > > 
> > > > this has been fixed up.  Any reason why it hasn't in the latest
> > > > 4.4.x longterm tree?    
> > > 
> > > What is the commit id that fixed this in Linus's tree?  
> > 
> > Took me a while to find it if this is it - a bit of a re-write in
> > the whole file I think:
> > 
> > https://github.com/torvalds/linux/commit/44eb0cb9620c6a53ec8e7073262e2af8079b727f  
> 
> Ick, messy.
> 
> Why not just use 4.7?  Why are you stuck at 4.4?

I only recently moved over to 4.4 from 3.18.x as it's longterm
support. I may try 4.7 over the weekend - or maybe even just use the
patchwork diff on my own local builds.

> And is this a real bug in 4.4 or just a build warning?

No, it's not a bug (that I have found or seen, anyway), just GCC
squinnying.

Thanks for your help, and sorry for the noise.

Nick
-- 
Gosh that takes me back... or is it forward?  That's the trouble with
time travel, you never can tell."
		-- Doctor Who "Androids of Tara"

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web