Skip to content

Commit a30cc14

Browse files
jmberg-intelrichardweinberger
authored andcommitted
um: Don't use generic barrier.h
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>
1 parent 278911e commit a30cc14

2 files changed

Lines changed: 1 addition & 9 deletions

File tree

‎arch/um/include/asm/Kbuild‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# SPDX-License-Identifier: GPL-2.0
2-
generic-y += barrier.h
32
generic-y += bpf_perf_event.h
43
generic-y += bug.h
54
generic-y += compat.h

‎arch/x86/um/asm/barrier.h‎

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,7 @@
22
#ifndef _ASM_UM_BARRIER_H_
33
#define _ASM_UM_BARRIER_H_
44

5-
#include <asm/asm.h>
6-
#include <asm/segment.h>
7-
#include <asm/cpufeatures.h>
8-
#include <asm/cmpxchg.h>
9-
#include <asm/nops.h>
10-
11-
#include <linux/kernel.h>
12-
#include <linux/irqflags.h>
5+
#include <asm/alternative.h>
136

147
/*
158
* Force strict CPU ordering.

0 commit comments

Comments
 (0)