Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 15564
b: refs/heads/master
c: 77d76ea
h: refs/heads/master
v: v3
  • Loading branch information
Andi Kleen authored and David S. Miller committed Jan 3, 2006
1 parent 58c1261 commit 30fecb2
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7708610b1bff4a0ba8a73733d3c7c4bda9f94b21
refs/heads/master: 77d76ea310b50a9c8ff15bd290fcb4ed4961adf2
1 change: 0 additions & 1 deletion trunk/include/linux/skbuff.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@

#define HAVE_ALLOC_SKB /* For the drivers to know */
#define HAVE_ALIGNABLE_SKB /* Ditto 8) */
#define SLAB_SKB /* Slabified skbuffs */

#define CHECKSUM_NONE 0
#define CHECKSUM_HW 1
Expand Down
1 change: 0 additions & 1 deletion trunk/include/linux/socket.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ struct __kernel_sockaddr_storage {
#include <linux/compiler.h> /* __user */

extern int sysctl_somaxconn;
extern void sock_init(void);
#ifdef CONFIG_PROC_FS
struct seq_file;
extern void socket_seq_show(struct seq_file *seq);
Expand Down
4 changes: 0 additions & 4 deletions trunk/init/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
#include <linux/rmap.h>
#include <linux/mempolicy.h>
#include <linux/key.h>
#include <net/sock.h>

#include <asm/io.h>
#include <asm/bugs.h>
Expand Down Expand Up @@ -614,9 +613,6 @@ static void __init do_basic_setup(void)
sysctl_init();
#endif

/* Networking initialization needs a process context */
sock_init();

do_initcalls();
}

Expand Down
10 changes: 5 additions & 5 deletions trunk/net/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -2036,20 +2036,18 @@ int sock_unregister(int family)
return 0;
}

void __init sock_init(void)
static int __init sock_init(void)
{
/*
* Initialize sock SLAB cache.
*/

sk_init();

#ifdef SLAB_SKB
/*
* Initialize skbuff SLAB cache
*/
skb_init();
#endif

/*
* Initialize the protocols module.
Expand All @@ -2058,15 +2056,17 @@ void __init sock_init(void)
init_inodecache();
register_filesystem(&sock_fs_type);
sock_mnt = kern_mount(&sock_fs_type);
/* The real protocol initialization is performed when
* do_initcalls is run.

/* The real protocol initialization is performed in later initcalls.
*/

#ifdef CONFIG_NETFILTER
netfilter_init();
#endif
}

core_initcall(sock_init); /* early initcall */

#ifdef CONFIG_PROC_FS
void socket_seq_show(struct seq_file *seq)
{
Expand Down

0 comments on commit 30fecb2

Please sign in to comment.