Skip to content

Commit

Permalink
rtl8192ce: Fix build on powerpc
Browse files Browse the repository at this point in the history
After merge of the rtl8192ce driver, a powerpc build fails with:

drivers/net/wireless/rtlwifi/rtl8192ce/rtl8192c-sw.c: In function 'rtl92c_init_sw_vars':
drivers/net/wireless/rtlwifi/rtl8192ce/rtl8192c-sw.c:76: error: implicit declaration of function 'vmalloc'
drivers/net/wireless/rtlwifi/rtl8192ce/rtl8192c-sw.c:76: warning: cast to pointer from integer of different size
drivers/net/wireless/rtlwifi/rtl8192ce/rtl8192c-sw.c: In function 'rtl92c_deinit_sw_vars':
drivers/net/wireless/rtlwifi/rtl8192ce/rtl8192c-sw.c:91: error: implicit declaration of function 'vfree'

The problem is fixed by explicitly including the appropriate header.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Larry Finger authored and John W. Linville committed Dec 16, 2010
1 parent 931299c commit 4aea248
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/wireless/rtlwifi/rtl8192ce/rtl8192c-sw.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
*
*****************************************************************************/

#include <linux/vmalloc.h>

#include "../wifi.h"
#include "../core.h"
#include "../pci.h"
Expand Down

0 comments on commit 4aea248

Please sign in to comment.