[PATCH 6.1 126/134] RISC-V: add infrastructure to allow different str* implementations