I had to apply the following patch to 1.3.74 to enable compilation of
the ftape module. The patch is the same as that applied to the same
function in drivers/block/floppy.c.
Regards,
Julian
============================ snip ================================
--- drivers/char/kernel-interface.c.orig Thu Mar 14 19:09:34 1996
+++ drivers/char/kernel-interface.c Thu Mar 14 19:53:13 1996
@@ -95,14 +95,17 @@
*/
static inline
-int __get_order(int size)
+int __get_order(unsigned long size)
{
int order;
- for (order = 0; order < NR_MEM_LISTS; ++order)
- if (size <= (PAGE_SIZE << order))
- return order;
- return -1;
+ size >>= (PAGE_SHIFT-1);
+ order = -1;
+ do {
+ size >>= 1;
+ order++;
+ } while (size);
+ return order;
}
static inline
============================ snip ================================
-- Julian Thompson (jrt@miel.demon.co.uk)