Fix kernel compilation issues on RH7

Change-Id: I40419e79584724c150b2ec3e212a6bfde7a36de3
Signed-off-by: Or Kehati <ork@mellanox.com>