]> 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:47:03 +0000 (10:47 +0100)
The GCC attribute expects an element count, not bytes.

(cherry picked from commit 74c68fa61b5ebf4c64605a3cc5e47154a66671ce)

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

diff --git a/NEWS b/NEWS
index d819f5d896fc3bed97b4aa94bf4a3c6a8c1036c7..983f8c64042573bbce4a15f331a104d89b7288de 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -14,6 +14,7 @@ The following bugs were resolved with this release:
   [32627] math: math: sinhf is not correctly rounded
   [32630] math: math: tanf is not correctly rounded for all rounding
     modes
+  [32781] Linux: Remove attribute access from sched_getattr
 \f
 Version 2.41
 
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