Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: fix build warnings because of net_get_random_once merge

This patch fixes the following warning:

In file included from include/linux/skbuff.h:27:0,
from include/linux/netfilter.h:5,
from include/net/netns/netfilter.h:5,
from include/net/net_namespace.h:20,
from include/linux/init_task.h:14,
from init/init_task.c:1:
include/linux/net.h:243:14: warning: 'struct static_key' declared inside parameter list [enabled by default]
struct static_key *done_key);

on x86_64 allnoconfig, um defconfig and ia64 allmodconfig and maybe others as well.

Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Hannes Frederic Sowa and committed by
David S. Miller
c68c7f5a 5bf47256

+1
+1
include/linux/net.h
··· 24 24 #include <linux/fcntl.h> /* For O_CLOEXEC and O_NONBLOCK */ 25 25 #include <linux/kmemcheck.h> 26 26 #include <linux/rcupdate.h> 27 + #include <linux/jump_label.h> 27 28 #include <uapi/linux/net.h> 28 29 29 30 struct poll_table_struct;