lkml.org 
[lkml]   [2006]   [Jul]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: sparse warnings for variable length arrays
On Thu, Jul 13, 2006 at 10:58:08AM +0200, Heiko Carstens wrote:
> Hi all,
>
> in include/asm-s390/bitops.h we have several typedefs:
>
> typedef struct { long _[__BITOPS_WORDS(size)]; } addrtype;
>
> sparse warns about these with "error: bad constant expression".
> Is there any way to tell sparse to be quiet? __force doesn't seem to work.

In many cases, these turn up as on-stack variables. It'd be
nice if sparse could figure out the maximum potential bound
and warn appropriately if they could reach $BIGSIZE.

For non-stack vars, it's less of an issue of course.

Dave

--
http://www.codemonkey.org.uk
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-07-13 19:05    [W:2.979 / U:0.652 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site