All of lore.kernel.org
 help / color / mirror / Atom feed
From: Khem Raj <raj.khem@gmail.com>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH 29/31] trace_shed: Fix build with musl
Date: Fri,  8 Jan 2016 08:11:49 +0000	[thread overview]
Message-ID: <1452240711-51180-29-git-send-email-raj.khem@gmail.com> (raw)
In-Reply-To: <1452240711-51180-1-git-send-email-raj.khem@gmail.com>

Errors on musl are

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.7.0


  parent reply	other threads:[~2016-01-08  8:11 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-08  8:11 [LTP] [PATCH 01/31] ltp: Don't link against libfl Khem Raj
2016-01-08  8:11 ` [LTP] [PATCH 02/31] Add knob to control whether numa support should be checked Khem Raj
2016-01-08  8:11 ` [LTP] [PATCH 03/31] Add knob to control tirpc support Khem Raj
2016-01-08  8:11 ` [LTP] [PATCH 04/31] build: Add option to select libc implementation Khem Raj
2016-01-08  8:11 ` [LTP] [PATCH 05/31] kernel/controllers: Link with libfts explicitly on musl Khem Raj
2016-01-08  8:11 ` [LTP] [PATCH 06/31] sendfile: Use off64_t instead of __off64_t Khem Raj
2016-01-08  8:11 ` [LTP] [PATCH 07/31] replace SIGCLD with SIGCHLD Khem Raj
2016-01-08  8:11 ` [LTP] [PATCH 08/31] Check if __GLIBC_PREREQ is defined before using it Khem Raj
2016-01-08  8:11 ` [LTP] [PATCH 09/31] Guard error.h with __GLIBC__ Khem Raj
2016-01-08  8:11 ` [LTP] [PATCH 10/31] replace __BEGIN_DECLS and __END_DECLS Khem Raj
2016-01-08  8:11 ` [LTP] [PATCH 11/31] Rename sigset variable to sigset1 Khem Raj
2016-01-08  8:11 ` [LTP] [PATCH 12/31] fsstress.c: Replace __int64_t with int64_t Khem Raj
2016-01-08  8:11 ` [LTP] [PATCH 13/31] include fcntl.h for getting O_* definitions Khem Raj
2016-01-08  8:11 ` [LTP] [PATCH 14/31] hyperthreading: Include sys/types.h for pid_t definition Khem Raj
2016-01-08  8:11 ` [LTP] [PATCH 15/31] mincore01: Rename PAGESIZE to pagesize Khem Raj
2016-01-08  8:11 ` [LTP] [PATCH 16/31] ustat: Change header from ustat.h to sys/ustat.h Khem Raj
2016-01-08  8:11 ` [LTP] [PATCH 17/31] replace sigval_t with union sigval Khem Raj
2016-01-08  8:11 ` [LTP] [PATCH 18/31] guard mallocopt() with __GLIBC__ Khem Raj
2016-01-08  8:11 ` [LTP] [PATCH 19/31] tomoyo: Replace canonicalize_file_name() with realpath() Khem Raj
2016-01-08  8:11 ` [LTP] [PATCH 20/31] getdents: define getdents/getdents64 only for glibc Khem Raj
2016-01-08  8:11 ` [LTP] [PATCH 21/31] Include sys/types.h for MREMAP_MAYMOVE definition Khem Raj
2016-01-08  8:11 ` [LTP] [PATCH 22/31] include sys/types.h Khem Raj
2016-01-08  8:11 ` [LTP] [PATCH 23/31] ptrace: Use int instead of enum __ptrace_request Khem Raj
2016-01-08  8:11 ` [LTP] [PATCH 24/31] rt_sigaction/rt_sigprocmark: Define _GNU_SOURCE Khem Raj
2016-01-08  8:11 ` [LTP] [PATCH 25/31] mc_gethost: include sys/types.h Khem Raj
2016-01-08  8:11 ` [LTP] [PATCH 26/31] crash01: Define _GNU_SOURCE Khem Raj
2016-01-08  8:11 ` [LTP] [PATCH 27/31] sysconf01: Use _SC_2_C_VERSION conditionally Khem Raj
2016-01-08  8:11 ` [LTP] [PATCH 28/31] rt_sigaction.h: Use sighandler_t instead of __sighandler_t Khem Raj
2016-01-08  8:11 ` Khem Raj [this message]
2016-01-08  8:11 ` [LTP] [PATCH 30/31] lib: Use PTHREAD_MUTEX_RECURSIVE in place of PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP for non-glibc Khem Raj
2016-01-08  8:11 ` [LTP] [PATCH 31/31] vma03: fix page size offset as per page size alignment Khem Raj

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=1452240711-51180-29-git-send-email-raj.khem@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.