summaryrefslogtreecommitdiff
path: root/arch/x86/machine
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2018-04-21 10:42:11 +0200
committerRichard Braun <rbraun@sceen.net>2018-04-21 10:49:07 +0200
commitec4ddf8b95585cc3e340dd06df109f83a23b2d77 (patch)
treed70e9c7a52c6c5f60e8d971b0eeb4b275d80bb33 /arch/x86/machine
parent89ebd57e0bb3a63f2f794ce41dd4c831b4aeb35c (diff)
Fix atomic operations argument types
In preparation of the rework of atomic operations, all atomic function calls are fixed to use fully supported, compatible types. This means that atomic operations ar erestricted to 32-bit and 64-bit, and that value types must be strictly compatible with pointer types.
Diffstat (limited to 'arch/x86/machine')
-rw-r--r--arch/x86/machine/trap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/machine/trap.c b/arch/x86/machine/trap.c
index 878f20c..534b3f6 100644
--- a/arch/x86/machine/trap.c
+++ b/arch/x86/machine/trap.c
@@ -91,7 +91,7 @@ static void __init
trap_handler_init(struct trap_handler *handler, int flags, trap_handler_fn_t fn)
{
handler->flags = flags;
- atomic_store(&handler->fn, fn, ATOMIC_RELAXED);
+ handler->fn = fn;
}
static void __init