diff options
author | Filipe Brandenburger <filbranden@google.com> | 2014-02-28 21:32:17 -0800 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2014-03-07 10:06:11 -0500 |
commit | 114e7b52dee69ce47dd55b8e520e0a48ba7cdae3 (patch) | |
tree | d7ac31acb21d9427f0bbf87cd9b17c41b8df370b /lib/percpu_ida.c | |
parent | 5859fa1a146ef5bf79953767f4ceb546fe4214b3 (diff) | |
download | op-kernel-dev-114e7b52dee69ce47dd55b8e520e0a48ba7cdae3.zip op-kernel-dev-114e7b52dee69ce47dd55b8e520e0a48ba7cdae3.tar.gz |
tracing: Evaluate len expression only once in __dynamic_array macro
Use a temporary variable to store the expansion of the len expression.
If the evaluation is expensive, this commit will ensure it is evaluated
only once inside ftrace_get_offsets_<call>.
Link: http://lkml.kernel.org/r/1393651938-16418-3-git-send-email-filbranden@google.com
Signed-off-by: Filipe Brandenburger <filbranden@google.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'lib/percpu_ida.c')
0 files changed, 0 insertions, 0 deletions