Re: [PATCH 1/2] riscv: move kaslr_offset() to page.h as a static inline function

From: Paul Walmsley

Date: Thu Feb 12 2026 - 19:45:04 EST


On Wed, 11 Feb 2026, Austin Kim wrote:

> From: Austin Kim <austin.kim@xxxxxxx>
>
> The kaslr_offset() function is a simple accessor that returns
> kernel_map.virt_offset. This commit change also ensures that kaslr_offset()
> is consistently available across various kernel configurations without
> requiring explicit linkage to mm/init.c.
>
> Signed-off-by: Austin Kim <austin.kim@xxxxxxx>

Thanks, queued for v7.0-rc.


- Paul