]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
um: Don't use generic barrier.h
authorJohannes Berg <johannes.berg@intel.com>
Wed, 11 Sep 2019 12:51:18 +0000 (14:51 +0200)
committerRichard Weinberger <richard@nod.at>
Sun, 15 Sep 2019 19:37:14 +0000 (21:37 +0200)
UML has its own platform-specific barrier.h under arch/x86/um/,
which should get used. Fix the build system to use it, and then
fix the barrier.h to actually compile.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/include/asm/Kbuild
arch/x86/um/asm/barrier.h

index b352ed09260ec6626f0535e0b3383816492ce166..398006d27e40c420c1b7203ce1d8e643bf9c1a68 100644 (file)
@@ -1,5 +1,4 @@
 # SPDX-License-Identifier: GPL-2.0
-generic-y += barrier.h
 generic-y += bpf_perf_event.h
 generic-y += bug.h
 generic-y += compat.h
index f31e5d9031617b21df04416feef5aff3f85e9b59..eb0654f39fd23f160f52a4b9012c2751e734e83f 100644 (file)
@@ -2,14 +2,7 @@
 #ifndef _ASM_UM_BARRIER_H_
 #define _ASM_UM_BARRIER_H_
 
-#include <asm/asm.h>
-#include <asm/segment.h>
-#include <asm/cpufeatures.h>
-#include <asm/cmpxchg.h>
-#include <asm/nops.h>
-
-#include <linux/kernel.h>
-#include <linux/irqflags.h>
+#include <asm/alternative.h>
 
 /*
  * Force strict CPU ordering.