X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Fasm-sh%2Ftermios.h;h=0a8c793c76f234a1c8ded118ed4f2a7d7eaf1de6;hb=e6b027a398bcfbb8897353a88a2edfcc97fd604d;hp=e7c8f86ef8902b9ca28fb76896b21059d99181f2;hpb=ef29498655b18d2bfd69048e20835d19333981ab;p=linux-2.6 diff --git a/include/asm-sh/termios.h b/include/asm-sh/termios.h index e7c8f86ef8..0a8c793c76 100644 --- a/include/asm-sh/termios.h +++ b/include/asm-sh/termios.h @@ -80,8 +80,10 @@ struct termio { copy_to_user((termio)->c_cc, (termios)->c_cc, NCC); \ }) -#define user_termios_to_kernel_termios(k, u) copy_from_user(k, u, sizeof(struct termios)) -#define kernel_termios_to_user_termios(u, k) copy_to_user(u, k, sizeof(struct termios)) +#define user_termios_to_kernel_termios(k, u) copy_from_user(k, u, sizeof(struct termios2)) +#define kernel_termios_to_user_termios(u, k) copy_to_user(u, k, sizeof(struct termios2)) +#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)) #endif /* __KERNEL__ */