From 97d6fb112baaf4293c116caa346f16d7dd75ec99 Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Wed, 23 Jul 2008 18:53:14 +0200 Subject: [PATCH] ath9k: use correct type for test_bit/set_bit To: johannes@sipsolutions.net, linville@tuxdriver.com Cc: linux-wireless@vger.kernel.org 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 --- ksrc/core.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/ksrc/core.h b/ksrc/core.h index cb69fe7..954edc7 100644 --- a/ksrc/core.h +++ b/ksrc/core.h @@ -1037,7 +1037,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 */ u_int8_t sc_splitmic; /* split TKIP MIC keys */ int sc_keytype; /* type of the key being used */ -- 1.5.4.3