]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
powerpc/64e: Fix bogus usage of WARN_ONCE()
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 15 Feb 2017 09:24:25 +0000 (20:24 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 15 Feb 2017 09:24:25 +0000 (20:24 +1100)
commit0d2b5cdc76ff7eef9d727c2e802213ec15d5e94f
treebff2abc14b7f0afd0be37733f885f600e2628498
parent454593e54cac126a0f49d4b65f90a5e518c51404
powerpc/64e: Fix bogus usage of WARN_ONCE()

WARN_ONCE() takes a condition and a format string. We were passing a
constant string as the condition, and the function name as the format
string. It would work, but the message would be just the function name.

Fix it by just using WARN_ONCE() directly instead of if (x) WARN_ONCE().

Noticed-by: Geliang Tang <geliangtang@163.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/setup_64.c