[PATCH 5.4] MIPS: fix build with gcc-12