Ported some macroses from linux kernel
Merge branch 'global-defines' into develop