]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
riscv: move kaslr_offset() to page.h as a static inline function
authorAustin Kim <austin.kim@lge.com>
Sun, 5 Apr 2026 00:42:40 +0000 (18:42 -0600)
committerPaul Walmsley <pjw@kernel.org>
Sun, 5 Apr 2026 00:42:40 +0000 (18:42 -0600)
commitce3a360a6d0b3d2b2a23238ff1b7a4ac1280d196
treee2192840e5b51aeb0e3b0a71b4c73579508e56af
parent31454cb5f1a37eefe2465601418a978b7668424e
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>
arch/riscv/include/asm/page.h
arch/riscv/mm/init.c