Re: [PATCH 15/25] riscv: move the XOR code to lib/raid/
Eric Biggers <[email protected]>
| Newsgroups | gmane.linux.kernel,gmane.linux.ports.alpha,gmane.linux.ports.arm.kernel,gmane.linux.ports.ppc64.devel,gmane.linux.ports.riscv,gmane.linux.ports.sparc,gmane.linux.uml.devel,gmane.linux.kernel.cryptoapi,gmane.comp.file-systems.btrfs,gmane.linux.kernel.cross-arch,gmane.linux.raid |
|---|---|
| Message-ID | <20260228053730.GE65277@quark> |
On Thu, Feb 26, 2026 at 07:10:27AM -0800, Christoph Hellwig wrote: > Move the optimized XOR into lib/raid and include it it in xor.ko > instead of always building it into the main kernel image. > > Signed-off-by: Christoph Hellwig <[email protected]> > --- > arch/riscv/include/asm/xor.h | 54 +------------------ > arch/riscv/lib/Makefile | 1 - > lib/raid/xor/Makefile | 1 + > lib/raid/xor/riscv/xor-glue.c | 56 ++++++++++++++++++++ > {arch/riscv/lib => lib/raid/xor/riscv}/xor.S | 0 The EXPORT_SYMBOL() statements in xor.S can be removed, since the functions are now located in the same module as their callers. - Eric