Skip to contentSkip to conversation

add missing watchdog COMPATIBLE_IOCTLs

PATCH In review Arnd Bergmann 2 participants 2 messages Aug 3, 2004 – Aug 20, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 add missing watchdog COMPATIBLE_IOCTLs

The watchdog ioctl interface is defined correctly for 32 bit emulation, although WIOC_GETSUPPORT was not marked as such, for an unclear reason. WDIOC_SETTIMEOUT and WDIOC_GETTIMEOUT were added in may 2002 to the code but never to the ioctl list. This adds all three definitions.

include/linux/compat_ioctl.h +3 -1
diff -u -r1.15 compat_ioctl.h
@@ -593,12 +593,14 @@
 COMPATIBLE_IOCTL(ATMMPC_CTRL)
 COMPATIBLE_IOCTL(ATMMPC_DATA)
 /* Big W */
-/* WIOC_GETSUPPORT not yet implemented -E */
+COMPATIBLE_IOCTL(WDIOC_GETSUPPORT)
 COMPATIBLE_IOCTL(WDIOC_GETSTATUS)
 COMPATIBLE_IOCTL(WDIOC_GETBOOTSTATUS)
 COMPATIBLE_IOCTL(WDIOC_GETTEMP)
 COMPATIBLE_IOCTL(WDIOC_SETOPTIONS)
 COMPATIBLE_IOCTL(WDIOC_KEEPALIVE)
+COMPATIBLE_IOCTL(WDIOC_SETTIMEOUT)
+COMPATIBLE_IOCTL(WDIOC_GETTIMEOUT)
 /* Big R */
 COMPATIBLE_IOCTL(RNDGETENTCNT)
 COMPATIBLE_IOCTL(RNDADDTOENTCNT)
#1 lore raw

Hi Arnd,

Quoted 4 lines

The watchdog ioctl interface is defined correctly for 32 bit emulation, although WIOC_GETSUPPORT was not marked as such, for an unclear reason. WDIOC_SETTIMEOUT and WDIOC_GETTIMEOUT were added in may 2002 to the code but never to the ioctl list. This adds all three definitions.

This is indeed correct. We should add them. I can't test it myself because I have no 64 bit system...

Anyway: I included it in "my watchdog tree" so that it can be merged into the kernel.

Thanks,
Wim.