Re: Linux-2.0.24

Jeremy Hansen (jeremy@mortly.xxedgexx.com)
Sun, 3 Nov 1996 13:29:08 -0500 (EST)


I'm trying to apply the patch to insmod for
the new development kernels and I keep gettings errors.

Here's the patch I'm trying to apply:

--- insmod/insmod.c.old Tue Sep 24 13:17:23 1996
+++ insmod/insmod.c Tue Sep 24 13:08:18 1996
@@ -125,10 +125,8 @@
return p;
}

-static int create_module(const char *name, unsigned long size)
-{
- return syscall( __NR_create_module, name, size);
-}
+static int create_module(const char *name, unsigned long size);
+static _syscall2( int, create_module, const char *, name, unsigned long,
size);

static int init_module(const char *name, void *code, unsigned codesize,
struct mod_routines *routines,

I'm in the modules-2.0.0 directory and I'm trying to apply the
patch like this:

bloodlet:~/src/modules/modules-2.0.0# patch < insmod.patch

and I receive this error:

Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- insmod/insmod.c.old Tue Sep 24 13:17:23 1996
|+++ insmod/insmod.c Tue Sep 24 13:08:18 1996
--------------------------
Patching file insmod/insmod.c using Plan A...
Hunk #1 failed at 125.
1 out of 1 hunks failed--saving rejects to insmod/insmod.c.rej
Hmm... Ignoring the trailing garbage.
done

So what am I doing wrong. I'm probable appling the patch wrong or
something, please help. I'd like to play with the new kernels.

Thanks
Jeremy