Rudra Pratap Singh

makeing kernel module

Discussion created by Rudra Pratap Singh on Jun 8, 2012
#obj-m += hello.o ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- #CC=arm-none-linux-gnueabi-  hello.o:hello.c #$(CROSS_COMPILE) $(CFLAGS) hello.c   KDIR := /usr/src/L2.6.31_09.12.01_SDK_source/IMX-LTIB/ltib/rpm/BUILD/linux-2.6.31/kernel  PWD := $(shell pwd)  all: $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules clean: $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) clean   the above is my makefile and my c code is given below  #include /* Needed by all modules */ #include  MODULE_AUTHOR(" Rudra Pratap Singh"); MODULE_LICENSE("GPL");  int init_module(void) { printk(<1> "Hello world 1.\n"); /* * A non 0 return means init_module failed; module can't be loaded. */ return 0; } void cleanup_module(void) { printk(<1> "Goodbye world 1.\n"); }  module_init(init_module); module_exit(cleanup_module); it will shows some errors related to kernel tracepoint.h and marker.h. how to fix this??? please help me