From e9be7701e6cd2b7be5454efaece3abc7ec9102ce Mon Sep 17 00:00:00 2001 From: Sam James Date: Thu, 2 Jan 2025 17:26:28 +0000 Subject: 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 --- sysdeps/unix/sysv/linux/bits/mman-shared.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysdeps/unix/sysv/linux/bits') diff --git a/sysdeps/unix/sysv/linux/bits/mman-shared.h b/sysdeps/unix/sysv/linux/bits/mman-shared.h index bfbccc1..3159097 100644 --- a/sysdeps/unix/sysv/linux/bits/mman-shared.h +++ b/sysdeps/unix/sysv/linux/bits/mman-shared.h @@ -57,7 +57,7 @@ int memfd_create (const char *__name, unsigned int __flags) __THROW; /* Lock pages from ADDR (inclusive) to ADDR + LENGTH (exclusive) into memory. FLAGS is a combination of the MLOCK_* flags above. */ int mlock2 (const void *__addr, size_t __length, unsigned int __flags) __THROW - __attr_access ((__none__, 1)); + __attr_access_none (1); /* Allocate a new protection key, with the PKEY_DISABLE_* bits specified in ACCESS_RESTRICTIONS. The protection key mask for the -- cgit v1.1