]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - include/linux/compiler-gcc4.h
Merge commit 'v2.6.30-rc1' into sched/urgent
[mirror_ubuntu-zesty-kernel.git] / include / linux / compiler-gcc4.h
index 09992718f9e8e58add025dd8aebc4911f6a6c58f..450fa597c94d22dce8cf28d6387d04145c046f97 100644 (file)
@@ -3,8 +3,10 @@
 #endif
 
 /* GCC 4.1.[01] miscompiles __weak */
-#if __GNUC_MINOR__ == 1 && __GNUC_PATCHLEVEL__ <= 1
-# error Your version of gcc miscompiles the __weak directive
+#ifdef __KERNEL__
+# if __GNUC_MINOR__ == 1 && __GNUC_PATCHLEVEL__ <= 1
+#  error Your version of gcc miscompiles the __weak directive
+# endif
 #endif
 
 #define __used                 __attribute__((__used__))