lkml.org 
[lkml]   [1996]   [Nov]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: Linux-2.0.24

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



\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.228 / U:5.956 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site