lkml.org 
[lkml]   [2008]   [Apr]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 7/7] asm-generic: suppress sparse warning in ioctl.h
On Wed, Apr 02, 2008 at 07:51:08PM -0700, Linus Torvalds wrote:
>
>
> On Thu, 3 Apr 2008, Al Viro wrote:
> >
> > Um... But that's _not_ a link-time constant - simply an int variable not
> > defined in any object file...
>
> Ahh, you're right, my bad. We could change it to take the address of it,
> though. I assume gcc is happy with that too?

gcc might be, but what are you going to do with it? Expression is an
integer one, after all - in cases that had triggered that thread it
was used (after & 0xff) as array index.

Besides, logically it's _not_ a constant at all - not even a base + constant,
after using it in such expression...


\
 
 \ /
  Last update: 2008-04-03 04:59    [W:0.344 / U:0.784 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site