Skip to content

Commit f63c45e

Browse files
rosenrdavem330
authored andcommitted
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 0fa7fa9: 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>
1 parent 748e2d9 commit f63c45e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎include/net/netns/packet.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#define __NETNS_PACKET_H__
66

77
#include <linux/rculist.h>
8-
#include <linux/spinlock.h>
8+
#include <linux/mutex.h>
99

1010
struct netns_packet {
1111
struct mutex sklist_lock;

0 commit comments

Comments
 (0)