[PATCH] move rtc compat ioctl handling to fs/compat_ioctl.c
authorChristoph Hellwig <hch@lst.de>
Tue, 10 Jan 2006 04:52:11 +0000 (20:52 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 10 Jan 2006 16:01:32 +0000 (08:01 -0800)
commitec3cad96901373ad0e21611cfbcc372fe09df1f7
tree4c4fff817b9e88fe3fd015382913944fe2d946d8
parent3a0f69d59ba41fbcad6a17b6e8aab02bf45e20ce
[PATCH] move rtc compat ioctl handling to fs/compat_ioctl.c

This patch implements generic handling of RTC_IRQP_READ32, RTC_IRQP_SET32,
RTC_EPOCH_READ32 and RTC_EPOCH_SET32 in fs/compat_ioctl.c.  It's based on the
x86_64 code which needed a little massaging to be endian-clean.

parisc used COMPAT_IOCTL or generic w_long handlers for these whichce is wrong
and can't work because the ioctls encode sizeof(unsigned long) in their ioctl
number.  parisc also duplicated COMPAT_IOCTL entries for other rtc ioctls
which I remove in this patch, too.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Matthew Wilcox <matthew@wil.cx>
Acked-by: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/parisc/kernel/ioctl32.c
arch/x86_64/ia32/ia32_ioctl.c
fs/compat_ioctl.c