From: Adrian Bunk <bunk@stusta.de>
To: Olaf Hering <olh@suse.de>
Cc: Andrew Morton <akpm@osdl.org>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [2.6 patch] make UNIX a bool
Date: Sat, 25 Mar 2006 20:47:39 +0100 [thread overview]
Message-ID: <20060325194739.GS4053@stusta.de> (raw)
In-Reply-To: <20060225224631.GA4085@suse.de>
On Sat, Feb 25, 2006 at 11:46:31PM +0100, Olaf Hering wrote:
> On Sat, Feb 25, Adrian Bunk wrote:
>
> > CONFIG_UNIX=m doesn't make much sense.
>
> There is likely more code to support a modular unix.ko, this has to go
> as well.
Sounds resonable, updated patch below.
cu
Adrian
<-- snip -->
CONFIG_UNIX=m doesn't make that much sense and requires us to export
things we don't want to export to modules.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
fs/file_table.c | 1 -
include/net/af_unix.h | 2 --
net/unix/Kconfig | 2 +-
net/unix/af_unix.c | 18 ------------------
net/unix/sysctl_net_unix.c | 9 +--------
5 files changed, 2 insertions(+), 30 deletions(-)
--- linux-2.6.16-mm1-full/net/unix/Kconfig.old 2006-03-25 20:10:47.000000000 +0100
+++ linux-2.6.16-mm1-full/net/unix/Kconfig 2006-03-25 20:10:54.000000000 +0100
@@ -3,7 +3,7 @@
#
config UNIX
- tristate "Unix domain sockets"
+ bool "Unix domain sockets"
---help---
If you say Y here, you will include support for Unix domain sockets;
sockets are the standard Unix mechanism for establishing and
--- linux-2.6.16-mm1-full/include/net/af_unix.h.old 2006-03-25 20:13:33.000000000 +0100
+++ linux-2.6.16-mm1-full/include/net/af_unix.h 2006-03-25 20:13:40.000000000 +0100
@@ -85,10 +85,8 @@
#ifdef CONFIG_SYSCTL
extern int sysctl_unix_max_dgram_qlen;
extern void unix_sysctl_register(void);
-extern void unix_sysctl_unregister(void);
#else
static inline void unix_sysctl_register(void) {}
-static inline void unix_sysctl_unregister(void) {}
#endif
#endif
#endif
--- linux-2.6.16-mm1-full/net/unix/af_unix.c.old 2006-03-25 20:11:07.000000000 +0100
+++ linux-2.6.16-mm1-full/net/unix/af_unix.c 2006-03-25 20:14:05.000000000 +0100
@@ -475,7 +475,6 @@
static const struct proto_ops unix_stream_ops = {
.family = PF_UNIX,
- .owner = THIS_MODULE,
.release = unix_release,
.bind = unix_bind,
.connect = unix_stream_connect,
@@ -496,7 +495,6 @@
static const struct proto_ops unix_dgram_ops = {
.family = PF_UNIX,
- .owner = THIS_MODULE,
.release = unix_release,
.bind = unix_bind,
.connect = unix_dgram_connect,
@@ -517,7 +515,6 @@
static const struct proto_ops unix_seqpacket_ops = {
.family = PF_UNIX,
- .owner = THIS_MODULE,
.release = unix_release,
.bind = unix_bind,
.connect = unix_stream_connect,
@@ -538,7 +535,6 @@
static struct proto unix_proto = {
.name = "UNIX",
- .owner = THIS_MODULE,
.obj_size = sizeof(struct unix_sock),
};
@@ -2012,7 +2008,6 @@
}
static struct file_operations unix_seq_fops = {
- .owner = THIS_MODULE,
.open = unix_seq_open,
.read = seq_read,
.llseek = seq_lseek,
@@ -2024,7 +2019,6 @@
static struct net_proto_family unix_family_ops = {
.family = PF_UNIX,
.create = unix_create,
- .owner = THIS_MODULE,
};
static int __init af_unix_init(void)
@@ -2053,16 +2047,4 @@
return rc;
}
-static void __exit af_unix_exit(void)
-{
- sock_unregister(PF_UNIX);
- unix_sysctl_unregister();
- proc_net_remove("unix");
- proto_unregister(&unix_proto);
-}
-
module_init(af_unix_init);
-module_exit(af_unix_exit);
-
-MODULE_LICENSE("GPL");
-MODULE_ALIAS_NETPROTO(PF_UNIX);
--- linux-2.6.16-mm1-full/net/unix/sysctl_net_unix.c.old 2006-03-25 20:14:10.000000000 +0100
+++ linux-2.6.16-mm1-full/net/unix/sysctl_net_unix.c 2006-03-25 20:15:21.000000000 +0100
@@ -46,15 +46,8 @@
{ .ctl_name = 0 }
};
-static struct ctl_table_header * unix_sysctl_header;
-
void unix_sysctl_register(void)
{
- unix_sysctl_header = register_sysctl_table(unix_root_table, 0);
-}
-
-void unix_sysctl_unregister(void)
-{
- unregister_sysctl_table(unix_sysctl_header);
+ register_sysctl_table(unix_root_table, 0);
}
--- linux-2.6.16-mm1-full/fs/file_table.c.old 2006-03-25 20:39:30.000000000 +0100
+++ linux-2.6.16-mm1-full/fs/file_table.c 2006-03-25 20:39:44.000000000 +0100
@@ -62,7 +62,6 @@
{
return files_stat.max_files;
}
-EXPORT_SYMBOL_GPL(get_max_files);
/*
* Handle nr_files sysctl
next prev parent reply other threads:[~2006-03-25 19:47 UTC|newest]
Thread overview: 49+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-25 16:01 Adrian Bunk
2006-02-25 17:13 ` Stephen Hemminger
2006-02-25 17:28 ` Arjan van de Ven
2006-02-26 18:19 ` Diego Calleja
2006-02-25 22:46 ` Olaf Hering
2006-03-25 19:47 ` Adrian Bunk [this message]
2006-03-26 15:20 ` Jan-Benedict Glaw
2006-03-26 21:48 ` Joshua Hudson
2006-02-27 22:18 ` James C. Georgas
2006-02-27 22:29 ` Adrian Bunk
2006-03-01 3:09 ` Dmitry Torokhov
2006-03-01 17:58 ` Adrian Bunk
2006-03-02 1:31 ` Herbert Xu
2006-03-02 17:38 ` Adrian Bunk
2006-03-02 19:51 ` Jan-Benedict Glaw
2006-03-02 20:39 ` Adrian Bunk
2006-03-02 20:51 ` Jan-Benedict Glaw
2006-03-02 21:28 ` Adrian Bunk
2006-03-03 9:27 ` Jan-Benedict Glaw
2006-03-02 20:28 ` Jesper Juhl
2006-03-02 20:32 ` Adrian Bunk
2006-03-02 20:40 ` Jesper Juhl
2006-03-02 21:40 ` Adrian Bunk
2006-03-02 21:53 ` Jan Engelhardt
2006-03-02 22:32 ` Adrian Bunk
2006-03-03 13:31 ` make IPV4 modular (was: [2.6 patch] make UNIX a bool) Jan Engelhardt
2006-03-03 13:52 ` Adrian Bunk
2006-03-02 21:46 ` [2.6 patch] make UNIX a bool Adrian Bunk
2006-03-03 9:30 ` Jan-Benedict Glaw
2006-03-03 4:28 ` James C. Georgas
[not found] ` <1141335521.3582.14.camel@Rainsong.home>
[not found] ` <20060302214423.GI9295@stusta.de>
2006-03-03 4:44 ` James C. Georgas
2006-03-03 11:46 ` Adrian Bunk
2006-03-03 14:48 ` James C. Georgas
2006-03-03 15:10 ` Adrian Bunk
2006-03-03 17:50 ` James C. Georgas
2006-03-03 17:55 ` Adrian Bunk
2006-03-03 21:11 ` James C. Georgas
2006-03-02 20:34 ` Randy.Dunlap
2006-02-28 14:52 ` Jan-Benedict Glaw
2006-02-28 15:30 ` James C. Georgas
2006-02-28 19:15 ` Jan Engelhardt
2006-03-02 21:47 ` Adrian Bunk
-- strict thread matches above, loose matches on Subject: below --
2006-03-03 4:06 [Fwd: Re: [2.6 patch] make UNIX a bool] James C. Georgas
2006-03-03 4:14 ` [2.6 patch] make UNIX a bool James C. Georgas
2006-03-03 4:32 ` Kyle Moffett
2006-03-03 21:31 ` James C. Georgas
2006-03-04 22:57 ` Kyle Moffett
2006-03-06 23:42 ` James C. Georgas
2006-03-06 23:59 ` James C. Georgas
2006-02-17 15:41 [PATCH 0/2] RCU updates Dipankar Sarma
2006-02-17 15:43 ` [PATCH 1/2] rcu batch tuning Dipankar Sarma
2006-02-17 15:46 ` [PATCH 2/2] fix file counting Dipankar Sarma
2006-02-18 9:04 ` Andrew Morton
2006-02-18 9:25 ` Dipankar Sarma
2006-02-18 12:14 ` Christoph Hellwig
2006-02-18 12:31 ` Arjan van de Ven
2006-02-20 22:36 ` [2.6 patch] make UNIX a bool Adrian Bunk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060325194739.GS4053@stusta.de \
--to=bunk@stusta.de \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=olh@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome