compiler.h: take in recent linux updates for newer gcc support

Had to remove from original compiler-gcc:
 - things that deal with types, e.g. READ_ONCE macro and friends;
 - #define barrier(). This one would be better there at some point.

hfi1: remove ACCESS_ONCE from hfi1 header
This commit is contained in:
Dominique Martinet
2017-09-12 10:27:57 +09:00
committed by Balazs Gerofi
parent 6959d5ead4
commit 6279f69f5c

View File

@ -80,9 +80,6 @@
# define unlikely(x) __builtin_expect(!!(x), 0)
#endif
/* From: kernel-xppsl_1.5.2/include/linux/compiler.h */
#define ACCESS_ONCE(x) (*(volatile typeof(x) *)&(x))
/* Atomic ops */
#define atomic_inc ihk_atomic_inc
#define atomic_dec ihk_atomic_dec