projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/davej/cpufreq
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
oprofile
/
event_buffer.c
diff --git
a/drivers/oprofile/event_buffer.c
b/drivers/oprofile/event_buffer.c
index 5df60a6b67766adb402a30fee44d7b7782bc5e08..dd87e86048be7913e9cc0090c52a957712d0067c 100644
(file)
--- a/
drivers/oprofile/event_buffer.c
+++ b/
drivers/oprofile/event_buffer.c
@@
-135,7
+135,7
@@
static int event_buffer_open(struct inode *inode, struct file *file)
* echo 1 >/dev/oprofile/enable
*/
- return
0
;
+ return
nonseekable_open(inode, file)
;
fail:
dcookie_unregister(file->private_data);
@@
-205,4
+205,5
@@
const struct file_operations event_buffer_fops = {
.open = event_buffer_open,
.release = event_buffer_release,
.read = event_buffer_read,
+ .llseek = no_llseek,
};