[PATCH 1/2] riscv: move kaslr_offset() to page.h as a static inline function
Paul Walmsley
pjw at kernel.org
Thu Feb 12 16:44:56 PST 2026
On Wed, 11 Feb 2026, Austin Kim wrote:
> From: Austin Kim <austin.kim at lge.com>
>
> 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 at lge.com>
Thanks, queued for v7.0-rc.
- Paul
More information about the linux-riscv
mailing list