On Thursday 08 March 2007 18:43, Johannes Berg wrote: > On Thu, 2007-03-08 at 12:34 -0500, Pavel Roskin wrote: > > > FIELDS32 expands to some monstrosities. Look for rt2x00_bbp_write in > > the dump. Also behold the amount of parentheses in LOWEST_BIT32. > > That's almost certainly the culprit. > > And I even had CONFIG_RT2X00_DEBUG enabled so it's worse that the > regular case. Those checks are intended to doublecheck the register FIELD{16,32} defines. Since all register definitions were rewritten from the legacy driver, (legacy driver used unions and structs for all registers) some of those defines weren't done correctly (A bitmask could for example be in binary 000110111 which is very wrong). To check those the register checks were added to ensure the register defines were at least correct. I am however open to suggestions on how this should be improved and cleaned up, since it is not my favorite piece of code. ;) Ivo - To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html