All of lore.kernel.org
 help / color / mirror / Atom feed
From: Petr Vorel <pvorel@suse.cz>
To: Jan Stancek <jstancek@redhat.com>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH] syscalls/sched_getattr02: use a fixed size for EINVAL test
Date: Mon, 4 Nov 2024 11:31:04 +0100	[thread overview]
Message-ID: <20241104103104.GA1388681@pevik> (raw)
In-Reply-To: <CAASaF6xLYzU8o8qn-X1k8p00yV76fLNt695OSfb2XD5c7C6pew@mail.gmail.com>

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

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

      reply	other threads:[~2024-11-04 10:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-01 13:02 [LTP] [PATCH] syscalls/sched_getattr02: use a fixed size for EINVAL test Jan Stancek
2024-11-02  3:18 ` Li Wang
2024-11-04  9:13   ` Petr Vorel
2024-11-04  9:53     ` Jan Stancek
2024-11-04 10:31       ` Petr Vorel [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20241104103104.GA1388681@pevik \
    --to=pvorel@suse.cz \
    --cc=jstancek@redhat.com \
    --cc=ltp@lists.linux.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.