From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 6C5933857C43; Tue, 29 Mar 2022 20:25:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6C5933857C43 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Adhemerval Zanella To: glibc-cvs@sourceware.org Subject: [glibc/azanella/clang] linux: Use same type for MMAP2_PAGE_UNIT X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella X-Git-Refname: refs/heads/azanella/clang X-Git-Oldrev: fa0315e0760391c9ba4dbc139d036b2e7fa2372b X-Git-Newrev: 444094b09baeb134ecb562952a835c0945d72c8c Message-Id: <20220329202510.6C5933857C43@sourceware.org> Date: Tue, 29 Mar 2022 20:25:10 +0000 (GMT) X-BeenThere: glibc-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Mar 2022 20:25:10 -0000 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=444094b09baeb134ecb562952a835c0945d72c8c commit 444094b09baeb134ecb562952a835c0945d72c8c Author: Adhemerval Zanella Date: Thu Mar 10 08:07:37 2022 -0300 linux: Use same type for MMAP2_PAGE_UNIT Diff: --- sysdeps/unix/sysv/linux/arc/mmap_internal.h | 2 +- sysdeps/unix/sysv/linux/ia64/mmap_internal.h | 2 +- sysdeps/unix/sysv/linux/m68k/mmap_internal.h | 2 +- sysdeps/unix/sysv/linux/mmap_internal.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sysdeps/unix/sysv/linux/arc/mmap_internal.h b/sysdeps/unix/sysv/linux/arc/mmap_internal.h index d8bbcab0a1..59e8260b5c 100644 --- a/sysdeps/unix/sysv/linux/arc/mmap_internal.h +++ b/sysdeps/unix/sysv/linux/arc/mmap_internal.h @@ -20,7 +20,7 @@ #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 diff --git a/sysdeps/unix/sysv/linux/ia64/mmap_internal.h b/sysdeps/unix/sysv/linux/ia64/mmap_internal.h index 0c0a0ced99..465d589281 100644 --- a/sysdeps/unix/sysv/linux/ia64/mmap_internal.h +++ b/sysdeps/unix/sysv/linux/ia64/mmap_internal.h @@ -22,7 +22,7 @@ /* 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 diff --git a/sysdeps/unix/sysv/linux/m68k/mmap_internal.h b/sysdeps/unix/sysv/linux/m68k/mmap_internal.h index 8e6f1ed84c..9330edfc05 100644 --- a/sysdeps/unix/sysv/linux/m68k/mmap_internal.h +++ b/sysdeps/unix/sysv/linux/m68k/mmap_internal.h @@ -22,7 +22,7 @@ /* 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 diff --git a/sysdeps/unix/sysv/linux/mmap_internal.h b/sysdeps/unix/sysv/linux/mmap_internal.h index 841b731391..083ec92030 100644 --- a/sysdeps/unix/sysv/linux/mmap_internal.h +++ b/sysdeps/unix/sysv/linux/mmap_internal.h @@ -28,7 +28,7 @@ # 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) \