From: James Hogan <james@albanarts.com>
To: Wim Van Sebroeck <wim@iguana.be>,
H Hartley Sweeten <hsweeten@visionengravers.com>,
Andrew Morton <akpm@linux-foundation.org>,
Thierry Reding <thierry.reding@avionic-design.de>,
linux-kernel@vger.kernel.org
Subject: Bad watchdog ioctl definitions
Date: Mon, 5 Apr 2010 10:39:25 +0100 [thread overview]
Message-ID: <s2g6a4b170b1004050239ga41e5496r1e416b755f655a0a@mail.gmail.com> (raw)
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
next reply other threads:[~2010-04-05 9:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-05 9:39 James Hogan [this message]
2010-04-05 11:44 ` Alan Cox
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=s2g6a4b170b1004050239ga41e5496r1e416b755f655a0a@mail.gmail.com \
--to=james@albanarts.com \
--cc=akpm@linux-foundation.org \
--cc=hsweeten@visionengravers.com \
--cc=linux-kernel@vger.kernel.org \
--cc=thierry.reding@avionic-design.de \
--cc=wim@iguana.be \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®