From: Khem Raj <raj.khem@gmail.com>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH] trace_shed: Adapt to glibc 2.24 removal of union wait type
Date: Thu, 21 Jul 2016 20:49:44 -0700 [thread overview]
Message-ID: <CAMKF1spDqxx1jjDaaaX4fiQ7qw2i48S5e75oMstcd+_=XvEMMw@mail.gmail.com> (raw)
In-Reply-To: <20160721045812.10914-1-raj.khem@gmail.com>
ignore this. I have a better one to follow
On Wed, Jul 20, 2016 at 9:58 PM, Khem Raj <raj.khem@gmail.com> wrote:
> This is now needed since glibc commit
> https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b49ab5f4503f36dcbf43f821f817da66b2931fe6;hp=5f5682b9654101ccaf375c2814cbddbe6033a725
>
> WEXITSTATUS macro does not do the enum translation anymore and expects
> the applications to pass int type fro status
>
> fixes below error
>
> trace_sched.c:425:16: error: invalid operands to binary & (have
> 'thread_sched_t * {aka struct <anonymous> *}' and 'int')
> thrd_ndx, WEXITSTATUS(status));
>
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ---
> testcases/kernel/sched/tool/trace_sched.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/testcases/kernel/sched/tool/trace_sched.c b/testcases/kernel/sched/tool/trace_sched.c
> index 7815686..30dca5f 100644
> --- a/testcases/kernel/sched/tool/trace_sched.c
> +++ b/testcases/kernel/sched/tool/trace_sched.c
> @@ -422,7 +422,7 @@ int main(int argc, /* number of input parameters. */
> if (status == (thread_sched_t *) - 1) {
> fprintf(stderr,
> "thread [%d] - process exited with errors %d\n",
> - thrd_ndx, WEXITSTATUS(status));
> + thrd_ndx, WEXITSTATUS((int)status));
> exit(-1);
> } else {
> exp_prio[thrd_ndx] = status->exp_prio;
> --
> 2.9.0
>
next prev parent reply other threads:[~2016-07-22 3:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-21 4:58 [LTP] [PATCH] trace_shed: Adapt to glibc 2.24 removal of union wait type Khem Raj
2016-07-22 3:49 ` Khem Raj [this message]
2016-07-22 13:40 ` Jan Stancek
2016-07-22 13:54 ` Khem Raj
2016-07-22 15:16 ` Jan Stancek
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='CAMKF1spDqxx1jjDaaaX4fiQ7qw2i48S5e75oMstcd+_=XvEMMw@mail.gmail.com' \
--to=raj.khem@gmail.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.