]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
rt2x00: Compiler warning unmasked by fix of BUILD_BUG_ON
authorBoaz Harrosh <bharrosh@panasas.com>
Mon, 1 Sep 2008 11:47:19 +0000 (14:47 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 2 Sep 2008 21:40:02 +0000 (17:40 -0400)
commit445df54fec7c1924f44018c4db2a9613b877f10e
treee49c5f9d77659c907613492791ce44e04bd78b7c
parent2b58b209399844995ad48e421267e359e16c03db
rt2x00: Compiler warning unmasked by fix of BUILD_BUG_ON

A "Set" to a sign-bit in an "&" operation causes a compiler warning.
Make calculations unsigned.

[ The warning was masked by the old definition of BUILD_BUG_ON() ]

Also remove __builtin_constant_p from FIELD_CHECK since BUILD_BUG_ON
no longer permits non-const values.

Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
CC: Ingo Molnar <mingo@elte.hu>
CC: Rusty Russell <rusty@rustcorp.com.au>
Acked-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2x00reg.h