staging: rtl8192u: ieee80211: Converted symbol to static.
authorAybuke Ozdemir <aybuke.147@gmail.com>
Sun, 28 Sep 2014 19:43:42 +0000 (22:43 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 29 Sep 2014 03:39:27 +0000 (23:39 -0400)
This patch fixes this sparse warning:
drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c:60:6: warning:
symbol 'ieee80211_ccmp_aes_encrypt' was not declared. Should it be static?

Signed-off-by: Aybuke Ozdemir <aybuke.147@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c

index af2128b956b7c67c330da12feb6727c6dd74afcc..143b682477e59f16954f6ab9a26cbac10021fb37 100644 (file)
@@ -57,7 +57,7 @@ struct ieee80211_ccmp_data {
        u8 rx_b0[AES_BLOCK_LEN], rx_b[AES_BLOCK_LEN], rx_a[AES_BLOCK_LEN];
 };
 
-void ieee80211_ccmp_aes_encrypt(struct crypto_tfm *tfm,
+static void ieee80211_ccmp_aes_encrypt(struct crypto_tfm *tfm,
                             const u8 pt[16], u8 ct[16])
 {
        crypto_cipher_encrypt_one((void *)tfm, ct, pt);