* Bad watchdog ioctl definitions
@ 2010-04-05 9:39 James Hogan
2010-04-05 11:44 ` Alan Cox
0 siblings, 1 reply; 2+ messages in thread
From: James Hogan @ 2010-04-05 9:39 UTC (permalink / raw)
To: Wim Van Sebroeck, H Hartley Sweeten, Andrew Morton,
Thierry Reding, linux-kernel
Hi,
I've noticed that some of the ioctl definitions in
include/linux/watchdog.h are incorrect, for example:
#define WDIOC_SETOPTIONS _IOR(WATCHDOG_IOCTL_BASE, 4, int)
This is a write ioctl so should be _IOW
#define WDIOC_KEEPALIVE _IOR(WATCHDOG_IOCTL_BASE, 5, int)
I think this should just be _IO since the argument is ignored anyway
>From a quick grep, mpcore_wdt appears to be the only watchdog driver
in drivers/watchdog that uses _IOC_DIR on the ioctl number, which
breaks the SETOPTIONS ioctl on this driver.
Is it usually even possible to change ioctl numbers for compatibility?
What's the usual process?
Cheers
--
James Hogan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-04-05 11:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-05 9:39 Bad watchdog ioctl definitions James Hogan
2010-04-05 11:44 ` Alan Cox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®