ide_task_request_t 구조체를 찾지 못합니다.
안녕하세요...
분명히 ide_task_request_t 구조체가 선언된 linux/hdreg.h를 include 했음에도 불구하고 gcc로 컴파일하면 에러가 뜹니다...
에러메시지 ------------------
hpa.h:2: error: syntax error before "ide_task_request_t"
hpa.h:2: warning: no semicolon at end of struct or union
hpa.h:5: error: syntax error before '}' token
hpa.h:5: warning: type defaults to `int' in declaration of `task'
hpa.h:5: warning: data definition has no type or storage class
linux/hdreg.h 내용(일부) ----------
typedef struct ide_task_request_s {
task_ioreg_t io_ports[8];
task_ioreg_t hob_ports[8];
ide_reg_valid_t out_flags;
ide_reg_valid_t in_flags;
int data_phase;
int req_cmd;
unsigned long out_size;
unsigned long in_size;
} ide_task_request_t;
hpa.h 내용 ------------------------
typedef struct task {
ide_task_request_t * req_task;
unsigned char outbuf[8];
unsigned char inbuf[8];
} task;
hpa.c 내용(일부) --------------------
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
int hpa( char *device )
{
struct task * task1;
....후략...
구조체 이름이 예약어인가 싶어서 다른 이름(task_file)으로 바꾸어도 보고 이래저래 해보았습니다만 안되네요...
조그마한 정보라도 부탁드립니다...
읽어주셔서 감사합니다...
댓글 달기