Skip to content

Instantly share code, notes, and snippets.

@Keruspe
Created February 22, 2018 09:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Keruspe/29ec24204e8a3a6cc12fd7fab7293364 to your computer and use it in GitHub Desktop.
Save Keruspe/29ec24204e8a3a6cc12fd7fab7293364 to your computer and use it in GitHub Desktop.
In file included from ./include/linux/kernel.h:10:0,
from ./include/linux/skbuff.h:17,
from ./include/linux/ip.h:20,
from ./net/wireguard/compat/compat.h:528,
from <command-line>:0:
./include/linux/compiler.h:254:0: warning: "READ_ONCE" redefined
#define READ_ONCE(x) __READ_ONCE(x, 1)
In file included from <command-line>:0:0:
./net/wireguard/compat/compat.h:46:0: note: this is the location of the previous definition
#define READ_ONCE ACCESS_ONCE
net/wireguard/netlink.c: In function 'get_device_dump_real':
net/wireguard/netlink.c:180:2: error: too many arguments to function 'genl_dump_check_consistent'
genl_dump_check_consistent(cb, hdr, &genl_family);
^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from net/wireguard/netlink.c:11:0:
./include/net/genetlink.h:194:20: note: declared here
static inline void genl_dump_check_consistent(struct netlink_callback *cb,
^~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:317: net/wireguard/netlink.o] Error 1
make[1]: *** [scripts/Makefile.build:575: net/wireguard] Error 2
make: *** [Makefile:1019: net] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment