]> git.baikalelectronics.ru Git - kernel.git/commit
packet: fix broken build.
authorRami Rosen <rosenr@marvell.com>
Thu, 23 Aug 2012 02:55:41 +0000 (02:55 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Aug 2012 16:29:45 +0000 (09:29 -0700)
commitac7b7475f9b7b32ed36107edc1b357b6be289439
treecf77ba24a9ddac69f962f9f18ba2fff4c9fae5a2
parentb0c02f7d599b75250c1d53096c299c807f5975ea
packet: fix broken build.

This patch fixes a broken build due to a missing header:
...
  CC      net/ipv4/proc.o
In file included from include/net/net_namespace.h:15,
                 from net/ipv4/proc.c:35:
include/net/netns/packet.h:11: error: field 'sklist_lock' has incomplete type
...

The lock of netns_packet has been replaced by a recent patch to be a mutex instead of a spinlock,
but we need to replace the header file to be linux/mutex.h instead of linux/spinlock.h as well.

See commit b0f6ed0c8e80b7b6222c7120218a9973efbb5c75:
packet: Protect packet sk list with mutex (v2) patch,

Signed-off-by: Rami Rosen <rosenr@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/netns/packet.h