lkml.org 
[lkml]   [2002]   [Aug]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] Simplify vt.c ifdef for sys_ioperm

Several architectures defined sys_ioperm but don't actually implement it:

arch/m68k/kernel/sys_m68k.c: sys_ioperm return -ENOSYS
arch/sparc/kernel/setup.c: sys_ioperm return -EIO
arch/ppc/kernel/syscalls.c: sys_ioperm printk(KERN_ERR ...) return -EIO

(vs current 2.4 bk -- 2.4.20-pre2+)

===== drivers/char/vt.c 1.10 vs edited =====
--- 1.10/drivers/char/vt.c Tue Aug 6 09:42:07 2002
+++ edited/drivers/char/vt.c Wed Aug 14 23:09:20 2002
@@ -481,7 +481,7 @@
ucval = keyboard_type;
goto setchar;

-#if defined(__i386__) || defined(__mc68000__) || defined(__ppc__) || defined(__sparc__)
+#if defined(CONFIG_X86)
/*
* These cannot be implemented on any machine that implements
* ioperm() in user level (such as Alpha PCs).
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:28    [W:0.029 / U:0.332 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site