add missing watchdog COMPATIBLE_IOCTLs
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
@@ -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)
Hi Arnd,
Quoted 4 lines
The watchdog ioctl interface is defined correctly for 32 bit emulation, although
WIOC_GETSUPPORTwas not marked as such, for an unclear reason.WDIOC_SETTIMEOUTandWDIOC_GETTIMEOUTwere 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.