2000-11-14 17:28:27

by Michal Jaegermann

[permalink] [raw]
Subject: [PATCH] __builtin_expect in 2.4.0-test11pre4

At least on Alpha, and possibly other architectures, the following
minor correction is needed:

--- linux-2.4.0p11p/include/asm-alpha/semaphore.h~ Mon Nov 13 14:01:10 2000
+++ linux-2.4.0p11p/include/asm-alpha/semaphore.h Mon Nov 13 14:03:44 2000
@@ -11,6 +11,7 @@
#include <asm/current.h>
#include <asm/system.h>
#include <asm/atomic.h>
+#include <asm/compiler.h>

#define DEBUG_SEMAPHORE 0
#define DEBUG_RW_SEMAPHORE 0

or various version of a compiler are blowing a fuse on a missing
__builtin_expect prototype.

Michal


2000-11-14 19:27:10

by Richard Henderson

[permalink] [raw]
Subject: Re: [PATCH] __builtin_expect in 2.4.0-test11pre4

On Tue, Nov 14, 2000 at 09:58:00AM -0700, Michal Jaegermann wrote:
> +#include <asm/compiler.h>

Ug. Of course, this is what I intended after having added
the define to compiler.h.


r~