Fixing the gcc4 build break.

Using macro nonnull which actually resolves to an attribute doesn't work
on inline functions.
Thx to mmlr for helping out.
Eitherway it should have worked in the first place, because the compiler
has all the information it needs.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33745 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Colin Günther
2009-10-23 08:54:52 +00:00
parent c3ce629473
commit c5a4650d6b
@@ -55,14 +55,16 @@ void wakeup(void *);
static inline int
copyin(const void * __restrict udaddr, void * __restrict kaddr,
size_t len) __nonnull(1) __nonnull(2) {
size_t len)
{
return user_memcpy(kaddr, udaddr, len);
}
static inline int
copyout(const void * __restrict kaddr, void * __restrict udaddr,
size_t len) __nonnull(1) __nonnull(2) {
size_t len)
{
return user_memcpy(udaddr, kaddr, len);
}