linux-mips
[Top] [All Lists]

Re: Small correction for fault.c

To: linux-mips@oss.sgi.com
Subject: Re: Small correction for fault.c
From: Thiemo Seufer <ica2_ts@csv.ica.uni-stuttgart.de>
Date: Wed, 3 Jul 2002 10:15:40 +0200
In-reply-to: <20020703144404.4d349037.yoichi_yuasa@montavista.co.jp>
References: <20020703144404.4d349037.yoichi_yuasa@montavista.co.jp>
Sender: owner-linux-mips@oss.sgi.com
User-agent: Mutt/1.3.28i
Yoichi Yuasa wrote:
> Hi,
> 
> I found a include file required for "arch/mips/mm/fault.c".
> This is for unblank_screen().
> 
> --- linux.orig/arch/mips/mm/fault.c     Thu Jun 27 14:14:14 2002
> +++ linux/arch/mips/mm/fault.c  Wed Jul  3 14:37:03 2002
> @@ -19,6 +19,7 @@
>  #include <linux/smp.h>
>  #include <linux/smp_lock.h>
>  #include <linux/version.h>
> +#include <linux/vt_kern.h>

For MIPS64 this fails (MAX_NR_CONSOLES is defined in linux/tty.h):

In file included from fault.c:23:
/bigdisk/combined/source-linux/include/linux/vt_kern.h:32: error:
MAX_NR_CONSOLES' undeclared here (not in a function)

I would prefer the patch below.


Thiemo


diff -BurpNX /bigdisk/src/dontdiff source-linux-orig/arch/mips/mm/fault.c 
source-linux/arch/mips/mm/fault.c
--- source-linux-orig/arch/mips/mm/fault.c      Sat Jun  1 22:41:25 2002
+++ source-linux/arch/mips/mm/fault.c   Wed Jul  3 10:13:26 2002
@@ -44,6 +44,8 @@ extern spinlock_t timerlist_lock;
  */
 void bust_spinlocks(int yes)
 {
+       extern void unblank_screen(void);
+
        spin_lock_init(&timerlist_lock);
        if (yes) {
                oops_in_progress = 1;
diff -BurpNX /bigdisk/src/dontdiff source-linux-orig/arch/mips64/mm/fault.c 
source-linux/arch/mips64/mm/fault.c
--- source-linux-orig/arch/mips64/mm/fault.c    Mon Jul  1 12:05:04 2002
+++ source-linux/arch/mips64/mm/fault.c Wed Jul  3 10:13:26 2002
@@ -66,6 +66,8 @@ extern spinlock_t timerlist_lock;
  */
 void bust_spinlocks(int yes)
 {
+       extern void unblank_screen(void);
+
        spin_lock_init(&timerlist_lock);
        if (yes) {
                oops_in_progress = 1;


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