powerpc: Use rol32() instead of opencoding in csum_fold()
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Wed, 9 Mar 2022 07:56:14 +0000 (08:56 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 8 May 2022 12:15:40 +0000 (22:15 +1000)
commita1ae431705410fc7092790977bffd1b00c63c229
treea0b0938ab2130f315bb4689df0dcda781897e71c
parente6f6390ab7b9d649c13de2c8a591bce61a10ec3b
powerpc: Use rol32() instead of opencoding in csum_fold()

rol32(x, 16) will do the rotate using rlwinm.

No need to open code using inline assembly.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/794337eff7bb803d2c4e67d9eee635390c4c48fe.1646812553.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/checksum.h