lkml.org 
[lkml]   [2013]   [Dec]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] perf/x86: fix bug in event constraint end marker macro

* Stephane Eranian <eranian@google.com> wrote:

> #define EVENT_CONSTRAINT_END \
> - EVENT_CONSTRAINT(0, 0, 0)
> + { .idxmsk64 = 0, \
> + .code = 0, \
> + .cmask = 0, \
> + .weight = -1, \
> + .overlap = 0, \
> + .flags = 0, \
> +}

A nit, simply writing:

#define EVENT_CONSTRAINT_END { .weight = -1, }

... should be enough as initialization to zero is guaranteed for the
other fields.

Thanks,

Ingo


\
 
 \ /
  Last update: 2013-12-04 10:21    [W:0.033 / U:0.940 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site