The reason for this is that log.h includes drv_hrt.h which sucks in half the project's include files with it, which causes strange build issues
Put all functions which are commont to flat build and protected kernel and userspace to an own source file Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>