android_kernel_xiaomi_sm8350/include
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
..
acpi
asm-alpha [PATCH] ide: move CONFIG_IDE_MAX_HWIFS into linux/ide.h 2005-11-09 22:58:07 +01:00
asm-arm [ARM] 3098/1: pxa2xx disable ssp irq 2005-11-10 17:45:39 +00:00
asm-arm26
asm-cris
asm-frv
asm-generic
asm-h8300
asm-i386 [PATCH] PCI: Change MSI to use physical delivery mode always 2005-11-10 16:09:18 -08:00
asm-ia64 [IA64] 4-level page tables 2005-11-11 09:37:29 -08:00
asm-m32r
asm-m68k
asm-m68knommu
asm-mips
asm-parisc
asm-powerpc [PATCH] powerpc: Merge vdso's and add vdso support to 32 bits kernel 2005-11-11 22:25:39 +11:00
asm-ppc [PATCH] powerpc: Merge vdso's and add vdso support to 32 bits kernel 2005-11-11 22:25:39 +11:00
asm-ppc64 [PATCH] powerpc: Merge vdso's and add vdso support to 32 bits kernel 2005-11-11 22:25:39 +11:00
asm-s390 [PATCH] s390: "extern inline" -> "static inline" 2005-11-09 07:55:52 -08:00
asm-sh [PATCH] ide: move CONFIG_IDE_MAX_HWIFS into linux/ide.h 2005-11-09 22:58:07 +01:00
asm-sh64 [PATCH] ide: move CONFIG_IDE_MAX_HWIFS into linux/ide.h 2005-11-09 22:58:07 +01:00
asm-sparc
asm-sparc64
asm-um
asm-v850
asm-x86_64 [PATCH] PCI: Change MSI to use physical delivery mode always 2005-11-10 16:09:18 -08:00
asm-xtensa
keys
linux [SPARC]: Fix RTC compat ioctl kernel log spam. 2005-11-12 12:10:54 -08:00
math-emu
media [PATCH] V4L: 904: added dvb support for tda8275a philips tiger reference design 2005-11-09 07:56:30 -08:00
mtd
net [SCTP]: Include ulpevents in socket receive buffer accounting. 2005-11-11 16:08:24 -08:00
pcmcia
rdma [IB] uverbs: have kernel return QP capabilities 2005-11-10 10:22:50 -08:00
rxrpc
scsi
sound
video