If I compile Linux v5.15.26 with RISC-V defconfig + CONFIG_SATA_MV=y, I get a drivers/ata/sata_mv.ko with 103960 bytes.
With additionally CONFIG_MODULE_SIG=y after make modules_install: 104673 bytes. So the problems seems not to exist in upstream. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux-riscv in Ubuntu. https://bugs.launchpad.net/bugs/1964335 Title: Excessive size of kernel modules on RISC-V - modules unstripped Status in linux-riscv package in Ubuntu: New Bug description: The size of kernel modules on RISC-V indicates that there is a build problem: kernel/drivers/ata/sata_mv.ko amd64: 81713 bytes arm64: 85505 bytes riscv64: 601417 bytes objdump -h shows that there is no section beyond 0xc6fc in the riscv64 file. The size of the sections matches what we see on the other architectures. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux-riscv/+bug/1964335/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp