From c7ec94e0604b81dc6b0832f9c67876961cfcefe2 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Fri, 1 Mar 2024 10:55:45 -0500 Subject: [PATCH] percpu alloc: add missing extern C Signed-off-by: Mathieu Desnoyers Change-Id: I3039487f8e9a130b2fbcb8e6771df449d6021087 --- include/rseq/percpu-alloc.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/rseq/percpu-alloc.h b/include/rseq/percpu-alloc.h index 65b90f7..1084c75 100644 --- a/include/rseq/percpu-alloc.h +++ b/include/rseq/percpu-alloc.h @@ -12,6 +12,10 @@ * 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 */ -- 2.34.1