net: explicitly add jump_label.h header to sock.h
Subsystems (3)
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
@@ -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
From: Glauber Costa <[email protected]>
Date: Fri, 27 Jan 2012 02:09:28 +0400
Quoted 11 lines
Commit
36a1211970193ce215de50ed1e4e1272bc814df1removedlinux/module.hinclude statement from one of the headers that end up innet/sock.h. It was providing us withstatic_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.hexplicitly insock.h.Signed-off-by Glauber Costa <[email protected]>Reported-by Randy Dunlap <[email protected]>
Applied, thanks.