diff options
author | Johann Felix Soden <johfel@users.sourceforge.net> | 2007-11-07 01:30:30 -0800 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-11-07 04:15:02 -0800 |
commit | 45a19b0a725a04f3255d9d3da1fca30bb97f1481 (patch) | |
tree | 554e4953c32ac62c70076d596d3c12b6b984605c /arch/sh/kernel/early_printk.c | |
parent | d0127539ea9b5fcfe1a1d7d4d57f12384da5190c (diff) |
[NETNS]: Fix compiler error in net_namespace.c
Because net_free is called by copy_net_ns before its declaration, the
compiler gives an error. This patch puts net_free before copy_net_ns
to fix this.
The compiler error:
net/core/net_namespace.c: In function 'copy_net_ns':
net/core/net_namespace.c:97: error: implicit declaration of function 'net_free'
net/core/net_namespace.c: At top level:
net/core/net_namespace.c:104: warning: conflicting types for 'net_free'
net/core/net_namespace.c:104: error: static declaration of 'net_free' follows non-static declaration
net/core/net_namespace.c:97: error: previous implicit declaration of 'net_free' was here
The error was introduced by the '[NET]: Hide the dead code in the
net_namespace.c' patch (6a1a3b9f686bb04820a232cc1657ef2c45670709).
Signed-off-by: Johann Felix Soden <johfel@users.sourceforge.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sh/kernel/early_printk.c')
0 files changed, 0 insertions, 0 deletions