aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/build-id.c
diff options
context:
space:
mode:
authorDavid Carrillo-Cisneros <davidcc@google.com>2017-07-17 21:25:37 -0700
committerArnaldo Carvalho de Melo <acme@redhat.com>2017-07-18 23:14:29 -0300
commit7c72440506e2108494bab3b68a4118fa61a9dbf4 (patch)
tree6aeb313fcf98b6225e785b0cfc438888607e62cf /tools/perf/util/build-id.c
parentperf header: Fail on write_padded error (diff)
downloadlinux-dev-7c72440506e2108494bab3b68a4118fa61a9dbf4.tar.xz
linux-dev-7c72440506e2108494bab3b68a4118fa61a9dbf4.zip
perf util: Add const modifier to buf in "writen" function
Make buf in helper function "writen" constant to simplify the life of its callers. This requires to hack a cast of buf prior to passing it to "ion" which is simpler than the alternative of reworking the "ion" function to provide a read and a write paths, the latter with constant buf argument. Signed-off-by: David Carrillo-Cisneros <davidcc@google.com> Acked-by: David Ahern <dsahern@gmail.com> Acked-by: Jiri Olsa <jolsa@kernel.org> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: He Kuang <hekuang@huawei.com> Cc: Masami Hiramatsu <mhiramat@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Paul Turner <pjt@google.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Simon Que <sque@chromium.org> Cc: Stephane Eranian <eranian@google.com> Cc: Wang Nan <wangnan0@huawei.com> Link: http://lkml.kernel.org/r/20170718042549.145161-5-davidcc@google.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/build-id.c')
0 files changed, 0 insertions, 0 deletions