From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jaeden Amero Subject: [PATCH] compat_ioctl: Add RS-485 IOCTLs to the list Date: Wed, 18 Jul 2012 10:24:57 -0500 Message-ID: <1342625097-20534-1-git-send-email-jaeden.amero@ni.com> References: Cc: linux-fsdevel@vger.kernel.org, greg@kroah.com, Jaeden Amero To: Alexander Viro Return-path: Received: from mailserver5.natinst.com ([130.164.80.5]:51009 "EHLO spamkiller05.natinst.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753297Ab2GRRz6 (ORCPT ); Wed, 18 Jul 2012 13:55:58 -0400 In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-ID: The RS-485 TIOCSRS485 and TIOCGRS485 ioctls are 32-bit compatible, so in order to call them on 64-bit systems from 32-bit user mode, we add them to the ioctl pointer list as compatible ioctls. Signed-off-by: Jaeden Amero --- fs/compat_ioctl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c index debdfe0..85dfebf 100644 --- a/fs/compat_ioctl.c +++ b/fs/compat_ioctl.c @@ -866,6 +866,8 @@ COMPATIBLE_IOCTL(TIOCGPTN) COMPATIBLE_IOCTL(TIOCSPTLCK) COMPATIBLE_IOCTL(TIOCSERGETLSR) COMPATIBLE_IOCTL(TIOCSIG) +COMPATIBLE_IOCTL(TIOCSRS485) +COMPATIBLE_IOCTL(TIOCGRS485) #ifdef TCGETS2 COMPATIBLE_IOCTL(TCGETS2) COMPATIBLE_IOCTL(TCSETS2) -- 1.7.11.1