diff options
author | Bart Van Assche <bvanassche@acm.org> | 2019-07-08 12:57:49 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-07-08 15:26:00 -0600 |
commit | da457cd34d0d5aeed47223c6954a430bd5b4b1cb (patch) | |
tree | fb0c41da5084febe2264af820f5ada9401d67a34 /src | |
parent | 3036ba12173acb739a62e7e62d127add8a6a5e6c (diff) |
Change __x86_64 into __x86_64__
This patch improves consistency with the Linux kernel source code.
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'src')
-rw-r--r-- | src/barrier.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/barrier.h b/src/barrier.h index e1a407f..eb8ee1e 100644 --- a/src/barrier.h +++ b/src/barrier.h @@ -31,7 +31,7 @@ after the acquire operation executes. This is implemented using #define READ_ONCE(var) (*((volatile typeof(var) *)(&(var)))) -#if defined(__x86_64) || defined(__i386__) +#if defined(__x86_64__) || defined(__i386__) /* From tools/arch/x86/include/asm/barrier.h */ #if defined(__i386__) /* @@ -64,14 +64,14 @@ do { \ ___p1; \ }) #endif /* defined(__x86_64__) */ -#else +#else /* defined(__x86_64__) || defined(__i386__) */ /* * Add arch appropriate definitions. Be safe and use full barriers for * archs we don't have support for. */ #define smp_rmb() __sync_synchronize() #define smp_wmb() __sync_synchronize() -#endif +#endif /* defined(__x86_64__) || defined(__i386__) */ /* From tools/include/asm/barrier.h */ @@ -92,4 +92,4 @@ do { \ }) #endif -#endif +#endif /* defined(LIBURING_BARRIER_H) */ |