From: Henrik Austad <haustad@cisco.com>
To: Clark Williams <williams@redhat.com>, John Kacur <jkacur@redhat.com>
Cc: linux-rt-users@vger.kernel.org, Henrik Austad <haustad@cisco.com>
Subject: [PATCH 6/7] rt_test.h: add numa_available() for !NUMA
Date: Fri, 18 Sep 2015 18:52:49 +0200 [thread overview]
Message-ID: <1442595170-6229-7-git-send-email-haustad@cisco.com> (raw)
In-Reply-To: <1442595170-6229-1-git-send-email-haustad@cisco.com>
Code will snould not call numa_available(), but compiler will complain
with:
src/cyclictest/rt_numa.h:263: warning: implicit declaration of function ‘numa_available’
Signed-off-by: Henrik Austad <haustad@cisco.com>
---
src/cyclictest/rt_numa.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/cyclictest/rt_numa.h b/src/cyclictest/rt_numa.h
index 06c9420..172d9b2 100644
--- a/src/cyclictest/rt_numa.h
+++ b/src/cyclictest/rt_numa.h
@@ -200,6 +200,7 @@ struct bitmask {
};
#define BITS_PER_LONG (8*sizeof(long))
+static inline int numa_available(void) { return 0; }
static inline void *threadalloc(size_t size, int n) { return malloc(size); }
static inline void threadfree(void *ptr, size_t s, int n) { free(ptr); }
static inline void rt_numa_set_numa_run_on_node(int n, int c) { }
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2015-09-18 17:04 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-18 16:52 [PATCH 0/7] RFC v1: add support for tilegx and (partial) android support to rt-test Henrik Austad
2015-09-18 16:52 ` [PATCH 1/7] Add CROSS_COMPILE-switch to CC and AR Henrik Austad
2015-09-18 16:52 ` [PATCH 2/7] Add syscall-number for sched_(gs)etattr() for tile Henrik Austad
2015-09-18 16:52 ` [PATCH 3/7] Add a rebuild-switch to Makefile Henrik Austad
2015-09-18 21:10 ` Josh Cartwright
2015-09-19 5:41 ` Henrik Austad
2015-09-18 16:52 ` [PATCH 4/7] Fix compile-warnings Henrik Austad
2015-09-18 16:52 ` [PATCH 5/7] Makefile: add librttest to rt-migrate-test Henrik Austad
2015-09-18 16:52 ` Henrik Austad [this message]
2015-09-18 21:27 ` [PATCH 6/7] rt_test.h: add numa_available() for !NUMA Josh Cartwright
2015-09-19 5:49 ` Henrik Austad
2015-09-18 16:52 ` [PATCH 7/7] android: adjust target for android Henrik Austad
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=1442595170-6229-7-git-send-email-haustad@cisco.com \
--to=haustad@cisco.com \
--cc=jkacur@redhat.com \
--cc=linux-rt-users@vger.kernel.org \
--cc=williams@redhat.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).