]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Linux: Remove attribute access from sched_getattr (bug 32781)
authorFlorian Weimer <fweimer@redhat.com>
Wed, 12 Mar 2025 09:23:47 +0000 (10:23 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Wed, 12 Mar 2025 09:23:47 +0000 (10:23 +0100)
The GCC attribute expects an element count, not bytes.

sysdeps/unix/sysv/linux/bits/sched.h

index 3656e98eda0f09578362b70ed3343704960da9fb..39b0b3d19c038a02a45e8275c647db597653b210 100644 (file)
@@ -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