diff --git a/include/linux/kconfig.h b/include/linux/kconfig.h
index fec5076eda91d2fd6e401b43463cb43855aa6c57..c5fd4ee776ba138bd3a674fa6ec0905f6b59c7e3 100644
--- a/include/linux/kconfig.h
+++ b/include/linux/kconfig.h
@@ -64,4 +64,7 @@
  */
 #define IS_ENABLED(option) __or(IS_BUILTIN(option), IS_MODULE(option))
 
+/* Make sure we always have all types and struct attributes defined. */
+#include <linux/compiler_types.h>
+
 #endif /* __LINUX_KCONFIG_H */