[openib-general] ia64 compile fix for Mellanox HCA

Roland Dreier
Fri Apr 30 10:27:12 PDT 2004


For recent 2.4 and 2.6 kernels, something like this patch is required.
Should I check it in?

(By the way, the problem compiling for 2.4 where EXPORT_SYMBOL
redefines function names used in macros in mosal_wrap_kernel.c and
vipkl_wrap_kernel.c still stands.  Has anyone from Mellanox thought
about how to resolve it?)

 - Roland

Index: src/common/hw/mellanox-hca/mlxsys/mosal/os_dep/linux/mosal_arch.h
===================================================================
--- src/common/hw/mellanox-hca/mlxsys/mosal/os_dep/linux/mosal_arch.h   (revision 93)
+++ src/common/hw/mellanox-hca/mlxsys/mosal/os_dep/linux/mosal_arch.h   (working copy)
@@ -162,8 +162,12 @@
 })
 #endif
 
+#ifndef cmpxchg_acq
 #define cmpxchg_acq(ptr,o,n)    ia64_cmpxchg("acq", (ptr), (o), (n), sizeof(*(ptr)))
+#endif
+#ifndef cmpxchg_rel
 #define cmpxchg_rel(ptr,o,n)    ia64_cmpxchg("rel", (ptr), (o), (n), sizeof(*(ptr)))
+#endif
 
 #ifdef CONFIG_IA64_DEBUG_CMPXCHG
 # define CMPXCHG_BUGCHECK_DECL  int _cmpxchg_bugcheck_count = 128;

-- 
To unsubscribe send an email with subject unsubscribe to openib-general at openib.org.
Please contact moderator at openib.org for questions.




More information about the openib-general mailing list