1. 27 10月, 2007 3 次提交
    • E
      [NET]: Marking struct pernet_operations __net_initdata was inappropriate · 2b008b0a
      Eric W. Biederman 提交于
      It is not safe to to place struct pernet_operations in a special section.
      We need struct pernet_operations to last until we call unregister_pernet_subsys.
      Which doesn't happen until module unload.
      
      So marking struct pernet_operations is a disaster for modules in two ways.
      - We discard it before we call the exit method it points to.
      - Because I keep struct pernet_operations on a linked list discarding
        it for compiled in code removes elements in the middle of a linked
        list and does horrible things for linked insert.
      
      So this looks safe assuming __exit_refok is not discarded
      for modules.
      Signed-off-by: NEric W. Biederman <ebiederm@xmission.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      2b008b0a
    • A
      [INET] ESP: Must #include <linux/scatterlist.h> · 72998d8c
      Adrian Bunk 提交于
      This patch fixes the following compile errors in some configurations:
      
      <--  snip  -->
      
      ...
        CC      net/ipv4/esp4.o
      /home/bunk/linux/kernel-2.6/git/linux-2.6/net/ipv4/esp4.c: In function 'esp_output':
      /home/bunk/linux/kernel-2.6/git/linux-2.6/net/ipv4/esp4.c:113: error: implicit declaration of function 'sg_init_table'
      make[3]: *** [net/ipv4/esp4.o] Error 1
      ...
      /home/bunk/linux/kernel-2.6/git/linux-2.6/net/ipv6/esp6.c: In function 'esp6_output':
      /home/bunk/linux/kernel-2.6/git/linux-2.6/net/ipv6/esp6.c:112: error: implicit declaration of function 'sg_init_table'
      make[3]: *** [net/ipv6/esp6.o] Error 1
      
      
      <--  snip  -->
      Signed-off-by: NAdrian Bunk <bunk@kernel.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      72998d8c
    • J
      [TCP] IPV6: fix softnet build breakage · 18134bed
      Jeff Garzik 提交于
      net/ipv6/tcp_ipv6.c: In function 'tcp_v6_rcv':
      net/ipv6/tcp_ipv6.c:1736: error: implicit declaration of function
      'get_softnet_dma'
      net/ipv6/tcp_ipv6.c:1736: warning: assignment makes pointer from integer
      without a cast
      Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      18134bed
  2. 26 10月, 2007 37 次提交