Skip to contentSkip to conversation

net: explicitly include <linux/compat.h> in net/core/sock.c

PATCH Applied Christoph Hellwig 2 participants 2 messages Jul 22, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: explicitly include <linux/compat.h> in net/core/sock.c

The buildbot found a config where the header isn't already implicitly pulled in, so add an explicit include as well.

Fixes 8c918ffbbad4 ("net: remove compat_sock_common_{get,set}sockopt")
---
 net/core/sock.c | 1 +
 1 file changed, 1 insertion(+)
net/core/sock.c +1 -0
index d828bfe1c47dfa..6da54eac2b3456 100644
@@ -113,6 +113,7 @@
 #include <linux/static_key.h>
 #include <linux/memcontrol.h>
 #include <linux/prefetch.h>
+#include <linux/compat.h>
 
 #include <linux/uaccess.h>
 
Signature · 1 line
2.27.0
maintainer Applied
#1 lore raw

From: Christoph Hellwig <[email protected]>
Date: Wed, 22 Jul 2020 09:40:27 +0200

Quoted 5 lines

The buildbot found a config where the header isn't already implicitly pulled in, so add an explicit include as well.

Fixes 8c918ffbbad4 ("net: remove compat_sock_common_{get,set}sockopt")

Applied.