diff mbox

cfg80211: Fix build error on i386 for net/wireless/scan.o

Message ID 4aa3f838.ef04Hi2n3Fg54rE9%Larry.Finger@lwfinger.net (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Larry Finger Sept. 6, 2009, 5:58 p.m. UTC
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 <Larry.Finger@lwfinger.net>
---

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Luis Rodriguez Sept. 8, 2009, 4:09 p.m. UTC | #1
On Sun, Sep 6, 2009 at 10:58 AM, Larry Finger<Larry.Finger@lwfinger.net> 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 <Larry.Finger@lwfinger.net>

I've asked John to revert the use of kmemleak_ignore() here for
several reasons so this patch will not be needed.

  Luis
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

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>