The patch titled rtc-dev: Make RTC driver return ENOTTY instead of ENOIOCTLCMD has been added to the -mm tree. Its filename is rtc-dev-make-rtc-driver-return-enotty.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: rtc-dev: Make RTC driver return ENOTTY instead of ENOIOCTLCMD From: Thomas Hommel <thomas.hommel@xxxxxxxxxxx> Prevent the RTC driver from returning ENOIOCTLCMD to userspace. Signed-off-by: Thomas Hommel <thomas.hommel@xxxxxxxxxxx> Acked-by: Alessandro Zummo <a.zummo@xxxxxxxxxxxx> Cc: David Brownell <david-b@xxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/rtc/rtc-dev.c | 2 ++ 1 file changed, 2 insertions(+) diff -puN drivers/rtc/rtc-dev.c~rtc-dev-make-rtc-driver-return-enotty drivers/rtc/rtc-dev.c --- a/drivers/rtc/rtc-dev.c~rtc-dev-make-rtc-driver-return-enotty +++ a/drivers/rtc/rtc-dev.c @@ -348,6 +348,8 @@ static int rtc_dev_ioctl(struct inode *i case RTC_IRQP_SET: if (ops->irq_set_freq) err = rtc_irq_set_freq(rtc, rtc->irq_task, arg); + else + err = -ENOTTY; break; #if 0 _ Patches currently in -mm which might be from thomas.hommel@xxxxxxxxxxx are rtc-dev-make-rtc-driver-return-enotty.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html