mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 09:19:51 +00:00
![Rami Rosen](/assets/img/avatar_default.png)
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 0fa7fa98db
:
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>
15 lines
256 B
C
15 lines
256 B
C
/*
|
|
* Packet network namespace
|
|
*/
|
|
#ifndef __NETNS_PACKET_H__
|
|
#define __NETNS_PACKET_H__
|
|
|
|
#include <linux/rculist.h>
|
|
#include <linux/mutex.h>
|
|
|
|
struct netns_packet {
|
|
struct mutex sklist_lock;
|
|
struct hlist_head sklist;
|
|
};
|
|
|
|
#endif /* __NETNS_PACKET_H__ */
|