From: Al Viro Date: Tue, 26 Apr 2005 14:43:42 +0000 (-0700) Subject: [PATCH] oprofile trivial user annotations X-Git-Tag: upstream/snapshot3+hdmi~48152 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9be80c0f0f61e8c0572d7c9d73b3ef839754a953;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git [PATCH] oprofile trivial user annotations Signed-off-by: Al Viro Signed-off-by: Linus Torvalds --- diff --git a/drivers/oprofile/oprofile_files.c b/drivers/oprofile/oprofile_files.c index 9abedea..a72006c 100644 --- a/drivers/oprofile/oprofile_files.c +++ b/drivers/oprofile/oprofile_files.c @@ -18,13 +18,13 @@ unsigned long fs_buffer_size = 131072; unsigned long fs_cpu_buffer_size = 8192; unsigned long fs_buffer_watershed = 32768; /* FIXME: tune */ -static ssize_t depth_read(struct file * file, char * buf, size_t count, loff_t * offset) +static ssize_t depth_read(struct file * file, char __user * buf, size_t count, loff_t * offset) { return oprofilefs_ulong_to_user(backtrace_depth, buf, count, offset); } -static ssize_t depth_write(struct file * file, char const * buf, size_t count, loff_t * offset) +static ssize_t depth_write(struct file * file, char const __user * buf, size_t count, loff_t * offset) { unsigned long val; int retval;