Skip to content

Commit bf3071f

Browse files
Dave Jonesrostedt
authored andcommitted
tracing: Remove unnecessary WARN_ONCE's from tracing_buffers_splice_read
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>
1 parent 717a9ef commit bf3071f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

kernel/trace/trace.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4275,13 +4275,11 @@ tracing_buffers_splice_read(struct file *file, loff_t *ppos,
42754275
return -ENOMEM;
42764276

42774277
if (*ppos & (PAGE_SIZE - 1)) {
4278-
WARN_ONCE(1, "Ftrace: previous read must page-align\n");
42794278
ret = -EINVAL;
42804279
goto out;
42814280
}
42824281

42834282
if (len & (PAGE_SIZE - 1)) {
4284-
WARN_ONCE(1, "Ftrace: splice_read should page-align\n");
42854283
if (len < PAGE_SIZE) {
42864284
ret = -EINVAL;
42874285
goto out;

0 commit comments

Comments
 (0)