public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [2.4 PATCH] NFS server as a module with -mregparm=3
@ 2005-11-28 12:14 Marcelo Tosatti
  0 siblings, 0 replies; only message in thread
From: Marcelo Tosatti @ 2005-11-28 12:14 UTC (permalink / raw)
  To: Krzysztof Strasburger, Trond Myklebust; +Cc: linux-kernel


diff-tree b7844980a750ebe9f32ab5a29e370a4e32781e5d (from e8f3e8dd41308fb66c026f51bb86b23205ad48c1)
Author: Krzysztof Strasburger <strasbur@chkw386.ch.pwr.wroc.pl>
Date:   Wed Nov 2 10:43:36 2005 +0100

    [PATCH] NFS server as a module with -mregparm=3
    
    This patch makes it possible to compile the nfs server as a module, with
    -mregparm=3 (at least on x86).
    
    Such a combination did not work, as handle_sys_nfsservctl was called
    from the sys_nfsservctl function (in fs/filesystems.c) with parameters
    in registers, but tried to read them from the stack.
    
    Signed-off-by: Krzysztof Strasburger

diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c
index 59d65f5..287bcad 100644
--- a/fs/nfsd/nfsctl.c
+++ b/fs/nfsd/nfsctl.c
@@ -212,8 +212,13 @@ static struct {
 };
 #define CMD_MAX (sizeof(sizes)/sizeof(sizes[0])-1)
 
+#ifdef MODULE
+long
+handle_sys_nfsservctl(int cmd, void *opaque_argp, void *opaque_resp)
+#else
 long
 asmlinkage handle_sys_nfsservctl(int cmd, void *opaque_argp, void *opaque_resp)
+#endif
 {
 	struct nfsctl_arg *	argp = opaque_argp;
 	union nfsctl_res *	resp = opaque_resp;

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2005-11-28 17:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-28 12:14 [2.4 PATCH] NFS server as a module with -mregparm=3 Marcelo Tosatti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox