[PATCH] MIPS: Include linux/errno.h from arch/mips/include/asm/compat.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The recent change that added #include <linux/seccomp.h> breaks
(because EINVAL is not defined) when building
arch/mips/kernel/asm-offsets.s if CONFIG_SECCOMP is not defined.
Including errno.h fixes the problem.

Signed-off-by: David Daney <ddaney@xxxxxxxxxxxxxxxxxx>
---
 arch/mips/include/asm/compat.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/mips/include/asm/compat.h b/arch/mips/include/asm/compat.h
index 6c5b409..b88434e 100644
--- a/arch/mips/include/asm/compat.h
+++ b/arch/mips/include/asm/compat.h
@@ -3,6 +3,7 @@
 /*
  * Architecture specific compatibility types
  */
+#include <linux/errno.h>
 #include <linux/seccomp.h>
 #include <linux/thread_info.h>
 #include <linux/types.h>
-- 
1.6.0.6



[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux