From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jaeden Amero Subject: [PATCH RESEND RESEND] compat_ioctl: Add RS-485 IOCTLs to the list Date: Tue, 18 Sep 2012 14:00:03 -0500 Message-ID: <1347994803-11032-1-git-send-email-jaeden.amero@ni.com> References: <1345578069-13372-1-git-send-email-jaeden.amero@ni.com> Cc: linux-kernel@vger.kernel.org, Jaeden Amero To: linux-fsdevel@vger.kernel.org Return-path: In-Reply-To: <1345578069-13372-1-git-send-email-jaeden.amero@ni.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org 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 debdfe0fc809edfd01ac4a72a0eaf2753efc993d..85dfebfe6820856dc3154dfd178acb6fca63bbe9 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.12