Use "ifdef" rather than "if" to test for __KERNEL__
Both work, but the latter can cause warnings in user space from compilers that don't like using undefined identifiers in preprocessor expressions (quite reasonable). Pointed out by Randy Dunlap.
Showing
Please register or sign in to comment