lkml.org 
[lkml]   [2010]   [Jul]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch 08/20] inline memcpy
Support _HAVE_ARCH_INLINE_MEMCPY. Start with a fall-back to memcpy().

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
---
include/linux/string.h | 3 +++
1 file changed, 3 insertions(+)

Index: linux.trees.git/include/linux/string.h
===================================================================
--- linux.trees.git.orig/include/linux/string.h 2010-06-21 18:23:20.000000000 -0400
+++ linux.trees.git/include/linux/string.h 2010-06-21 18:26:10.000000000 -0400
@@ -102,6 +102,9 @@ extern void * memset(void *,int,__kernel
#ifndef __HAVE_ARCH_MEMCPY
extern void * memcpy(void *,const void *,__kernel_size_t);
#endif
+#ifndef __HAVE_ARCH_INLINE_MEMCPY
+#define inline_memcpy memcpy
+#endif
#ifndef __HAVE_ARCH_MEMMOVE
extern void * memmove(void *,const void *,__kernel_size_t);
#endif


\
 
 \ /
  Last update: 2010-07-10 01:39    [W:0.099 / U:0.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site