]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
powerpc: Drop use of 'type' from access_ok()
authorMathieu Malaterre <malat@debian.org>
Fri, 4 Jan 2019 09:27:58 +0000 (10:27 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 4 Jan 2019 12:07:59 +0000 (23:07 +1100)
commit074400a7be61250d9f0ccec07d5c35ffec4d8d22
tree6be3657b89a2bd2fab875405ba5b787e56f96853
parentd538d94f0ca86cfedc892cc427169219acb3c2f7
powerpc: Drop use of 'type' from access_ok()

In commit 05a4ab823983 ("powerpc/uaccess: fix warning/error with
access_ok()") an attempt was made to remove a warning by referencing
the variable `type`. However in commit 96d4f267e40f ("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 commit 05a4ab823983 ("powerpc/uaccess: fix
warning/error with access_ok()") to fix the error.

Fixes: 96d4f267e40f ("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>
arch/powerpc/include/asm/uaccess.h