v2.6.19 watchdog patches - part 2bis
Hi Linus,
I forgot to add this trivial bit. Sorry about that. Can you do an extra pull from 'master' branch of
rsync://rsync.kernel.org/pub/scm/linux/kernel/git/wim/linux-2.6-watchdog.git
or if master.kernel.org hasn't synced up yet:
master.kernel.org:/pub/scm/linux/kernel/git/wim/linux-2.6-watchdog.git
This will update the following files:
drivers/char/watchdog/iTCO_wdt.c | 2 +- drivers/char/watchdog/pnx4008_wdt.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
with these Changes:
Merge: f311896... 2fee7b1...
Author: Wim Van Sebroeck <[email protected]>
Date: Tue Oct 3 23:01:47 2006 +0200
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Author: Wim Van Sebroeck <[email protected]> Date: Wed Sep 13 21:27:29 2006 +0200
[WATCHDOG] use ENOTTY instead of ENOIOCTLCMD in ioctl()
Return ENOTTY instead of ENOIOCTLCMD in user-visible ioctl() results
The watchdog drivers used to return ENOIOCTLCMD for bad ioctl() commands. ENOIOCTLCMD should not be visible by the user, so use ENOTTY instead.
The Changes can also be looked at on:
http://www.kernel.org/git/?p=linux/kernel/git/wim/linux-2.6-watchdog.git;a=summary
For completeness, I added the overal diff below.
Greetings,
Wim.
================================================================================
drivers/char/watchdog/iTCO_wdt.c +1 -1
@@ -494,7 +494,7 @@ static int iTCO_wdt_ioctl (struct inode }default : -return -ENOIOCTLCMD ; +return -ENOTTY ; } }
drivers/char/watchdog/pnx4008_wdt.c +1 -1
@@ -184,7 +184,7 @@ static int pnx4008_wdt_ioctl(struct inode *inode, struct file *file, unsigned int cmd, unsigned long arg) { - int ret = -ENOIOCTLCMD; + int ret = -ENOTTY;int time;switch (cmd) {