linux-mips
[Top] [All Lists]

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

To: linux-mips@linux-mips.org, ralf@linux-mips.org
Subject: [PATCH] MIPS: Include linux/errno.h from arch/mips/include/asm/compat.h
From: David Daney <ddaney@caviumnetworks.com>
Date: Fri, 10 Apr 2009 11:41:35 -0700
Cc: David Daney <ddaney@caviumnetworks.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
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@caviumnetworks.com>
---
 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


<Prev in Thread] Current Thread [Next in Thread>