fix alpha breakage
PATCH 1/1 fix alpha breakage
barrier.h uses barrier() in non-SMP case. And doesn't includecompiler.h.
Signed-off-by Al Viro <[email protected]>
----
include/asm-alpha/barrier.h +2 -0
@@ -1,6 +1,8 @@#ifndef __BARRIER_H#define __BARRIER_H +#include <linux/compiler.h> +#define mb () \ __asm__ __volatile__("mb": : :"memory")
Quoted 2 lines · Al Viro
barrier.husesbarrier()in non-SMP case. And doesn't includecompiler.h.
Thanks, but better use <asm-alpha/compiler.h> because of potential problems with the "inline" redefinition.
Ivan.
include/asm-alpha/barrier.h +2 -0
@@ -1,6 +1,8 @@#ifndef __BARRIER_H#define __BARRIER_H +#include <asm/compiler.h> +#define mb () \ __asm__ __volatile__("mb": : :"memory")