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
Post a Comment