projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename all 'fixup_tls' functions to 'alloc_tls'
[lttng-ust.git]
/
src
/
common
/
ringbuffer
/
shm.c
diff --git
a/src/common/ringbuffer/shm.c
b/src/common/ringbuffer/shm.c
index a5de019cd8dac4e91fb8fdbbab3101e4788c04da..a3235b6961ad6e0b6c13677c84bd78bb5207b954 100644
(file)
--- a/
src/common/ringbuffer/shm.c
+++ b/
src/common/ringbuffer/shm.c
@@
-29,7
+29,7
@@
#include "common/macros.h"
#include "common/ust-fd.h"
#include "common/macros.h"
#include "common/ust-fd.h"
-#include "mmap.h"
+#include "
common/compat/
mmap.h"
/*
* Ensure we have the required amount of space available by writing 0
/*
* Ensure we have the required amount of space available by writing 0
@@
-264,11
+264,19
@@
static bool lttng_is_numa_available(void)
}
#endif
}
#endif
+#ifdef HAVE_LIBNUMA
struct shm_object *shm_object_table_alloc(struct shm_object_table *table,
size_t memory_map_size,
enum shm_object_type type,
int stream_fd,
int cpu)
struct shm_object *shm_object_table_alloc(struct shm_object_table *table,
size_t memory_map_size,
enum shm_object_type type,
int stream_fd,
int cpu)
+#else
+struct shm_object *shm_object_table_alloc(struct shm_object_table *table,
+ size_t memory_map_size,
+ enum shm_object_type type,
+ int stream_fd,
+ int cpu __attribute__((unused)))
+#endif
{
struct shm_object *shm_object;
#ifdef HAVE_LIBNUMA
{
struct shm_object *shm_object;
#ifdef HAVE_LIBNUMA
This page took
0.023218 seconds
and
4
git commands to generate.