mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Simplify vt.c ifdef for sys_ioperm
@ 2002-08-15  4:43 Milton Miller
  0 siblings, 0 replies; only message in thread
From: Milton Miller @ 2002-08-15  4:43 UTC (permalink / raw)
  To: marcelo@conectiva.com.br; +Cc: trivial, alan, linux-kernel


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).

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-08-15  5:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-15  4:43 [PATCH] Simplify vt.c ifdef for sys_ioperm Milton Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®