From 88072c37d640e88b01e5ec967e89022d90075d14 Mon Sep 17 00:00:00 2001 From: Jonathan Neuschäfer Date: Mon, 11 Jun 2018 23:29:09 +0200 Subject: mpmc_ptr_ring: Include all necessary headers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit mpmc_ptr_ring.h should include the headers that it needs explicitly. This commit adds the following: - : smp_rmb, smp_wmb, smp_mb__before_atomic - : atomic_t, atomic_read, atomic_set, atomic_cmpxchg, atomic_inc - : ____cacheline_aligned_in_smp - : READ_ONCE, WRITE_ONCE - : ENOMEM - : is_power_of_2 - : cpu_relax - : kcalloc, kfree - : NULL I'm not sure if all of them are really needed because I wasn't about to provoke a compile error due to the missing includes. Signed-off-by: Jonathan Neuschäfer --- src/mpmc_ptr_ring.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/mpmc_ptr_ring.h') diff --git a/src/mpmc_ptr_ring.h b/src/mpmc_ptr_ring.h index cbcfca4..258a16f 100644 --- a/src/mpmc_ptr_ring.h +++ b/src/mpmc_ptr_ring.h @@ -38,6 +38,17 @@ * [1]: https://github.com/concurrencykit/ck/blob/master/include/ck_ring.h */ +#include +#include +#include +#include +#include +#include +#include +#include +#include + + struct mpmc_ptr_ring { /* Read-mostly data */ void **queue; -- cgit v1.2.3-59-g8ed1b