Re: fs/compat_ioctl.c:1651:2: error: bit-field '<anonymous>' width not an integer constant

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jan 18, 2010 at 12:31:48AM -0700, Grant Grundler wrote:
> fs/compat_ioctl.c:1651:2: error: bit-field '<anonymous>' width not an integer constant
><...>
>  ((void)(sizeof(struct { int:-!!(max >= (1 << 16)); })));
><...> 
> I can't make sense of this since I have no clue what "int:-!!" means.
> 

It basically means what the error above says. :) If the expr evaluates
to non-zero, bound it to 1 (ie: !!x = 1, where x > 0) and the negative
sign is to give an invalid field width, so we ftbfs.

Anyway, it's basically checking to see how many elements there are in
the table, and failing if there are more than expected. It looks kind of
failure that these are magic numbers.

regards, Kyle
--
To unsubscribe from this list: send the line "unsubscribe linux-parisc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux SoC]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux