ext4l: Extract uaccess.h declarations into their own file

Create include/linux/uaccess.h with stub implementations for user-space
access functions. In U-Boot there's no user/kernel separation, so these
are simple memory copies.

Includes:
- copy_from_user()
- copy_to_user()
- get_user() / put_user()
- access_ok()

Update compat.h to include uaccess.h and remove the duplicate
declaration.

Co-developed-by: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: Simon Glass <simon.glass@canonical.com>
This commit is contained in:
Simon Glass
2025-12-16 11:52:54 -07:00
committed by Simon Glass
parent 7fcfe1cf74
commit 6c01706217
3 changed files with 33 additions and 9 deletions

View File

@@ -10,13 +10,6 @@ struct p_current cur = {
};
__maybe_unused struct p_current *current = &cur;
unsigned long copy_from_user(void *dest, const void *src,
unsigned long count)
{
memcpy((void *)dest, (void *)src, count);
return 0;
}
void *kmalloc(size_t size, int flags)
{
void *p;