I am getting compiler error while compiling my old kernel module which is using netlink functions.
kernel
int init_module() { /* Initialize the Netlin
Just replace
nl_sk = netlink_kernel_create(&init_net, 17, 0, recv_cmd, NULL, THIS_MODULE);
with the following
struct netlink_kernel_cfg cfg = { .input = recv_cmd, }; nl_sk = netlink_kernel_create(&init_net, 17, &cfg);
and it should work. I ran into the same problems.