mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
[PATCH] m68k: cleanup string functions
- cleanup asm of string functions - deinline strncat()/strncmp() - provide non-inlined strcpy() Signed-off-by: Roman Zippel <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
7236e978a3
commit
d6359fd783
3 changed files with 102 additions and 115 deletions
|
|
@ -1,7 +1,6 @@
|
|||
#include <linux/module.h>
|
||||
#include <linux/linkage.h>
|
||||
#include <linux/sched.h>
|
||||
#include <linux/string.h>
|
||||
#include <linux/mm.h>
|
||||
#include <linux/user.h>
|
||||
#include <linux/elfcore.h>
|
||||
|
|
@ -53,9 +52,6 @@ EXPORT_SYMBOL(mach_beep);
|
|||
#endif
|
||||
EXPORT_SYMBOL(dump_fpu);
|
||||
EXPORT_SYMBOL(dump_thread);
|
||||
EXPORT_SYMBOL(strnlen);
|
||||
EXPORT_SYMBOL(strrchr);
|
||||
EXPORT_SYMBOL(strstr);
|
||||
EXPORT_SYMBOL(kernel_thread);
|
||||
#ifdef CONFIG_VME
|
||||
EXPORT_SYMBOL(vme_brdtype);
|
||||
|
|
|
|||
|
|
@ -1,6 +1,19 @@
|
|||
/*
|
||||
* This file is subject to the terms and conditions of the GNU General Public
|
||||
* License. See the file COPYING in the main directory of this archive
|
||||
* for more details.
|
||||
*/
|
||||
|
||||
#define __IN_STRING_C
|
||||
|
||||
#include <linux/types.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/string.h>
|
||||
|
||||
char *strcpy(char *dest, const char *src)
|
||||
{
|
||||
return __kernel_strcpy(dest, src);
|
||||
}
|
||||
EXPORT_SYMBOL(strcpy);
|
||||
|
||||
void *memset(void *s, int c, size_t count)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue