Created attachment 14891 [details] [review]
Include unistd.h for "close" prototype.
Include sys/ioctl.h instead of asm/ioctl.h to also get "ioctl" prototype.
Only remaining warning is about REGION_INIT macro, as it commonly receives
the address of a variable in stack, thus generating a warning about address
of "<name>" will always evaluate as 'true'.
Not a bug because patch would just allow compiling
without warnings, but no functionality change if
applying or not the patch.