I created a header file for a driver module:
#define DEVICE_NAME "asic"
#define MODULE_NAME "CHR_DRV"
#define XXX_DEV_MAJOR_NO 210
typedef struct _tagDRV_STRUCT
struct cdev dev;//incomplete type.
extern XXX_DEV dev_info;
When compile this module, an error prompt: 'dev' has incomplete type.
I don't know why. The 'struct cdev' is defined in 'linux/cdev.h' . I am using the system GCC and the system kernel headers. But when I compile this module in your another version PCLinuxOS 2007 TR3, it is OK! Is this version of GCC in PCLinuxOS 2010.7 has some problems?