diff --git a/include/linux/kallsyms.h b/include/linux/kallsyms.h
index 12178d2c882be4461714df1c9147c5ae0852d4cc..5f06527dca2188922179904afeae2fbd26edeec7 100644
--- a/include/linux/kallsyms.h
+++ b/include/linux/kallsyms.h
@@ -5,6 +5,7 @@
 #ifndef _LINUX_KALLSYMS_H
 #define _LINUX_KALLSYMS_H
 
+#include <linux/errno.h>
 
 #define KSYM_NAME_LEN 127
 #define KSYM_SYMBOL_LEN (sizeof("%s+%#lx/%#lx [%s]") + KSYM_NAME_LEN +	\