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

From: Christoph Hellwig
Date: Mon Jun 21 2021 - 11:00:11 EST


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.