]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: crypto: Fix CRC32 code
authorPaul Cercueil <paul@crapouillou.net>
Thu, 31 Mar 2022 16:42:00 +0000 (17:42 +0100)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Fri, 1 Apr 2022 08:19:03 +0000 (10:19 +0200)
commit48544d30e8d96147f4fa5fbeb52287bc371bc07e
tree5b76e2bbd88a3a35c4b2d2c721c391b2687ddd91
parent378deba9070834258f0e9b666c0c9dcca48ba2e4
MIPS: crypto: Fix CRC32 code

Commit a79ce8ea31aa ("MIPS: Avoid macro redefinitions") changed how the
MIPS register macros were defined, in order to allow the code to compile
under LLVM/Clang.

The MIPS CRC32 code however wasn't updated accordingly, causing a build
bug when using a MIPS32r6 toolchain without CRC support.

Update the CRC32 code to use the macros correctly, to fix the build
failures.

Fixes: a79ce8ea31aa ("MIPS: Avoid macro redefinitions")
Cc: <stable@vger.kernel.org>
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/crypto/crc32-mips.c