mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-12 08:46:38 +07:00
powerpc: Drop use of 'type' from access_ok()
In commit05a4ab8239
("powerpc/uaccess: fix warning/error with access_ok()") an attempt was made to remove a warning by referencing the variable `type`. However in commit96d4f267e4
("Remove 'type' argument from access_ok() function") the variable `type` has been removed, breaking the build: arch/powerpc/include/asm/uaccess.h:66:32: error: ‘type’ undeclared (first use in this function) This essentially reverts commit05a4ab8239
("powerpc/uaccess: fix warning/error with access_ok()") to fix the error. Fixes:96d4f267e4
("Remove 'type' argument from access_ok() function") Signed-off-by: Mathieu Malaterre <malat@debian.org> [mpe: Reword change log slightly.] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
parent
d538d94f0c
commit
074400a7be
@ -63,7 +63,7 @@ static inline int __access_ok(unsigned long addr, unsigned long size,
|
||||
#endif
|
||||
|
||||
#define access_ok(addr, size) \
|
||||
(__chk_user_ptr(addr), (void)(type), \
|
||||
(__chk_user_ptr(addr), \
|
||||
__access_ok((__force unsigned long)(addr), (size), get_fs()))
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user