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".
This commit is contained in:
Дмитрий Левин 2017-04-10 00:20:34 +00:00
parent da55527b3f
commit e7df09c76e
2 changed files with 1 additions and 1 deletions

1
defs.h
View File

@ -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[];

1
perf.c
View File

@ -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"