#define MMAP_ARC_INTERNAL_H
/* 8K is default but determine the shift dynamically with getpagesize. */
-#define MMAP2_PAGE_UNIT -1
+#define MMAP2_PAGE_UNIT -1ULL
#include_next <mmap_internal.h>
/* Linux allows PAGE_SHIFT in range of [12-16] and expect
mmap2 offset to be provided in based on the configured pagesize.
Determine the shift dynamically with getpagesize. */
-#define MMAP2_PAGE_UNIT -1
+#define MMAP2_PAGE_UNIT -1ULL
#include_next <mmap_internal.h>
/* ColdFire and Sun 3 kernels have PAGE_SHIFT set to 13 and expect
mmap2 offset to be provided in 8K pages. Determine the shift
dynamically with getpagesize. */
-#define MMAP2_PAGE_UNIT -1
+#define MMAP2_PAGE_UNIT -1ULL
#include_next <mmap_internal.h>
# define MMAP2_PAGE_UNIT 4096ULL
#endif
-#if MMAP2_PAGE_UNIT == -1
+#if MMAP2_PAGE_UNIT == -1ULL
static uint64_t page_unit;
# define MMAP_CHECK_PAGE_UNIT() \
if (page_unit == 0) \