kallsyms: remove usage of memmem and _GNU_SOURCE from scripts/kallsyms.c
authorPaulo Marques <pmarques@grupopie.com>
Wed, 20 Jun 2007 17:09:00 +0000 (18:09 +0100)
committerSam Ravnborg <sam@ravnborg.org>
Tue, 17 Jul 2007 12:36:08 +0000 (14:36 +0200)
The only in-kernel user of "memmem" is scripts/kallsyms.c and it only
uses it to find tokens that are 2 bytes in size. It is trivial to
replace it with a simple function that finds 2-byte tokens.

This should help users from systems that don't have the memmem GNU
extension available.

Signed-off-by: Paulo Marques <pmarques@grupopie.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>

No differences found