]> git.baikalelectronics.ru Git - kernel.git/commit
net: make the tcp and udp file_operations for the /proc stuff const
authorArjan van de Ven <arjan@linux.intel.com>
Sun, 30 Oct 2011 06:46:30 +0000 (06:46 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Nov 2011 21:56:14 +0000 (17:56 -0400)
commit888c1c728e7e9c2a6688d3fedc31b6dde4ce75da
treefbb4a777410d5a5653537bcd3ee7e954bc9ba5a0
parent7918d5af3b4c3b4bc6c496847ceb30d56379abce
net: make the tcp and udp file_operations for the /proc stuff const

the tcp and udp code creates a set of struct file_operations at runtime
while it can also be done at compile time, with the added benefit of then
having these file operations be const.

the trickiest part was to get the "THIS_MODULE" reference right; the naive
method of declaring a struct in the place of registration would not work
for this reason.

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tcp.h
include/net/udp.h
net/ipv4/tcp_ipv4.c
net/ipv4/udp.c
net/ipv4/udplite.c
net/ipv6/tcp_ipv6.c
net/ipv6/udp.c
net/ipv6/udplite.c