Commit 458be4f5 authored by Jesse Barnes's avatar Jesse Barnes Committed by Linus Torvalds

[PATCH] mmtimer sparse fixes

Small patch to add __iomem annotations to mmtimer.c.
Signed-off-by: default avatarJesse Barnes <jbarnes@sgi.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent eb06c01a
......@@ -103,13 +103,13 @@ static int mmtimer_ioctl(struct inode *inode, struct file *file,
break;
case MMTIMER_GETRES: /* resolution of the clock in 10^-15 s */
if(copy_to_user((unsigned long *)arg, &mmtimer_femtoperiod,
sizeof(unsigned long)))
if(copy_to_user((unsigned long __user *)arg,
&mmtimer_femtoperiod, sizeof(unsigned long)))
return -EFAULT;
break;
case MMTIMER_GETFREQ: /* frequency in Hz */
if(copy_to_user((unsigned long *)arg,
if(copy_to_user((unsigned long __user *)arg,
&sn_rtc_cycles_per_second,
sizeof(unsigned long)))
return -EFAULT;
......@@ -125,8 +125,8 @@ static int mmtimer_ioctl(struct inode *inode, struct file *file,
break;
case MMTIMER_GETCOUNTER:
if(copy_to_user((unsigned long *)arg, RTC_COUNTER_ADDR,
sizeof(unsigned long)))
if(copy_to_user((unsigned long __user *)arg,
RTC_COUNTER_ADDR, sizeof(unsigned long)))
return -EFAULT;
break;
default:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment