PackageKit: use the correct kernel headers.
The debug build of the packagefs kernel addon failed because user_memcpy had no type. Using the correct headers for user_memcpy and IS_USER_ADDRESS fixed the issue.
This commit is contained in:
@@ -11,7 +11,10 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#if defined(_KERNEL_MODE) && !defined(_BOOT_MODE)
|
#if defined(_KERNEL_MODE) && !defined(_BOOT_MODE)
|
||||||
#include <arch/user_memory.h>
|
// for user_memcpy() and IS_USER_ADDRESS()
|
||||||
|
#include <KernelExport.h>
|
||||||
|
|
||||||
|
#include <kernel.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,10 @@
|
|||||||
#include <Errors.h>
|
#include <Errors.h>
|
||||||
|
|
||||||
#if defined(_KERNEL_MODE) && !defined(_BOOT_MODE)
|
#if defined(_KERNEL_MODE) && !defined(_BOOT_MODE)
|
||||||
#include <arch/user_memory.h>
|
// for user_memcpy() and IS_USER_ADDRESS()
|
||||||
|
#include <KernelExport.h>
|
||||||
|
|
||||||
|
#include <kernel.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user