ANDROID: 16K: Export page compat symbols

Needed by drivers that make use of page compat macros (__PAGE_SIZE, ...)

Bug: 383389337
Bug: 315325080
Bug: 302403436
Change-Id: Ib9dfc45a285cb53208791180faa8542f1eac92ed
Signed-off-by: Kalesh Singh <kaleshsingh@google.com>
This commit is contained in:
Kalesh Singh
2024-03-11 10:30:00 -07:00
committed by Carlos Llamas
parent 181bc19bef
commit 93bfe702cd

View File

@@ -18,8 +18,10 @@
#define __MMAP_RND_BITS(x) (x - (__PAGE_SHIFT - PAGE_SHIFT))
DEFINE_STATIC_KEY_FALSE(page_shift_compat_enabled);
EXPORT_SYMBOL_GPL(page_shift_compat_enabled);
int page_shift_compat __ro_after_init = MIN_PAGE_SHIFT_COMPAT;
EXPORT_SYMBOL_GPL(page_shift_compat);
static int __init early_page_shift_compat(char *buf)
{