2001-02-16 10:37:09

by s.srinivas

[permalink] [raw]
Subject: driver compilations errors


iam getting compilation errors for driver code.

struct file_operations my_ops ={NULL,my_read,my_write,NULL,NULL,NULL
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL
NULL };

ERROR -> my_ops has intializer but incomplete type


pls can anybody
help



2001-02-16 11:03:17

by Stefan Smietanowski

[permalink] [raw]
Subject: Re: driver compilations errors

Hi.

> iam getting compilation errors for driver code.
>
> struct file_operations my_ops ={NULL,my_read,my_write,NULL,NULL,NULL
> NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL
> NULL }; ^^^^
^^
>
> ERROR -> my_ops has intializer but incomplete type

Well, for one there's no "," between the last "NULL"s...

// Stefan