Subject: afs/fs/afs main.c,1.9,1.10

From: [email-masked]
Date: Fri, 23 May 2003 13:57:28 +0100

Update of /home/cvs/afs/fs/afs
In directory phoenix.infradead.org:/tmp/cvs-serv27697/fs/afs

Modified Files:
	main.c 
Log Message:
don't do AFS syscall stub like that... it upsets people with a delicate constitution

Index: main.c
===================================================================
RCS file: /home/cvs/afs/fs/afs/main.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- main.c	17 Apr 2003 11:59:04 -0000	1.9
+++ main.c	23 May 2003 12:57:25 -0000	1.10
@@ -13,7 +13,6 @@
 #include <linux/init.h>
 #include <linux/sched.h>
 #include <linux/completion.h>
-#include <linux/syscallstub.h>
 #include <rxrpc/rxrpc.h>
 #include <rxrpc/transport.h>
 #include <rxrpc/call.h>
@@ -50,16 +49,6 @@
 
 /*****************************************************************************/
 /*
- * AFS syscall handler (called from in-kernel stub)
- */
-static int do_afs_syscall(long cmd, va_list va)
-{
-	kenter("{%ld}",cmd);
-	return -ENOANO;
-} /* end do_afs_syscall() */
-
-/*****************************************************************************/
-/*
  * initialise the AFS client FS module
  */
 static int afs_init(void)
@@ -105,15 +94,8 @@
 	if (ret<0)
 		goto error_transport;
 
-	/* register the AFS syscall */
-	ret = register_afs_syscall_handler(do_afs_syscall,THIS_MODULE);
-	if (ret<0)
-		goto error_fs;
-
 	return ret;
 
- error_fs:
-	afs_fs_exit();
  error_transport:
 	rxrpc_put_transport(afs_transport);
  error_kafsasyncd:
@@ -135,7 +117,6 @@
 {
 	printk(KERN_INFO "kAFS: Red Hat AFS client v0.1 unregistering.\n");
 
-	unregister_afs_syscall_handler(do_afs_syscall,THIS_MODULE);
 	afs_fs_exit();
 	rxrpc_put_transport(afs_transport);
 	afs_kafstimod_stop();