2.1.49 problem with wakeup_bdflush and sysrq.c

Manuel J. Galan (manolow@step.es)
Tue, 12 Aug 1997 01:34:20 +0100 (WET DST)


Hi,

On compiling new 2.1.49 the following error is triggered...
-------------------------------------------------------------
drivers/char/char.a(sysrq.o): In function `handle_sysrq':
sysrq.o(.text+0x23f): undefined reference to `wakeup_bdflush'
make: *** [vmlinux] Error 1
-------------------------------------------------------------

Possible solution:

------------------------------------------
--- linux/fs/buffer.c.orig Tue Aug 12 01:24:52 1997
+++ linux/fs/buffer.c Tue Aug 12 01:25:54 1997
@@ -113,7 +113,7 @@
int bdflush_min[N_PARAM] = { 0, 10, 5, 25, 0, 100, 100, 1, 1};
int bdflush_max[N_PARAM] = {100,5000, 2000, 2000,100, 60000, 60000, 2047, 5};

-static void wakeup_bdflush(int);
+inline void wakeup_bdflush(int);

/*
* Rewrote the wait-routines to use the "new" wait-queue functionality,
@@ -1663,7 +1663,7 @@
static struct wait_queue * bdflush_done = NULL;
struct task_struct *bdflush_tsk = 0;

-static void wakeup_bdflush(int wait)
+inline void wakeup_bdflush(int wait)
{
if (current == bdflush_tsk)
return;
------------------------------------------

Rgds.

-- 
Manuel J. Galan
manolow@step.es