From 6279f69f5cb4e305d7b261277f41e0e9498c1f64 Mon Sep 17 00:00:00 2001 From: Dominique Martinet Date: Tue, 12 Sep 2017 10:27:57 +0900 Subject: [PATCH] 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 --- kernel/include/hfi1/ihk_hfi1_common.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/kernel/include/hfi1/ihk_hfi1_common.h b/kernel/include/hfi1/ihk_hfi1_common.h index 91f5fa7d..af31f567 100644 --- a/kernel/include/hfi1/ihk_hfi1_common.h +++ b/kernel/include/hfi1/ihk_hfi1_common.h @@ -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