From e7df09c76e92538b748f8ae700eeca6731e5fcdc Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Mon, 10 Apr 2017 00:20:34 +0000 Subject: [PATCH] Do not include xlat/clocknames.h twice Make clocknames a global xlat array defined in time.c file. * defs.h (clocknames): New prototype. * perf.c: Stop including "xlat/clocknames.h". --- defs.h | 1 + perf.c | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/defs.h b/defs.h index b2be75b9..4c435da3 100644 --- a/defs.h +++ b/defs.h @@ -293,6 +293,7 @@ struct tcb { extern const struct xlat addrfams[]; extern const struct xlat at_flags[]; +extern const struct xlat clocknames[]; extern const struct xlat dirent_types[]; extern const struct xlat evdev_abs[]; extern const struct xlat msg_flags[]; diff --git a/perf.c b/perf.c index d24cde3b..71a30832 100644 --- a/perf.c +++ b/perf.c @@ -31,7 +31,6 @@ #include "perf_event_struct.h" -#include "xlat/clocknames.h" #include "xlat/hw_breakpoint_len.h" #include "xlat/hw_breakpoint_type.h" #include "xlat/perf_attr_size.h" -- 2.40.0