[LTP] [PATCH] syscalls/sched_getattr02: use a fixed size for EINVAL test
Petr Vorel
pvorel@suse.cz
Mon Nov 4 11:31:04 CET 2024
Hi Jan,
...
> > +++ include/lapi/sched.h
> > @@ -46,6 +46,8 @@ static inline int sched_getattr(pid_t pid, struct sched_attr *attr,
> > {
> > return syscall(__NR_sched_getattr, pid, attr, size, flags);
> > }
> > +#else
> > +# define SCHED_ATTR_SIZE_VER0 48 /* sizeof first published struct */
> ^^ not in else branch, the check is "ifndef", so that's where it needs
> to be defined
I'm sorry, thanks for catching my error.
Kind regards,
Petr
More information about the ltp
mailing list