[scudo] Move getPageSize() decl to common.h header (#157146)

The getPageSize() function is defined in the platform-specific
source files but used in common.cpp.  Every function used across
files should be declared in a header so the same declaration is
in scope for the callers and the definition.

GitOrigin-RevId: 5cf4959b2121aac82f86b10a2c9b9faa74fedda9
diff --git a/common.cpp b/common.cpp
index 80134c3..f7c1b42 100644
--- a/common.cpp
+++ b/common.cpp
@@ -16,9 +16,6 @@
 uptr PageSizeCached = 0;
 uptr PageSizeLogCached = 0;
 
-// Must be defined in platform specific code.
-uptr getPageSize();
-
 // This must be called in the init path or there could be a race if multiple
 // threads try to set the cached values.
 uptr getPageSizeSlow() {
diff --git a/common.h b/common.h
index e5dfda2..8adcebd 100644
--- a/common.h
+++ b/common.h
@@ -148,6 +148,10 @@
 extern uptr PageSizeCached;
 extern uptr PageSizeLogCached;
 
+// Must be defined in platform specific code.
+uptr getPageSize();
+
+// Always calls getPageSize(), but caches the results for get*Cached(), below.
 uptr getPageSizeSlow();
 
 inline uptr getPageSizeCached() {