[PATCH 2/3] Linux: Remove attribute access from sched_getattr (bug 32781)
Florian Weimer
fweimer@redhat.com
Tue Mar 11 11:04:19 GMT 2025
The GCC attribute expects an element count, not bytes.
---
sysdeps/unix/sysv/linux/bits/sched.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sysdeps/unix/sysv/linux/bits/sched.h b/sysdeps/unix/sysv/linux/bits/sched.h
index 3656e98eda..39b0b3d19c 100644
--- a/sysdeps/unix/sysv/linux/bits/sched.h
+++ b/sysdeps/unix/sysv/linux/bits/sched.h
@@ -152,7 +152,7 @@ int sched_setattr (pid_t tid, struct sched_attr *attr, unsigned int flags)
store it in *ATTR. */
int sched_getattr (pid_t tid, struct sched_attr *attr, unsigned int size,
unsigned int flags)
- __THROW __nonnull ((2)) __attr_access ((__write_only__, 2, 3));
+ __THROW __nonnull ((2));
#endif
--
2.48.1
More information about the Libc-alpha
mailing list