riscv: move kaslr_offset() to page.h as a static inline function

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@lge.com>
Link: https://patch.msgid.link/aYwJ76yHaMbbQVJA@adminpc-PowerEdge-R7525
Signed-off-by: Paul Walmsley <pjw@kernel.org>
This commit is contained in:
Austin Kim 2026-04-04 18:42:40 -06:00 • committed by Paul Walmsley
commit ce3a360a6d
2 changed files with 4 additions and 6 deletions