[PATCH v6 1/2] riscv: Introduce set_kernel_memory helper

Christoph Hellwig hch at infradead.org
Mon Jun 21 07:58:40 PDT 2021


On Thu, Jun 17, 2021 at 03:17:33PM +0200, Alexandre Ghiti wrote:
> +int set_kernel_memory(char *start, char *end, int (*set_memory)(unsigned long, int));

Pretty unreadable with the crazy long line and the missing parameter
names for the callback.  It probably is worth to implement this as
__always_inline so that the compiler unwinds the indirect call.



More information about the linux-riscv mailing list