diff options
| author | Sam James <sam@gentoo.org> | 2025-01-02 17:26:28 +0000 |
|---|---|---|
| committer | Sam James <sam@gentoo.org> | 2025-01-02 17:58:06 +0000 |
| commit | e9be7701e6cd2b7be5454efaece3abc7ec9102ce (patch) | |
| tree | 7035df759607ea652c26b15c4ce4e2d52012eb14 /misc/sys/mman.h | |
| parent | 0ab62fa4f6c5ed24afe9a51f13aa759f5e88ec01 (diff) | |
| download | glibc-e9be7701e6cd2b7be5454efaece3abc7ec9102ce.tar.xz glibc-e9be7701e6cd2b7be5454efaece3abc7ec9102ce.zip | |
mlock, mlock2, munlock: Use __attr_access_none macro
This fixes build failures using GCC 7.5.0 against glibc headers,
see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118194#c5.
Followup to 013106ae677af9836614ace1a01d25b63fa555a7.
Reported-by: vvinayag@arm.com
Diffstat (limited to 'misc/sys/mman.h')
| -rw-r--r-- | misc/sys/mman.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/sys/mman.h b/misc/sys/mman.h index a2eaf69c82..de5cb8976f 100644 --- a/misc/sys/mman.h +++ b/misc/sys/mman.h @@ -101,11 +101,11 @@ extern int posix_madvise (void *__addr, size_t __len, int __advice) __THROW; /* Guarantee all whole pages mapped by the range [ADDR,ADDR+LEN) to be memory resident. */ extern int mlock (const void *__addr, size_t __len) __THROW - __attr_access ((__none__, 1)); + __attr_access_none (1); /* Unlock whole pages previously mapped by the range [ADDR,ADDR+LEN). */ extern int munlock (const void *__addr, size_t __len) __THROW - __attr_access ((__none__, 1)); + __attr_access_none (1); /* Cause all currently mapped pages of the process to be memory resident until unlocked by a call to the `munlockall', until the process exits, |
