aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers.c
diff options
context:
space:
mode:
authorMax Kellermann <[email protected]>2024-03-19 07:50:34 +0000
committerHuacai Chen <[email protected]>2024-03-19 07:50:34 +0000
commitd42ab9af605ee406ec339e5e80a1c3a708637fd6 (patch)
tree6827e0de5fec51b003ee31f84a6b366686e688ab /rust/helpers.c
parentLoongArch: Change __my_cpu_offset definition to avoid mis-optimization (diff)
downloadkernel-d42ab9af605ee406ec339e5e80a1c3a708637fd6.tar.gz
kernel-d42ab9af605ee406ec339e5e80a1c3a708637fd6.zip
LoongArch: Move {dmw,tlb}_virt_to_page() definition to page.h
These two functions are implemented in pgtable.c, and they are needed only by the virt_to_page() macro in page.h. Having the prototypes in pgtable.h causes a circular dependency between page.h and pgtable.h, because the virt_to_page() macro in page.h needs pgtable.h for these two functions, while pgtable.h needs various definitions from page.h (e.g. pte_t and pgt_t). Let's avoid this circular dependency by moving the function prototypes to page.h. Signed-off-by: Max Kellermann <[email protected]> Signed-off-by: Huacai Chen <[email protected]>
Diffstat (limited to 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions