Skip to contentSkip to conversation

net: explicitly add jump_label.h header to sock.h

PATCH Applied Glauber Costa 2 participants 2 messages Jan 26, 2012

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

PATCH 1/1 net: explicitly add jump_label.h header to sock.h

Commit 36a1211970193ce215de50ed1e4e1272bc814df1 removed linux/module.h include statement from one of the headers that end up in net/sock.h. It was providing us with static_branch() definition implicitly, so after its removal the build got broken.

To fix this, and avoid having this happening in the future, let me do the right thing and include linux/jump_label.h explicitly in sock.h.

---
 include/net/sock.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
include/net/sock.h +1 -0
index 4c69ac1..91c1c8b 100644
@@ -55,6 +55,7 @@
 #include <linux/uaccess.h>
 #include <linux/memcontrol.h>
 #include <linux/res_counter.h>
+#include <linux/jump_label.h>
 
 #include <linux/filter.h>
 #include <linux/rculist_nulls.h>
Signature · 1 line
1.7.7.4
maintainer Applied
#1 lore raw

From: Glauber Costa <[email protected]>
Date: Fri, 27 Jan 2012 02:09:28 +0400

Quoted 11 lines

Commit 36a1211970193ce215de50ed1e4e1272bc814df1 removed linux/module.h include statement from one of the headers that end up in net/sock.h. It was providing us with static_branch() definition implicitly, so after its removal the build got broken.

To fix this, and avoid having this happening in the future, let me do the right thing and include linux/jump_label.h explicitly in sock.h.

Applied, thanks.