diff --git a/include/asm-alpha/compiler.h b/include/asm-alpha/compiler.h
index 4d2bf568d9f7e08554c7e7ceb3ff0354747cbcff..dcfa94b87593992faed61c16965c89d42018598d 100644
--- a/include/asm-alpha/compiler.h
+++ b/include/asm-alpha/compiler.h
@@ -47,7 +47,7 @@
      __kir; })
 # define __kernel_cmpbge(a, b)						\
   ({ unsigned long __kir;						\
-     __asm__("cmpbge %r2,%1,%0" : "=r"(__kir) : "rI"(b), "rJ"(val));	\
+     __asm__("cmpbge %r2,%1,%0" : "=r"(__kir) : "rI"(b), "rJ"(a));	\
      __kir; })
 # define __kernel_cttz(x)						\
   ({ unsigned long __kir;						\