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, ...@@ -103,13 +103,13 @@ static int mmtimer_ioctl(struct inode *inode, struct file *file,
break; break;
case MMTIMER_GETRES: /* resolution of the clock in 10^-15 s */ case MMTIMER_GETRES: /* resolution of the clock in 10^-15 s */
if(copy_to_user((unsigned long *)arg, &mmtimer_femtoperiod, if(copy_to_user((unsigned long __user *)arg,
sizeof(unsigned long))) &mmtimer_femtoperiod, sizeof(unsigned long)))
return -EFAULT; return -EFAULT;
break; break;
case MMTIMER_GETFREQ: /* frequency in Hz */ 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, &sn_rtc_cycles_per_second,
sizeof(unsigned long))) sizeof(unsigned long)))
return -EFAULT; return -EFAULT;
...@@ -125,8 +125,8 @@ static int mmtimer_ioctl(struct inode *inode, struct file *file, ...@@ -125,8 +125,8 @@ static int mmtimer_ioctl(struct inode *inode, struct file *file,
break; break;
case MMTIMER_GETCOUNTER: case MMTIMER_GETCOUNTER:
if(copy_to_user((unsigned long *)arg, RTC_COUNTER_ADDR, if(copy_to_user((unsigned long __user *)arg,
sizeof(unsigned long))) RTC_COUNTER_ADDR, sizeof(unsigned long)))
return -EFAULT; return -EFAULT;
break; break;
default: 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