With i386 architecture, building the kernel v2.6.31-rc8-34797-g4910edb
fails with the following error:
CC [M] net/wireless/scan.o
net/wireless/scan.c: In function ‘cfg80211_inform_bss’:
net/wireless/scan.c:499: error: implicit declaration of function ‘kmemleak_ignore’
make[2]: *** [net/wireless/scan.o] Error 1
On x86_64, the build succeeds. Fix by including the appropriate header.
Signed-off-by: Larry Finger <[email protected]>
---
Index: wireless-testing/net/wireless/scan.c
===================================================================
--- wireless-testing.orig/net/wireless/scan.c
+++ wireless-testing/net/wireless/scan.c
@@ -9,6 +9,7 @@
#include <linux/wireless.h>
#include <linux/nl80211.h>
#include <linux/etherdevice.h>
+#include <linux/kmemleak.h>
#include <net/arp.h>
#include <net/cfg80211.h>
#include <net/iw_handler.h>
On Sun, Sep 6, 2009 at 10:58 AM, Larry Finger<[email protected]> wrote:
> With i386 architecture, building the kernel v2.6.31-rc8-34797-g4910edb
> fails with the following error:
>
> CC [M] net/wireless/scan.o
> net/wireless/scan.c: In function ‘cfg80211_inform_bss’:
> net/wireless/scan.c:499: error: implicit declaration of function ‘kmemleak_ignore’
> make[2]: *** [net/wireless/scan.o] Error 1
>
> On x86_64, the build succeeds. Fix by including the appropriate header.
>
> Signed-off-by: Larry Finger <[email protected]>
I've asked John to revert the use of kmemleak_ignore() here for
several reasons so this patch will not be needed.
Luis