]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] libertas link error due to gcc `smartness'
authorGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 8 Oct 2007 07:43:02 +0000 (09:43 +0200)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:55:19 +0000 (16:55 -0700)
commitd8b0fb51ef1563c631d26cb649a5479b5cc4899c
tree29276760231fa088dd96961a5bfdde1011163aa7
parent6470a89de90167cc1ff8a0312197ca422f5fe35f
[PATCH] libertas link error due to gcc `smartness'

Some versions of gcc replace strstr() calls with a single-character `needle'
parameter by strchr() behind our back. This causes a link error if strchr() is
defined as an inline function in <asm/string.h> (e.g. on m68k):

| drivers/built-in.o: In function `libertas_parse_chan':
| linux/drivers/net/wireless/libertas/debugfs.c:209: undefined reference to `strchr'
| drivers/built-in.o: In function `libertas_parse_ssid':
| linux/drivers/net/wireless/libertas/debugfs.c:260: undefined reference to `strchr'

Avoid this by explicitly calling strchr() instead.

Also include <linux/string.h>, because this file calls lots of str*() routines.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-By: Holger Schurig <hs4233@mail.mn-solutions.de>
Acked-By: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/debugfs.c