Re: [PATCH] fix alpha breakage

From: Ivan Kokshaysky
Date: Wed Oct 26 2005 - 07:22:25 EST


On Wed, Oct 26, 2005 at 11:06:23AM +0100, Al Viro wrote:
> barrier.h uses barrier() in non-SMP case. And doesn't include
> compiler.h.

Thanks, but better use <asm-alpha/compiler.h> because of potential
problems with the "inline" redefinition.

Ivan.

--- 2.6.14-rc5-git6/include/asm-alpha/barrier.h Wed Oct 26 14:43:16 2005
+++ linux/include/asm-alpha/barrier.h Wed Oct 26 15:03:47 2005
@@ -1,6 +1,8 @@
#ifndef __BARRIER_H
#define __BARRIER_H

+#include <asm/compiler.h>
+
#define mb() \
__asm__ __volatile__("mb": : :"memory")

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/