]> git.baikalelectronics.ru Git - kernel.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)
commitf4291a5dd72b326b07a24885030ef83aa77db0e6
tree6be3657b89a2bd2fab875405ba5b787e56f96853
parentce14381c53742cca54c895486701f338d8b4a8c3
powerpc: Drop use of 'type' from access_ok()

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

Fixes: 2fb4498d8456 ("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