linux/drivers/sbus/char
Christoph Hellwig 535f8d65d8 [SPARC]: Fix RTC compat ioctl kernel log spam.
On Fri, Nov 11, 2005 at 12:58:40PM -0800, David S. Miller wrote:
> 
> This change:
> 
> diff-tree 8ca2bdc7a9 (from feee207e44d3643d19e648aAuthor: Christoph Hellwig <hch@lst.de>
> Date:   Wed Nov 9 12:07:18 2005 -0800
> 
>     [SPARC] sbus rtc: implement ->compat_ioctl
>     
>     Signed-off-by: Christoph Hellwig <hch@lst.de>
>     Signed-off-by: David S. Miller <davem@davemloft.net>
> 
> results in the console now getting spewed on sparc64 systems
> with messages like:
> 
> [   11.968298] ioctl32(hwclock:464): Unknown cmd fd(3) cmd(401c7014){00} arg(efc
> What's happening is hwclock tries first the SBUS rtc device ioctls
> then the normal rtc driver ones.
> 
> So things actually worked better when we had the SBUS rtc compat ioctl
> directly handled via the generic compat ioctl code.
> 
> There are _so_ many rtc drivers in the kernel implementing the
> generic rtc ioctls that I don't think putting a ->compat_ioctl
> into all of them to fix this problem is feasible.  Unless we
> write a single rtc_compat_ioctl(), export it to modules, and hook
> it into all of those somehow.
> 
> But even that doesn't appear to have any pretty implementation.
> 
> Any better ideas?

We had similar problems with other ioctls where userspace did things
like that.  What we did there was to put the compat handler to generic
code.  The patch below does that, adding a big comment about what's
going on and removing the COMPAT_IOCTL entires for these on powerpc
that not only weren't ever useful but are duplicated now aswell.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
2005-11-12 12:10:54 -08:00
..
aurora.c [PATCH] timer initialization cleanup: DEFINE_TIMER 2005-09-09 14:03:48 -07:00
aurora.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
bbc_envctrl.c [PATCH] envctrl fixes 2005-09-10 10:16:27 -07:00
bbc_i2c.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
bbc_i2c.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
bpp.c [SPARC] drivers/sbus: fix-up schedule_timeout() usage 2005-09-12 14:16:17 -07:00
cd180.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
cpwatchdog.c [SPARC]: Fix locking thinkos in display7seg and cpwatchdog drivers. 2005-11-09 12:05:37 -08:00
display7seg.c [SPARC]: display7seg build fix 2005-11-10 21:14:16 -08:00
envctrl.c [SPARC] envctrl: implement ->unlocked_ioctl and ->compat_ioctl 2005-11-07 14:12:34 -08:00
flash.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
jsflash.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Kconfig [SPARC64]: Use drivers/Kconfig 2005-08-30 21:46:19 -07:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
max1617.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
openprom.c [SPARC]: Missing compat_ioctl hookup in openprom driver. 2005-11-08 10:00:13 -08:00
riowatchdog.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
rtc.c [SPARC]: Fix RTC compat ioctl kernel log spam. 2005-11-12 12:10:54 -08:00
uctrl.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
vfc_dev.c [SPARC]: Fix up sleep_on() removal in vfc driver. 2005-08-04 07:05:37 -07:00
vfc_i2c.c [SPARC] drivers/sbus: fix-up schedule_timeout() usage 2005-09-12 14:16:17 -07:00
vfc_i2c.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
vfc.h [SPARC]: Fix up sleep_on() removal in vfc driver. 2005-08-04 07:05:37 -07:00