Cleanup: remove trailing whitespaces at EOL
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 28 Sep 2015 15:50:51 +0000 (11:50 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 28 Sep 2015 15:51:15 +0000 (11:51 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
27 files changed:
compat_futex.c
rculfhash.c
urcu-bp.h
urcu-call-rcu.h
urcu-defer.h
urcu-pointer.h
urcu-qsbr.h
urcu.h
urcu/arch/arm.h
urcu/arch/gcc.h
urcu/arch/generic.h
urcu/arch/ppc.h
urcu/arch/s390.h
urcu/arch/sparc64.h
urcu/arch/x86.h
urcu/futex.h
urcu/static/urcu-bp.h
urcu/static/urcu-pointer.h
urcu/static/urcu-qsbr.h
urcu/static/urcu.h
urcu/uatomic/arm.h
urcu/uatomic/gcc.h
urcu/uatomic/ppc.h
urcu/uatomic/s390.h
urcu/uatomic/sparc64.h
urcu/uatomic/unknown.h
urcu/uatomic/x86.h

index 6fe378f965d4407734fe16f3ffcc8ff8eb4afbb1..b7f78f0b1c87a832cfb33c22e3a93845bbe7d3bb 100644 (file)
@@ -58,7 +58,7 @@ int compat_futex_noasync(int32_t *uaddr, int op, int32_t val,
 
        /*
         * Check if NULL. Don't let users expect that they are taken into
-        * account. 
+        * account.
         */
        assert(!timeout);
        assert(!uaddr2);
@@ -120,7 +120,7 @@ int compat_futex_async(int32_t *uaddr, int op, int32_t val,
 
        /*
         * Check if NULL. Don't let users expect that they are taken into
-        * account. 
+        * account.
         */
        assert(!timeout);
        assert(!uaddr2);
index 710751bc4bf022eccb037f49957b842c9161d67c..19767096d20b0f3e840059596a7ea0ec4673c30f 100644 (file)
  * To discuss these guarantees, we first define "read" operation as any
  * of the the basic cds_lfht_lookup, cds_lfht_next_duplicate,
  * cds_lfht_first, cds_lfht_next operation, as well as
- * cds_lfht_add_unique (failure). 
+ * cds_lfht_add_unique (failure).
  *
  * We define "read traversal" operation as any of the following
  * group of operations
  * shrink hash table from order 6 to 5: fini the index=6 bucket node table
  *
  * A bit of ascii art explanation:
- * 
+ *
  * The order index is the off-by-one compared to the actual power of 2
  * because we use index 0 to deal with the 0 special-case.
- * 
+ *
  * This shows the nodes for a small table ordered by reversed bits:
- * 
+ *
  *    bits   reverse
  * 0  000        000
  * 4  100        001
  * 5  101        101
  * 3  011        110
  * 7  111        111
- * 
- * This shows the nodes in order of non-reversed bits, linked by 
+ *
+ * This shows the nodes in order of non-reversed bits, linked by
  * reversed-bit order.
- * 
+ *
  * order              bits       reverse
  * 0               0  000        000
  * 1               |  1  001        100             <-
@@ -364,7 +364,7 @@ struct partition_resize_work {
  * Originally from Public Domain.
  */
 
-static const uint8_t BitReverseTable256[256] = 
+static const uint8_t BitReverseTable256[256] =
 {
 #define R2(n) (n),   (n) + 2*64,     (n) + 1*64,     (n) + 3*64
 #define R4(n) R2(n), R2((n) + 2*16), R2((n) + 1*16), R2((n) + 3*16)
@@ -385,21 +385,21 @@ uint8_t bit_reverse_u8(uint8_t v)
 static
 uint32_t bit_reverse_u32(uint32_t v)
 {
-       return ((uint32_t) bit_reverse_u8(v) << 24) | 
-               ((uint32_t) bit_reverse_u8(v >> 8) << 16) | 
-               ((uint32_t) bit_reverse_u8(v >> 16) << 8) | 
+       return ((uint32_t) bit_reverse_u8(v) << 24) |
+               ((uint32_t) bit_reverse_u8(v >> 8) << 16) |
+               ((uint32_t) bit_reverse_u8(v >> 16) << 8) |
                ((uint32_t) bit_reverse_u8(v >> 24));
 }
 #else
 static
 uint64_t bit_reverse_u64(uint64_t v)
 {
-       return ((uint64_t) bit_reverse_u8(v) << 56) | 
-               ((uint64_t) bit_reverse_u8(v >> 8)  << 48) | 
+       return ((uint64_t) bit_reverse_u8(v) << 56) |
+               ((uint64_t) bit_reverse_u8(v >> 8)  << 48) |
                ((uint64_t) bit_reverse_u8(v >> 16) << 40) |
                ((uint64_t) bit_reverse_u8(v >> 24) << 32) |
-               ((uint64_t) bit_reverse_u8(v >> 32) << 24) | 
-               ((uint64_t) bit_reverse_u8(v >> 40) << 16) | 
+               ((uint64_t) bit_reverse_u8(v >> 32) << 24) |
+               ((uint64_t) bit_reverse_u8(v >> 40) << 16) |
                ((uint64_t) bit_reverse_u8(v >> 48) << 8) |
                ((uint64_t) bit_reverse_u8(v >> 56));
 }
index b40b3b6a0dc63fee58bbe7fa6083b35d68c77fa2..7a265dc5f91b1899ef35a73d31eb7782d4d2e5a3 100644 (file)
--- a/urcu-bp.h
+++ b/urcu-bp.h
@@ -180,7 +180,7 @@ static inline void rcu_thread_online(void)
 {
 }
 
-#ifdef __cplusplus 
+#ifdef __cplusplus
 }
 #endif
 
index 98807ea134f8e177bf2e3d432ace5f6a0f98a367..339ebacc3f7c013975d62370ca27aa47b282e724 100644 (file)
@@ -94,7 +94,7 @@ void call_rcu_after_fork_child(void);
 
 void rcu_barrier(void);
 
-#ifdef __cplusplus 
+#ifdef __cplusplus
 }
 #endif
 
index 3710081cd06a20d796eee3d5cfb8deea83204b27..43eca34fe2f0c363d9f58a2380d1203541590450 100644 (file)
@@ -39,7 +39,7 @@ extern "C" {
 /*
  * Note: the defer_rcu() API is currently EXPERIMENTAL. It may change in the
  * future.
- * 
+ *
  * Important !
  *
  * Each thread queuing memory reclamation must be registered with
@@ -60,7 +60,7 @@ extern void rcu_defer_unregister_thread(void);
 extern void rcu_defer_barrier(void);
 extern void rcu_defer_barrier_thread(void);
 
-#ifdef __cplusplus 
+#ifdef __cplusplus
 }
 #endif
 
index 18ea99ecf3808ddcbc81aa29f033c815d4483381..dc1a0dac60718b15d1f8eb844b3feca315dd4068 100644 (file)
@@ -32,7 +32,7 @@
 
 #ifdef __cplusplus
 extern "C" {
-#endif 
+#endif
 
 #if defined(_LGPL_SOURCE) || defined(URCU_INLINE_SMALL_FUNCTIONS)
 
@@ -122,7 +122,7 @@ extern void *rcu_set_pointer_sym(void **p, void *v);
  */
 #define rcu_assign_pointer(p, v)       rcu_set_pointer((&p), (v))
 
-#ifdef __cplusplus 
+#ifdef __cplusplus
 }
 #endif
 
index 82a045c2bc114b714891903ccab3b0b87fc52f4b..bf173618bf9a0dee1da8441ff2c14ada233fa064 100644 (file)
@@ -39,7 +39,7 @@
 
 #ifdef __cplusplus
 extern "C" {
-#endif 
+#endif
 
 #include <urcu/map/urcu-qsbr.h>
 
@@ -127,7 +127,7 @@ extern void synchronize_rcu(void);
 extern void rcu_register_thread(void);
 extern void rcu_unregister_thread(void);
 
-#ifdef __cplusplus 
+#ifdef __cplusplus
 }
 #endif
 
diff --git a/urcu.h b/urcu.h
index b8ca700ddcdb750270c5e39bd86080b559102363..85d4a4cdd47db666dfc4cee9c9e80d0879c5c956 100644 (file)
--- a/urcu.h
+++ b/urcu.h
@@ -42,7 +42,7 @@
 
 #ifdef __cplusplus
 extern "C" {
-#endif 
+#endif
 
 #include <urcu/map/urcu.h>
 
@@ -126,7 +126,7 @@ static inline void rcu_thread_online(void)
 {
 }
 
-#ifdef __cplusplus 
+#ifdef __cplusplus
 }
 #endif
 
index 9483bab0e23761a8f6e853dfbe9258b73adb8256..d7affaabe85685b6c62929073e7baa732ef69a1d 100644 (file)
@@ -28,7 +28,7 @@
 
 #ifdef __cplusplus
 extern "C" {
-#endif 
+#endif
 
 #ifdef CONFIG_RCU_ARM_HAVE_DMB
 #define cmm_mb()       __asm__ __volatile__ ("dmb":::"memory")
@@ -47,7 +47,7 @@ extern "C" {
 #define __NR_membarrier                389
 #endif
 
-#ifdef __cplusplus 
+#ifdef __cplusplus
 }
 #endif
 
index 8684a16f92638f0a0f8f5ef08d85ca2b90dbaa10..e5700e451df7757eb1232a3fc8d4f4e9e283eadf 100644 (file)
 
 #ifdef __cplusplus
 extern "C" {
-#endif 
+#endif
 
 #include <stdlib.h>
 #include <sys/time.h>
 
-#ifdef __cplusplus 
+#ifdef __cplusplus
 }
 #endif
 
index a80b3d6c13c1bb0e015837181d1e312380601c53..e53ac564d5753216bd6400829deae651c03cf409 100644 (file)
@@ -62,7 +62,7 @@ extern "C" {
 /*
  * Architectures without cache coherency need something like the following:
  *
- * #define cmm_mc()    arch_cache_flush() 
+ * #define cmm_mc()    arch_cache_flush()
  * #define cmm_rmc()   arch_cache_flush_read()
  * #define cmm_wmc()   arch_cache_flush_write()
  *
index 0bef952ccd20095714bcb96839464a7fdf8681ff..dbdfec8a58dd3f29414fbc99aa48e83fa701cff3 100644 (file)
@@ -28,7 +28,7 @@
 
 #ifdef __cplusplus
 extern "C" {
-#endif 
+#endif
 
 /* Include size of POWER5+ L3 cache lines: 256 bytes */
 #define CAA_CACHE_LINE_SIZE    256
@@ -115,7 +115,7 @@ static inline cycles_t caa_get_cycles(void)
 #define __NR_membarrier                365
 #endif
 
-#ifdef __cplusplus 
+#ifdef __cplusplus
 }
 #endif
 
index 86a0a3689244b1ec2f9772fcda5a1093138aec2f..e12c88c3398728025e745bd53e4c997e1d5e2fca 100644 (file)
@@ -34,7 +34,7 @@
 
 #ifdef __cplusplus
 extern "C" {
-#endif 
+#endif
 
 #define CAA_CACHE_LINE_SIZE    128
 
@@ -61,7 +61,7 @@ static inline cycles_t caa_get_cycles (void)
 #define __NR_membarrier                356
 #endif
 
-#ifdef __cplusplus 
+#ifdef __cplusplus
 }
 #endif
 
index fb99450d36fd0521d1fcb9de72f97cd229cab579..6ce323fdf82abf112e282d57338f1e100d84eee5 100644 (file)
@@ -28,7 +28,7 @@
 
 #ifdef __cplusplus
 extern "C" {
-#endif 
+#endif
 
 #define CAA_CACHE_LINE_SIZE    256
 
@@ -45,7 +45,7 @@ __asm__ __volatile__("ba,pt %%xcc, 1f\n\t"    \
 #define cmm_rmb()      membar_safe("#LoadLoad")
 #define cmm_wmb()      membar_safe("#StoreStore")
 
-#ifdef __cplusplus 
+#ifdef __cplusplus
 }
 #endif
 
index afbf4fad37b68b8cb18f2eccb15f8c308e1eb02d..a5b3a23b385f26f7aea6b5daaf70cab762fc4262 100644 (file)
@@ -28,7 +28,7 @@
 
 #ifdef __cplusplus
 extern "C" {
-#endif 
+#endif
 
 #define CAA_CACHE_LINE_SIZE    128
 
@@ -103,7 +103,7 @@ static inline cycles_t caa_get_cycles(void)
 #endif
 #endif
 
-#ifdef __cplusplus 
+#ifdef __cplusplus
 }
 #endif
 
index 4beb54a3d206f2d68e905dd25233f7e6819a529f..4d16cfa5201453954dc7e6233372ea6969d23c26 100644 (file)
@@ -28,7 +28,7 @@
 
 #ifdef __cplusplus
 extern "C" {
-#endif 
+#endif
 
 #define FUTEX_WAIT             0
 #define FUTEX_WAKE             1
@@ -109,7 +109,7 @@ static inline int futex_async(int32_t *uaddr, int op, int32_t val,
 
 #endif
 
-#ifdef __cplusplus 
+#ifdef __cplusplus
 }
 #endif
 
index 182e5feb24f1b5d7022a89a30f342c38821a4211..6e52d84bafe84f75dfd45593a2b58cad6431bcd0 100644 (file)
@@ -199,7 +199,7 @@ static inline int _rcu_read_ongoing(void)
        return URCU_TLS(rcu_reader)->ctr & RCU_GP_CTR_NEST_MASK;
 }
 
-#ifdef __cplusplus 
+#ifdef __cplusplus
 }
 #endif
 
index 06371e3dd1c066387db5316087346ccf9bbdf80b..28333c57746e927bfc44e06e0a9fcc2b0e4794e2 100644 (file)
@@ -36,7 +36,7 @@
 
 #ifdef __cplusplus
 extern "C" {
-#endif 
+#endif
 
 /**
  * _rcu_dereference - reads (copy) a RCU-protected pointer to a local variable
@@ -141,7 +141,7 @@ extern "C" {
  */
 #define _rcu_assign_pointer(p, v)      _rcu_set_pointer(&(p), v)
 
-#ifdef __cplusplus 
+#ifdef __cplusplus
 }
 #endif
 
index 8e46820d7ae7436812f5ce8c9d1b1cc7d57f6900..8d5fd03107373b5cee0d51273624da5c05552bdb 100644 (file)
@@ -46,7 +46,7 @@
 
 #ifdef __cplusplus
 extern "C" {
-#endif 
+#endif
 
 /*
  * This code section can only be included in LGPL 2.1 compatible source code.
@@ -234,7 +234,7 @@ static inline void _rcu_thread_online(void)
        cmm_smp_mb();
 }
 
-#ifdef __cplusplus 
+#ifdef __cplusplus
 }
 #endif
 
index 92185d7629a72f2ceb70d109f24bd959e062529d..9082af71a92c443dd0efe8be74d879c55dd56ddd 100644 (file)
@@ -46,7 +46,7 @@
 
 #ifdef __cplusplus
 extern "C" {
-#endif 
+#endif
 
 /* Default is RCU_MEMBARRIER */
 #if !defined(RCU_MEMBARRIER) && !defined(RCU_MB) && !defined(RCU_SIGNAL)
index e0016b8e3153572caac53956df86a5b612481c0c..fd8fe6abfc6c22348a354e49db5e0690a609d514 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef _URCU_ARCH_UATOMIC_ARM_H
 #define _URCU_ARCH_UATOMIC_ARM_H
 
-/* 
+/*
  * Atomics for ARM.  This approach is usable on kernels back to 2.6.15.
  *
  * Copyright (c) 1991-1994 by Xerox Corporation.  All rights reserved.
 
 #ifdef __cplusplus
 extern "C" {
-#endif 
+#endif
 
 /* xchg */
 #define uatomic_xchg(addr, v) __sync_lock_test_and_set(addr, v)
 
-#ifdef __cplusplus 
+#ifdef __cplusplus
 }
 #endif
 
index 47ca195471cbed3ce2dc830a1d6c51f9f5c204f9..438e039309db0513edda9f8de6bda462e67a9e9f 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef _URCU_ARCH_UATOMIC_GCC_H
 #define _URCU_ARCH_UATOMIC_GCC_H
 
-/* 
+/*
  * Copyright (c) 1991-1994 by Xerox Corporation.  All rights reserved.
  * Copyright (c) 1996-1999 by Silicon Graphics.  All rights reserved.
  * Copyright (c) 1999-2004 Hewlett-Packard Development Company, L.P.
@@ -27,7 +27,7 @@
 
 #ifdef __cplusplus
 extern "C" {
-#endif 
+#endif
 
 /*
  * If your platform doesn't have a full set of atomics, you will need
@@ -37,7 +37,7 @@ extern "C" {
 #define UATOMIC_HAS_ATOMIC_BYTE
 #define UATOMIC_HAS_ATOMIC_SHORT
 
-#ifdef __cplusplus 
+#ifdef __cplusplus
 }
 #endif
 
index 57fcd7a6dcb447dc099f6ee9238108704b303a97..0e672f57260529679b7c15d31304f57767328bb9 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef _URCU_ARCH_UATOMIC_PPC_H
 #define _URCU_ARCH_UATOMIC_PPC_H
 
-/* 
+/*
  * Copyright (c) 1991-1994 by Xerox Corporation.  All rights reserved.
  * Copyright (c) 1996-1999 by Silicon Graphics.  All rights reserved.
  * Copyright (c) 1999-2004 Hewlett-Packard Development Company, L.P.
@@ -25,7 +25,7 @@
 
 #ifdef __cplusplus
 extern "C" {
-#endif 
+#endif
 
 #define ILLEGAL_INSTR  ".long  0xd00d00"
 
@@ -228,7 +228,7 @@ unsigned long _uatomic_add_return(void *addr, unsigned long val,
                                                caa_cast_long_keep_sign(v), \
                                                sizeof(*(addr))))
 
-#ifdef __cplusplus 
+#ifdef __cplusplus
 }
 #endif
 
index 32c676e0af590af4e983d61074ca4b8b11ed5441..62561e000224ccb4c71e244a239eab5ac730f70b 100644 (file)
@@ -34,7 +34,7 @@
 
 #ifdef __cplusplus
 extern "C" {
-#endif 
+#endif
 
 #if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 2)
 #define COMPILER_HAVE_SHORT_MEM_OPERAND
@@ -152,7 +152,7 @@ unsigned long _uatomic_cmpxchg(void *addr, unsigned long old,
                                               caa_cast_long_keep_sign(_new),\
                                               sizeof(*(addr)))
 
-#ifdef __cplusplus 
+#ifdef __cplusplus
 }
 #endif
 
index 62945668fa6612734ca26bbffb965951bda394c4..a9f27954657cdf6b0b8ad1a9c1a720b695a8b248 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef _URCU_ARCH_UATOMIC_SPARC64_H
 #define _URCU_ARCH_UATOMIC_SPARC64_H
 
-/* 
+/*
  * Copyright (c) 1991-1994 by Xerox Corporation.  All rights reserved.
  * Copyright (c) 1996-1999 by Silicon Graphics.  All rights reserved.
  * Copyright (c) 1999-2003 by Hewlett-Packard Company. All rights reserved.
@@ -25,7 +25,7 @@
 
 #ifdef __cplusplus
 extern "C" {
-#endif 
+#endif
 
 /* cmpxchg */
 
@@ -72,7 +72,7 @@ unsigned long _uatomic_cmpxchg(void *addr, unsigned long old,
                                                caa_cast_long_keep_sign(_new), \
                                                sizeof(*(addr))))
 
-#ifdef __cplusplus 
+#ifdef __cplusplus
 }
 #endif
 
index 6fb4eb38aa73a9f9d948cdece0b12dae19d40062..eb18526003ee838119b327cf0b7cb33a890800d5 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef _URCU_ARCH_UATOMIC_UNKNOWN_H
 #define _URCU_ARCH_UATOMIC_UNKNOWN_H
 
-/* 
+/*
  * Copyright (c) 1991-1994 by Xerox Corporation.  All rights reserved.
  * Copyright (c) 1996-1999 by Silicon Graphics.  All rights reserved.
  * Copyright (c) 1999-2004 Hewlett-Packard Development Company, L.P.
index a139228346cb64b5eed2425f0d71f8f78f58e9dc..129a2f5670385880870912235a14a63a6d0ea99e 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef _URCU_ARCH_UATOMIC_X86_H
 #define _URCU_ARCH_UATOMIC_X86_H
 
-/* 
+/*
  * Copyright (c) 1991-1994 by Xerox Corporation.  All rights reserved.
  * Copyright (c) 1996-1999 by Silicon Graphics.  All rights reserved.
  * Copyright (c) 1999-2004 Hewlett-Packard Development Company, L.P.
@@ -28,7 +28,7 @@
 
 #ifdef __cplusplus
 extern "C" {
-#endif 
+#endif
 
 /*
  * Derived from AO_compare_and_swap() and AO_test_and_set_full().
@@ -620,7 +620,7 @@ extern unsigned long _compat_uatomic_add_return(void *addr,
 #define cmm_smp_mb__before_uatomic_dec()       cmm_barrier()
 #define cmm_smp_mb__after_uatomic_dec()                cmm_barrier()
 
-#ifdef __cplusplus 
+#ifdef __cplusplus
 }
 #endif
 
This page took 0.038446 seconds and 4 git commands to generate.