Re: failed to build nikal error on RHEL7 (3.10.0-862.3.2.el7.x86_64)

@justinblair wrote:

vpinho13 Solved this here

 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 =
   .name = "nlnikal",
   .version = 1,
   .maxattr = 1



and then comment this


#ifdef nNIKAL1400_kHasFamilyGenlOpsGroups
   //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 ;-)

Linux Embedded / Kernel Hacker / BSP / Driver development / Systems engineering
0 Kudos