Fixing kernel compilation errors

Change-Id: I08f7fc88509490d53daa25101f43c0fe43486a64
Signed-off-by: Eyal Salomon <esalomon@mellanox.com>