public inbox for glibc-cvs@sourceware.org help / color / mirror / Atom feed
From: Adhemerval Zanella <azanella@sourceware.org> To: glibc-cvs@sourceware.org Subject: [glibc/azanella/clang] linux: Use same type for MMAP2_PAGE_UNIT Date: Fri, 3 Jun 2022 14:01:32 +0000 (GMT) [thread overview] Message-ID: <20220603140132.16663385084B@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=7bbbdff00d48cfbb5c29dd457b2d2a39d52fb500 commit 7bbbdff00d48cfbb5c29dd457b2d2a39d52fb500 Author: Adhemerval Zanella <adhemerval.zanella@linaro.org> 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 <mmap_internal.h> 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 <mmap_internal.h> 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 <mmap_internal.h> diff --git a/sysdeps/unix/sysv/linux/mmap_internal.h b/sysdeps/unix/sysv/linux/mmap_internal.h index aebf97d064..2d118b0d8a 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) \
next reply other threads:[~2022-06-03 14:01 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-06-03 14:01 Adhemerval Zanella [this message] -- strict thread matches above, loose matches on Subject: below -- 2022-06-09 21:15 Adhemerval Zanella 2022-06-09 13:12 Adhemerval Zanella 2022-05-13 14:15 Adhemerval Zanella 2022-05-12 19:29 Adhemerval Zanella 2022-05-10 18:19 Adhemerval Zanella 2022-04-29 13:59 Adhemerval Zanella 2022-04-04 12:49 Adhemerval Zanella 2022-03-31 19:02 Adhemerval Zanella 2022-03-29 20:25 Adhemerval Zanella 2022-03-16 18:00 Adhemerval Zanella 2022-03-15 18:38 Adhemerval Zanella 2022-03-11 17:22 Adhemerval Zanella 2022-03-10 19:21 Adhemerval Zanella
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220603140132.16663385084B@sourceware.org \ --to=azanella@sourceware.org \ --cc=glibc-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).