[질문] error입니다.

/dev/abc 라는 디바이스 파일 만들어 접근을 하려 하는데요...
처음에 file_operations를 만들어야 한다고 하더라구요...그래서 간단한
테스트를 하려고....다음과 같은 소스를 짜서 컴파일 했는데...에러가 났
습니다. 어떻게 해결 하면 좋을 까요???
#define MODULE
#include
#include
#include
extern int devread(struct inode *, struct file *, char *, int);
extern int devwrite(struct inode *, struct file *, char *, int);
extern int devioctl(struct inode *, struct file *, unsigned int,
unsigned long);
extern int deviopen(struct inode *, struct file *);
extern int devclose(struct inode *, struct file *);
struct file_operations scull_pipe_fops = {
NULL,
devread,
devwirte,
NULL,
NULL,
devioctl,
NULL,
devopen,
devclose
};
------------------에러--------------------------
[root@localhost root]# make
cc -O2 -I.. -c -o make_module.o make_module.c
make_module.c412 warning no newline at end of file
.....................
make *** [make_module.o] 오류 1
댓글 달기