c - parse error before "Ioff_t" -


i writing rfid device driver , encounter compiling error below:

[root@localhost kernel]# make modules   chk     include/linux/version.h make[1]: `arch/arm/kernel/asm-offsets.s' date. make[1]: `include/asm-arm/mach-types.h' date.   cc [m]  drivers/char/gpio_led.o   cc [m]  drivers/char/rf531_drv.o drivers/char/rf531_drv.c:35: error: parse error before "ioff_t" drivers/char/rf531_drv.c:35: warning: function declaration isn't prototype drivers/char/rf531_drv.c:36: error: parse error before "ioff_t" drivers/char/rf531_drv.c:36: warning: function declaration isn't prototype 

then find type ioff_t defined in $(srctree)/include/linux/types.h,so added #include header source code rf531_drv.c,but error still there.anyone had encountered kind of problem? give suggestions , help?

that's loff_t lowercase "l", not ioff_t.


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -