projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
717a9ef
)
tracing: Remove unnecessary WARN_ONCE's from tracing_buffers_splice_read
author
Dave Jones
<davej@redhat.com>
Wed, 25 Jul 2012 15:39:08 +0000
(11:39 -0400)
committer
Steven Rostedt
<rostedt@goodmis.org>
Mon, 19 Nov 2012 20:25:09 +0000
(15:25 -0500)
WARN shouldn't be used as a means of communicating failure to a userspace programmer.
Link:
http://lkml.kernel.org/r/20120725153908.GA25203@redhat.com
Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace.c
patch
|
blob
|
history
diff --git
a/kernel/trace/trace.c
b/kernel/trace/trace.c
index 64ad9bc4275be0ddb837e72cff6632c7eaf40d97..5bc35907cc6e4c809e7dd599f6ed5c6703994cb3 100644
(file)
--- a/
kernel/trace/trace.c
+++ b/
kernel/trace/trace.c
@@
-4275,13
+4275,11
@@
tracing_buffers_splice_read(struct file *file, loff_t *ppos,
return -ENOMEM;
if (*ppos & (PAGE_SIZE - 1)) {
- WARN_ONCE(1, "Ftrace: previous read must page-align\n");
ret = -EINVAL;
goto out;
}
if (len & (PAGE_SIZE - 1)) {
- WARN_ONCE(1, "Ftrace: splice_read should page-align\n");
if (len < PAGE_SIZE) {
ret = -EINVAL;
goto out;