mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 2/3] tty: Let architectures override the user/kernel macros.
@ 2007-11-19 12:53 Heiko Carstens
  0 siblings, 0 replies; only message in thread
From: Heiko Carstens @ 2007-11-19 12:53 UTC (permalink / raw)
  To: Andrew Morton, linux-kernel
  Cc: Alan Cox, Paul Mackerras, David Howells, Haavard Skinnemoen,
	Martin Schwidefsky

From: Heiko Carstens <heiko.carstens@de.ibm.com>

Give architectures that support the new termios2 the possibilty
to overide the user_termios_to_kernel_termios and
kernel_termios_to_user_termios macros. As soon as all architectures
that use the generic variant have been converted the ifdefs can
go away again. Architectures in question are avr32, frv, powerpc
and s390.

Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Paul Mackerras <paulus@samba.org>
Cc: David Howells <dhowells@redhat.com>
Cc: Haavard Skinnemoen <hskinnemoen@atmel.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
---

 include/asm-generic/termios.h |    6 ++++++
 1 file changed, 6 insertions(+)

Index: linux-2.6/include/asm-generic/termios.h
===================================================================
--- linux-2.6.orig/include/asm-generic/termios.h
+++ linux-2.6/include/asm-generic/termios.h
@@ -61,8 +61,14 @@ static inline int kernel_termios_to_user
 	return 0;
 }
 
+#ifndef user_termios_to_kernel_termios
 #define user_termios_to_kernel_termios(k, u) copy_from_user(k, u, sizeof(struct termios))
+#endif
+
+#ifndef kernel_termios_to_user_termios
 #define kernel_termios_to_user_termios(u, k) copy_to_user(u, k, sizeof(struct termios))
+#endif
+
 #define user_termios_to_kernel_termios_1(k, u) copy_from_user(k, u, sizeof(struct termios))
 #define kernel_termios_to_user_termios_1(u, k) copy_to_user(u, k, sizeof(struct termios))
 

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

only message in thread, other threads:[~2007-11-19 12:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-19 12:53 [PATCH 2/3] tty: Let architectures override the user/kernel macros Heiko Carstens

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®