Fixed building with modern compilers

This commit is contained in:
Nathan
2025-04-07 00:43:16 -05:00
parent eee847d17d
commit 2c3b156896
10 changed files with 10 additions and 10 deletions

View File

@@ -164,7 +164,7 @@ extern int __put_user_8(void *, unsigned long long);
#define __put_user_check(x,p) \
({ \
unsigned long __limit = current_thread_info()->addr_limit - 1; \
register const typeof(*(p)) __r2 asm("r2") = (x); \
register typeof(*(p)) __r2 asm("r2") = (x); \
register const typeof(*(p)) __user *__p asm("r0") = (p);\
register unsigned long __l asm("r1") = __limit; \
register int __e asm("r0"); \