Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[IRDA] IRNET: Fix build when TCGETS2 is defined.

Signed-off-by: David S. Miller <davem@davemloft.net>

+10
+10
net/irda/irnet/irnet_ppp.c
··· 731 731 /* Get termios */ 732 732 case TCGETS: 733 733 DEBUG(FS_INFO, "Get termios.\n"); 734 + #ifndef TCGETS2 734 735 if(kernel_termios_to_user_termios((struct termios __user *)argp, &ap->termios)) 735 736 break; 737 + #else 738 + if(kernel_termios_to_user_termios_1((struct termios __user *)argp, &ap->termios)) 739 + break; 740 + #endif 736 741 err = 0; 737 742 break; 738 743 /* Set termios */ 739 744 case TCSETSF: 740 745 DEBUG(FS_INFO, "Set termios.\n"); 746 + #ifndef TCGETS2 741 747 if(user_termios_to_kernel_termios(&ap->termios, (struct termios __user *)argp)) 742 748 break; 749 + #else 750 + if(user_termios_to_kernel_termios_1(&ap->termios, (struct termios __user *)argp)) 751 + break; 752 + #endif 743 753 err = 0; 744 754 break; 745 755