Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1627320 > unrolled thread

[tip:perf/core] perf tools: Remove PRI[xu] macros from perf.h

Started bytip-bot for Arnaldo Carvalho de Melo <tipbot@zytor.com>
First post2017-04-20 13:10 +0200
Last post2017-04-20 13:10 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [tip:perf/core] perf tools: Remove PRI[xu] macros from perf.h tip-bot for Arnaldo Carvalho de Melo <tipbot@zytor.com> - 2017-04-20 13:10 +0200

#1627320 — [tip:perf/core] perf tools: Remove PRI[xu] macros from perf.h

Fromtip-bot for Arnaldo Carvalho de Melo <tipbot@zytor.com>
Date2017-04-20 13:10 +0200
Subject[tip:perf/core] perf tools: Remove PRI[xu] macros from perf.h
Message-ID<tyi8h-8cx-5@gated-at.bofh.it>
Commit-ID:  c3dca1a1c0ec51f384515f7e6f3b4e289a1dea2f
Gitweb:     http://git.kernel.org/tip/c3dca1a1c0ec51f384515f7e6f3b4e289a1dea2f
Author:     Arnaldo Carvalho de Melo <acme@redhat.com>
AuthorDate: Mon, 17 Apr 2017 15:25:00 -0300
Committer:  Arnaldo Carvalho de Melo <acme@redhat.com>
CommitDate: Wed, 19 Apr 2017 13:01:47 -0300

perf tools: Remove PRI[xu] macros from perf.h

We get them from inttypes.h.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-qla4e4mwbf1oewafp1ee2etd@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
---
 tools/perf/util/util.h | 20 --------------------
 1 file changed, 20 deletions(-)

diff --git a/tools/perf/util/util.h b/tools/perf/util/util.h
index 2abd4f7..593a241 100644
--- a/tools/perf/util/util.h
+++ b/tools/perf/util/util.h
@@ -34,7 +34,6 @@
 #include <poll.h>
 #include <sys/socket.h>
 #include <sys/ioctl.h>
-#include <inttypes.h>
 #include <linux/kernel.h>
 #include <linux/types.h>
 #include <sys/ttydefaults.h>
@@ -50,25 +49,6 @@ extern const char *spaces;
 extern const char *dots;
 extern char buildid_dir[];
 
-/* On most systems <limits.h> would have given us this, but
- * not on some systems (e.g. GNU/Hurd).
- */
-#ifndef PATH_MAX
-#define PATH_MAX 4096
-#endif
-
-#ifndef PRIuMAX
-#define PRIuMAX "llu"
-#endif
-
-#ifndef PRIu32
-#define PRIu32 "u"
-#endif
-
-#ifndef PRIx32
-#define PRIx32 "x"
-#endif
-
 #ifndef PATH_SEP
 #define PATH_SEP ':'
 #endif

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web