mirror of
https://github.com/torvalds/linux.git
synced 2024-11-15 08:31:55 +00:00
add8a5050a
Fix some more fallout of the string changes: CC arch/blackfin/lib/strncmp.o In file included from include/linux/bitmap.h:9, from include/linux/nodemask.h:90, from include/linux/mmzone.h:17, from include/linux/gfp.h:5, from include/linux/kmod.h:23, from include/linux/module.h:14, from arch/blackfin/lib/strncmp.c:14: include/linux/string.h: In function ‘strstarts’: include/linux/string.h:132: error: implicit declaration of function ‘strncmp’ make[1]: *** [arch/blackfin/lib/strncmp.o] Error 1 Signed-off-by: Mike Frysinger <vapier@gentoo.org> CC: Rusty Russell <rusty@rustcorp.com.au>
19 lines
376 B
C
19 lines
376 B
C
/*
|
|
* Provide symbol in case str func is not inlined.
|
|
*
|
|
* Copyright (c) 2006-2007 Analog Devices Inc.
|
|
*
|
|
* Licensed under the GPL-2 or later.
|
|
*/
|
|
|
|
#define strncmp __inline_strncmp
|
|
#include <asm/string.h>
|
|
#include <linux/module.h>
|
|
#undef strncmp
|
|
|
|
int strncmp(const char *cs, const char *ct, size_t count)
|
|
{
|
|
return __inline_strncmp(cs, ct, count);
|
|
}
|
|
EXPORT_SYMBOL(strncmp);
|