percpu alloc: add missing extern C
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 1 Mar 2024 15:55:45 +0000 (10:55 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 2 Mar 2024 01:32:11 +0000 (20:32 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I3039487f8e9a130b2fbcb8e6771df449d6021087

include/rseq/percpu-alloc.h

index 65b90f7d41605332571b6d3fc3203120e282d829..1084c756a42546828f1021d7f79a2d8116de6324 100644 (file)
  * rseq/percpu-alloc.h
  */
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 struct rseq_percpu_pool;
 
 struct rseq_percpu_pool *rseq_percpu_pool_create(size_t item_len,
@@ -36,4 +40,8 @@ int rseq_percpu_pool_set_add_pool(struct rseq_percpu_pool_set *pool_set,
 void *rseq_percpu_pool_set_malloc(struct rseq_percpu_pool_set *pool_set, size_t len);
 void *rseq_percpu_pool_set_zmalloc(struct rseq_percpu_pool_set *pool_set, size_t len);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _RSEQ_PERCPU_ALLOC_H */
This page took 0.024708 seconds and 4 git commands to generate.