diff options
author | Ed Schouten <ed@FreeBSD.org> | 2009-02-28 16:21:25 +0000 |
---|---|---|
committer | Ed Schouten <ed@FreeBSD.org> | 2009-02-28 16:21:25 +0000 |
commit | 802cb57e34322fa1ce4a89cfa019d9e2181818d8 (patch) | |
tree | d48f20a6281397e8e474df818dbfe4b4795b419e /sys/netgraph/ng_l2tp.c | |
parent | b57fd79960c1f05327d4ea570649a6ed33ca0b28 (diff) | |
download | src-802cb57e34322fa1ce4a89cfa019d9e2181818d8.tar.gz src-802cb57e34322fa1ce4a89cfa019d9e2181818d8.zip |
Add memmove() to the kernel, making the kernel compile with Clang.
When copying big structures, LLVM generates calls to memmove(), because
it may not be able to figure out whether structures overlap. This caused
linker errors to occur. memmove() is now implemented using bcopy().
Ideally it would be the other way around, but that can be solved in the
future. On ARM we don't do add anything, because it already has
memmove().
Discussed on: arch@
Reviewed by: rdivacky
Notes
Notes:
svn path=/head/; revision=189170
Diffstat (limited to 'sys/netgraph/ng_l2tp.c')
-rw-r--r-- | sys/netgraph/ng_l2tp.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/netgraph/ng_l2tp.c b/sys/netgraph/ng_l2tp.c index 46dcba95a4d4..a5bb6280abfe 100644 --- a/sys/netgraph/ng_l2tp.c +++ b/sys/netgraph/ng_l2tp.c @@ -342,9 +342,6 @@ NETGRAPH_INIT(l2tp, &ng_l2tp_typestruct); #define L2TP_SEQ_CHECK(x) do { } while (0) #endif -/* memmove macro */ -#define memmove(d, s, l) bcopy(s, d, l) - /* Whether to use m_copypacket() or m_dup() */ #define L2TP_COPY_MBUF m_copypacket |