backporting to older C style to fix the kernel build
Merge pull request #2 from sseering/master

Fixing kernel build.