[ENBD] 2.6.0 support
Peter T. Breuer
ptb at it.uc3m.es
Thu Jan 15 14:38:16 MST 2004
"Also sprach Peter T. Breuer:"
> "Also sprach Carlos Knowlton:"
> > In file included from drivers/block/enbd/enbd_base.c:271:
> > include/linux/enbd.h:165: error: syntax error before "int"
>
> And what line is that? As I count, it is the "dec" line below:
OK - you patched OK. It's the "notify_fn" line, and the complaint is
for spinlock_t. Put an include of <linux/spinlock.h> in enbd_base.c,
somewhere up top.
> + struct enbd_md;
> + struct enbd_md {
> + int count;
> + int doing_notify;
> + int notify_pid;
> + spinlock_t access_lock;
> + int (*notify_fn)(kdev_t, int);
> + int (*notify)(struct enbd_md *,kdev_t, int cmd);
> + int (*dec)(struct enbd_md *);
> + int (*inc)(struct enbd_md *);
> + int (*reg)(struct enbd_md *, int(*)(kdev_t, int));
> + };
Gotta run home!
Peter
More information about the ENBD
mailing list