Skip to content
Commit b28d1ccf authored by Stanislav Kinsburskii's avatar Stanislav Kinsburskii Committed by Michael Ellerman
Browse files

powerpc/io: Expect immutable pointer in virt_to_phys() prototype



virt_to_phys() doesn't need the address pointer to be mutable.

At the same time allowing it to be mutable leads to the following build
warning for constant pointers:

  warning: passing argument 1 of ‘virt_to_phys’ discards ‘const’ qualifier from pointer target type

Signed-off-by: default avatarStanislav Kinsburskii <stanislav.kinsburskii@gmail.com>
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/168155747391.13678.10634415747614468991.stgit@skinsburskii.localdomain
parent 6db51ff9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment