lkml.org 
[lkml]   [2019]   [May]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [GIT PULL] tracing: Updates for 5.2
On Wed, May 15, 2019 at 4:29 PM Linus Torvalds
<torvalds@linux-foundation.org> wrote:
>
> One option is to just rewrite it something like
>
> const unsigned int offset = offsetof(struct trace_iterator, seq);
> memset(offset+(void *)&iter, 0, sizeof(iter) - offset);

Side note: make it a well-named helper function, since
"ftrace_dump_buf()" does this too in kernel/trace/trace_kdb.c, and
gets the exact same warning.

Linus

\
 
 \ /
  Last update: 2019-05-16 01:34    [W:0.043 / U:3.348 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site