> think u need to define two more symbols on > ur command line when u compile > not prety sure of this but u will need to > -DMODULE -D__KERNEL__ > with gcc it would look like > gcc -O2 -Wall -DMODULE -D__KERNEL__ - > smem.c -c Thanks amit, but I've already done this and it still does not work. Here is my Makefile: # Makefile for klar CC=arm-linux-gcc KINC=-I/skiff/src/linux/linux-2.4.18-rmk3/include KDEFS=-D__KERNEL__ -DMODULE -DMODVERSIONS -include /skiff/local/arm-linux/include/linux/modversions.h KC_ALL=-Wall -W -O2 $(KDEFS) $(KINC) klar.o: klar.c $(CC) $(KC_ALL) -o $@ -c $< If you see anything wrong, let me know! Thanks again. - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html