Skip to contentSkip to conversation

Include linux/errno.h in linux/sysrq.h

PATCH New Tobias Doerffel 1 participant 1 message Jul 1, 2009 TTY layer and serial drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Include linux/errno.h in linux/sysrq.h

In include/linux/sysrq.h the constant EINVAL is being used but is undefined if include/linux/errno.h is not included before.

Fix this by adding #include <linux/errno.h> at the beginning.

---
 include/linux/sysrq.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
include/linux/sysrq.h +2 -0
index 98a1d8c..99adcdc 100644
@@ -14,6 +14,8 @@
 #ifndef _LINUX_SYSRQ_H
 #define _LINUX_SYSRQ_H
 
+#include <linux/errno.h>
+
 struct pt_regs;
 struct tty_struct;
 
Signature · 1 line
1.6.3.3