Compile fix for magic sysrq and !CONFIG_VT

Compile fix for magic sysrq and !CONFIG_VT

Post by David Gibso » Wed, 28 Aug 2002 11:20:04



Linus, please apply.  This fixes compilation of the magic sysrq code
when compiled without CONFIG_VT.

diff -urN /home/dgibson/kernel/linuxppc-2.5/drivers/char/sysrq.c linux-bluefish/drivers/char/sysrq.c
--- /home/dgibson/kernel/linuxppc-2.5/drivers/char/sysrq.c      2002-07-16 09:13:58.000000000 +1000

 };
 #endif

-
+#ifdef CONFIG_VT
 /* unraw sysrq handler */
 static void sysrq_handle_unraw(int key, struct pt_regs *pt_regs,

        help_msg:       "unRaw",
        action_msg:     "Keyboard mode set to XLATE",
 };
-
+#endif /* CONFIG_VT */

 /* reboot sysrq handler */

                 as 'Off' at init time */
 /* p */        &sysrq_showregs_op,
 /* q */        NULL,
+#ifdef CONFIG_VT
 /* r */        &sysrq_unraw_op,
+#else
+/* r */ NULL,
+#endif
 /* s */        &sysrq_sync_op,
 /* t */        &sysrq_showstate_op,
 /* u */        &sysrq_mountro_op,

--
David Gibson                    | For every complex problem there is a

                                | wrong.
http://www.ozlabs.org/people/dgibson
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

Compile fix for magic sysrq and !CONFIG_VT

Post by James Simmon » Fri, 30 Aug 2002 04:10:06


Quote:> Linus, please apply.  This fixes compilation of the magic sysrq code
> when compiled without CONFIG_VT.

Ug. I have had this fix for awhile in the console BK tree. That and
several other ones. I'm merging my tree with 2.5.32 right now and I will
push it to linus as soon as I'm done tetsing.

> diff -urN /home/dgibson/kernel/linuxppc-2.5/drivers/char/sysrq.c linux-bluefish/drivers/char/sysrq.c
> --- /home/dgibson/kernel/linuxppc-2.5/drivers/char/sysrq.c 2002-07-16 09:13:58.000000000 +1000
> +++ linux-bluefish/drivers/char/sysrq.c    2002-08-02 16:36:30.000000000 +1000

>  };
>  #endif

> -
> +#ifdef CONFIG_VT
>  /* unraw sysrq handler */
>  static void sysrq_handle_unraw(int key, struct pt_regs *pt_regs,
>                           struct tty_struct *tty)

>    help_msg:       "unRaw",
>    action_msg:     "Keyboard mode set to XLATE",
>  };
> -
> +#endif /* CONFIG_VT */

>  /* reboot sysrq handler */
>  static void sysrq_handle_reboot(int key, struct pt_regs *pt_regs,

>             as 'Off' at init time */
>  /* p */   &sysrq_showregs_op,
>  /* q */   NULL,
> +#ifdef CONFIG_VT
>  /* r */   &sysrq_unraw_op,
> +#else
> +/* r */ NULL,
> +#endif
>  /* s */   &sysrq_sync_op,
>  /* t */   &sysrq_showstate_op,
>  /* u */   &sysrq_mountro_op,

> --
> David Gibson                       | For every complex problem there is a

>                            | wrong.
> http://www.ozlabs.org/people/dgibson
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

Compile fix for magic sysrq and !CONFIG_VT

Post by David Gibso » Fri, 30 Aug 2002 09:20:04



> > Linus, please apply.  This fixes compilation of the magic sysrq code
> > when compiled without CONFIG_VT.

> Ug. I have had this fix for awhile in the console BK tree. That and
> several other ones. I'm merging my tree with 2.5.32 right now and I will
> push it to linus as soon as I'm done tetsing.

Ok, great.  Sorry I didn't get in touch with you first, but it wasn't
obvious who the right person was.

--
David Gibson                    | For every complex problem there is a

                                | wrong.
http://www.ozlabs.org/people/dgibson
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. Fix for magic sysrq when CONFIG_VT=n]

Trivial patch for SysRQ.


Date: Mon, 12 Aug 2002 16:26:27 +1000


Subject: [TRIVIAL] Fix for magic sysrq when CONFIG_VT=n


  The "unRaw" option for the magic sysrq key fails to compile if
  CONFIG_VT is false.  This patch fixes that:

--- trivial-2.5.31/drivers/char/sysrq.c.orig    2002-08-12 16:14:29.000000000 +1000

 };
 #endif

-
+#ifdef CONFIG_VT
 /* unraw sysrq handler */
 static void sysrq_handle_unraw(int key, struct pt_regs *pt_regs,

        help_msg:       "unRaw",
        action_msg:     "Keyboard mode set to XLATE",
 };
-
+#endif /* CONFIG_VT */

 /* reboot sysrq handler */

                 as 'Off' at init time */
 /* p */        &sysrq_showregs_op,
 /* q */        NULL,
+#ifdef CONFIG_VT
 /* r */        &sysrq_unraw_op,
+#else
+/* r */ NULL,
+#endif
 /* s */        &sysrq_sync_op,
 /* t */        &sysrq_showstate_op,
 /* u */        &sysrq_mountro_op,
--
  Don't blame me: the Monkey is driving

----- End forwarded message -----

--

ECSS System Hacker / UA COE CS Senior
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. Please recommend a networking hardware

3. Fix compile with !CONFIG_VT

4. Copy playstation's CD with Linux

5. Magic SysRq Key

6. Linux ICMP Destination Unreachable Messages not conforming to standards?

7. Magic sysrq key

8. DSL problem

9. Magic SysRq +# in 2.4.9-ac/2.4.10-pre12

10. Stupid Question re:magic SysRq

11. Keyboard/console lockups, Magic SysRQ fails [2.4.20(-pre3)]

12. SCHED_FIFO task blocks magic sysrq

13. Magic SysRq key isn't -- what am I doing wrong?