Skip to content

Commit

Permalink
9p: remove sysctl
Browse files Browse the repository at this point in the history
A sysctl method was added to enable and disable debugging levels.  After
further review, it was decided that there are better approaches to doing this
and the sysctl methodology isn't really desirable.  This patch removes the
sysctl code from 9p.

Signed-off-by: Eric Van Hensbergen <[email protected]>
  • Loading branch information
Eric Van Hensbergen authored and Eric Van Hensbergen committed Oct 17, 2007
1 parent fb0466c commit 982c37c
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 106 deletions.
14 changes: 0 additions & 14 deletions include/net/9p/9p.h
Original file line number Diff line number Diff line change
Expand Up @@ -415,18 +415,4 @@ int p9_idpool_check(int id, struct p9_idpool *p);

int p9_error_init(void);
int p9_errstr2errno(char *, int);

#ifdef CONFIG_SYSCTL
int __init p9_sysctl_register(void);
void __exit p9_sysctl_unregister(void);
#else
static inline int p9_sysctl_register(void)
{
return 0;
}
static inline void p9_sysctl_unregister(void)
{
}
#endif

#endif /* NET_9P_H */
2 changes: 0 additions & 2 deletions net/9p/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,5 @@ obj-$(CONFIG_NET_9P_FD) += 9pnet_fd.o
fcprint.o \
util.o \

9pnet-$(CONFIG_SYSCTL) += sysctl.o

9pnet_fd-objs := \
trans_fd.o \
9 changes: 0 additions & 9 deletions net/9p/mod.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ MODULE_PARM_DESC(debug, "9P debugging level");

extern int p9_mux_global_init(void);
extern void p9_mux_global_exit(void);
extern int p9_sysctl_register(void);
extern void p9_sysctl_unregister(void);

/*
* Dynamic Transport Registration Routines
Expand Down Expand Up @@ -118,12 +116,6 @@ static int __init init_p9(void)
return ret;
}

ret = p9_sysctl_register();
if (ret) {
printk(KERN_WARNING "9p: registering sysctl failed\n");
return ret;
}

return ret;
}

Expand All @@ -134,7 +126,6 @@ static int __init init_p9(void)

static void __exit exit_p9(void)
{
p9_sysctl_unregister();
p9_mux_global_exit();
}

Expand Down
81 changes: 0 additions & 81 deletions net/9p/sysctl.c

This file was deleted.

0 comments on commit 982c37c

Please sign in to comment.