[openib-general] svn status?
Roland Dreier
Wed Apr 21 19:17:34 PDT 2004
I think you'll also need the patch in this email for kernel 2.4.
The kernel 2.4 build also fails with symbol versioning on because of
code in mosal_wrap_kernel.c like the below:
/*****************************************
struct i_MOSAL_PCI_write_config_word_ops_t {
IN u_int16_t data;
IN u_int8_t bus;
IN u_int8_t dev_func;
IN u_int8_t offset;
};
struct o_MOSAL_PCI_write_config_word_ops_t {
OUT call_result_t ret;
};
******************************************/
/* call_result_t MOSAL_PCI_write_config_word( u_int8_t bus, u_int8_t dev_func, u_int8_t offset, u_int16_t data ) */
W_FUNC_START(MOSAL_PCI_write_config_word)
W_RET = MOSAL_PCI_write_config_word(pi->bus, pi->dev_func, pi->offset, pi->data);
W_FUNC_END_RC_SZ(MOSAL_PCI_write_config_word)
Since MOSAL_PCI_write_config_word is an exported symbol, it gets
turned into a macro (defined to something like
MOSAL_PCI_write_config_word_Rsmp_7a5da343). This screws up the
expansion of W_FUNC_START so the code won't compile.
The quickest solution is to change your uses of EXPORT_SYMBOL to
EXPORT_SYMBOL_NOVERS. Eventually you'll want to figure out a cleaner
solution.
- R.
Index: src/linux-kernel/infiniband/hw/mellanox-hca/mosal/Makefile.24
===================================================================
--- src/linux-kernel/infiniband/hw/mellanox-hca/mosal/Makefile.24 (revision 82)
+++ src/linux-kernel/infiniband/hw/mellanox-hca/mosal/Makefile.24 (working copy)
@@ -1,4 +1,4 @@
-IB_SRC_DIR ?= $(TOPDIR)/driver/infiniband
+IB_SRC_DIR ?= $(TOPDIR)/drivers/infiniband
MOSAL_CFLAGS:=$(shell $(IB_SRC_DIR)/hw/mellanox-hca/mosal/genflags.sh $(KERNELRELEASE) 2>&1)
Index: src/linux-kernel/infiniband/hw/mellanox-hca/mpga/Makefile.24
===================================================================
--- src/linux-kernel/infiniband/hw/mellanox-hca/mpga/Makefile.24 (revision 82)
+++ src/linux-kernel/infiniband/hw/mellanox-hca/mpga/Makefile.24 (working copy)
@@ -1,4 +1,4 @@
-IB_SRC_DIR ?= $(TOPDIR)/driver/infiniband
+IB_SRC_DIR ?= $(TOPDIR)/drivers/infiniband
EXTRA_CFLAGS += \
-I$(IB_SRC_DIR)/include \
Index: src/linux-kernel/infiniband/hw/mellanox-hca/thh/Makefile.24
===================================================================
--- src/linux-kernel/infiniband/hw/mellanox-hca/thh/Makefile.24 (revision 82)
+++ src/linux-kernel/infiniband/hw/mellanox-hca/thh/Makefile.24 (working copy)
@@ -1,4 +1,4 @@
-IB_SRC_DIR ?= $(TOPDIR)/driver/infiniband
+IB_SRC_DIR ?= $(TOPDIR)/drivers/infiniband
EXTRA_CFLAGS += \
-I$(IB_SRC_DIR)/include \
Index: src/linux-kernel/infiniband/hw/mellanox-hca/vapi/Makefile.24
===================================================================
--- src/linux-kernel/infiniband/hw/mellanox-hca/vapi/Makefile.24 (revision 82)
+++ src/linux-kernel/infiniband/hw/mellanox-hca/vapi/Makefile.24 (working copy)
@@ -1,4 +1,4 @@
-IB_SRC_DIR ?= $(TOPDIR)/driver/infiniband
+IB_SRC_DIR ?= $(TOPDIR)/drivers/infiniband
EXTRA_CFLAGS += \
-I$(IB_SRC_DIR)/include \
Index: src/linux-kernel/infiniband/hw/mellanox-hca/vapi_common/Makefile.24
===================================================================
--- src/linux-kernel/infiniband/hw/mellanox-hca/vapi_common/Makefile.24 (revision 82)
+++ src/linux-kernel/infiniband/hw/mellanox-hca/vapi_common/Makefile.24 (working copy)
@@ -1,4 +1,4 @@
-IB_SRC_DIR ?= $(TOPDIR)/driver/infiniband
+IB_SRC_DIR ?= $(TOPDIR)/drivers/infiniband
EXTRA_CFLAGS += \
-I$(IB_SRC_DIR)/include \
--
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