2009-09-06 17:58:25

by Larry Finger

[permalink] [raw]
Subject: [PATCH] cfg80211: Fix build error on i386 for net/wireless/scan.o

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>


2009-09-08 16:10:16

by Luis R. Rodriguez

[permalink] [raw]
Subject: Re: [PATCH] cfg80211: Fix build error on i386 for net/wireless/scan.o

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