Christoph Hellwig <hch@xxxxxx> writes: > The test_bit/set_bit/etc family of routines operates on arrays of > unsigned long, so declare sc_keymap as such using the DECLARE_BITMAP > helper. > > > Signed-off-by: Christoph Hellwig <hch@xxxxxx> > > Index: linux-2.6/drivers/net/wireless/ath9k/core.h > =================================================================== > --- linux-2.6.orig/drivers/net/wireless/ath9k/core.h 2008-07-23 18:36:39.000000000 +0200 > +++ linux-2.6/drivers/net/wireless/ath9k/core.h 2008-07-23 18:37:28.000000000 +0200 > @@ -1042,7 +1042,7 @@ struct ath_softc { > > /* Crypto */ > u_int sc_keymax; /* size of key cache */ > - u_int8_t sc_keymap[ATH_KEYBYTES];/* key use bit map */ > + DECLARE_BITMAP (sc_keymap, ATH_KEYBYTES);/* key use bit map */ DECLARE_BITMAP expects the number of bits, not bytes. Andreas. -- Andreas Schwab, SuSE Labs, schwab@xxxxxxx SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." -- 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