Re: failed to build nikal error on RHEL7 (3.10.0-862.3.2.el7.x86_64)
On top of including NULL in do_munmap() you need to also:
#define NLNIKAL_CMD_SEND 1
#define GENL_ID_GENERATE 0 // define value to genl_id_generate = 0
static struct genl_family nikal_netlink_family =
.id = GENL_ID_GENERATE,
.name = "nlnikal",
.version = 1,
.maxattr = 1
and then comment this
//if ((status = genl_register_family_with_ops(&nikal_netlink_family, nikal_netlink_ops))) return status;
//if ((status = genl_register_family_with_ops(&nikal_netlink_family, nikal_netlink_ops, 1))) return status;
Good luck with that: ttis will remove registering the netlink family, so the driver won't work.
Meanwhile, I'm tired of repeating myself ... already wrote about that several times.
Maybe I could be motivated by inserting some coins ;-)