linux-mips
[Top] [All Lists]

[PATCH 4/5] MIPS: delete bogus module.h usage in termios.h

To: ralf@linux-mips.org
Subject: [PATCH 4/5] MIPS: delete bogus module.h usage in termios.h
From: Paul Gortmaker <paul.gortmaker@windriver.com>
Date: Tue, 28 Feb 2012 14:24:47 -0500
Cc: linux-mips@linux-mips.org, Paul Gortmaker <paul.gortmaker@windriver.com>
In-reply-to: <1330457088-14587-1-git-send-email-paul.gortmaker@windriver.com>
References: <1330457088-14587-1-git-send-email-paul.gortmaker@windriver.com>
Sender: linux-mips-bounce@linux-mips.org
There is no need for this.  Removing it causes a small amount
of fallout (shown below) due to a few implicit header presence
assumptions that are easily fixed.

arch/mips/include/asm/termios.h:103: error: implicit declaration of function 
'access_ok'
arch/mips/include/asm/module.h:17: error: expected specifier-qualifier-list 
before 'Elf64_Addr'

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
---
 arch/mips/include/asm/module.h  |    1 +
 arch/mips/include/asm/termios.h |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/arch/mips/include/asm/module.h b/arch/mips/include/asm/module.h
index 7467d1d..5300080 100644
--- a/arch/mips/include/asm/module.h
+++ b/arch/mips/include/asm/module.h
@@ -2,6 +2,7 @@
 #define _ASM_MODULE_H
 
 #include <linux/list.h>
+#include <linux/elf.h>
 #include <asm/uaccess.h>
 
 struct mod_arch_specific {
diff --git a/arch/mips/include/asm/termios.h b/arch/mips/include/asm/termios.h
index 8f77f77..abdd87a 100644
--- a/arch/mips/include/asm/termios.h
+++ b/arch/mips/include/asm/termios.h
@@ -60,7 +60,7 @@ struct termio {
 };
 
 #ifdef __KERNEL__
-#include <linux/module.h>
+#include <asm/uaccess.h>
 
 /*
  *     intr=^C         quit=^\         erase=del       kill=^U
-- 
1.7.9.1


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