I have been trying to compile my code with mlnx-ofed-kernel-3.3/ headers but it is picking the kernel headers. The function definition in the kernel headers and mlnx-headers is different.
The make file I am using is:
ccflags-y=-I/usr/src/mlnx-ofed-kernel-3.3/include/
obj-m += mymodule.o myothermodule.o
.PHONY: copy_symvers load unload
ifndef PATH_KERNEL
PATH_KERNEL = /lib/modules/$(shell uname -r)/build
endif
all:
make -C ${PATH_KERNEL} M=$(PWD) modules
copy_symvers:
cp /usr/src/ofa_kernel/default/Module.symvers .
load:
sudo insmod mymodule.ko
unload:
sudo rmmod -f mymodule.ko
clean:
make -C ${PATH_KERNEL} M=$(PWD) clean
rm *~ -f
Can somebody point out the mistake?