Re: 2.4.19pre8aa1 & vm-34: blkmtd.c compile failure

Andrea Arcangeli (andrea@suse.de)
Sat, 4 May 2002 13:44:11 +0200


On Sat, May 04, 2002 at 09:09:29AM +0200, Andrea Arcangeli wrote:
> On Sat, May 04, 2002 at 10:24:42AM +1000, Eyal Lebedinsky wrote:
> > Andrea Arcangeli wrote:
> > >
> > > Full patchkit:
> > > http://www.us.kernel.org/pub/linux/kernel/people/andrea/kernels/v2.4/2.4.19pre8aa1.gz
> >
> > 'struct kiobuf' does not have a member 'blocks', used in two places.
> >
> > Should it use 'kio_blocks'?
>
> yes. What are the two places?

never mind, this should fix it:

--- 2.4.19pre8aa2/drivers/mtd/devices/blkmtd.c.~1~ Mon Feb 25 22:05:07 2002
+++ 2.4.19pre8aa2/drivers/mtd/devices/blkmtd.c Sat May 4 13:43:01 2002
@@ -235,7 +235,7 @@
return -ENOMEM;
}
#else
- blocks = iobuf->blocks;
+ blocks = iobuf->kio_blocks;
#endif

iobuf->offset = 0;
@@ -329,7 +329,7 @@
return 0;
}
#else
- blocks = iobuf->blocks;
+ blocks = iobuf->kio_blocks;
#endif

DEBUG(2, "blkmtd: writetask: entering main loop\n");

Andrea
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/