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


Groups > linux.kernel > #1629931 > unrolled thread

[PATCH 17/22] perf tools: Add the right header to obtain PERF_ALIGN()

Started byArnaldo Carvalho de Melo <acme@kernel.org>
First post2017-04-24 22:00 +0200
Last post2017-04-24 22:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 17/22] perf tools: Add the right header to obtain PERF_ALIGN() Arnaldo Carvalho de Melo <acme@kernel.org> - 2017-04-24 22:00 +0200

#1629931 — [PATCH 17/22] perf tools: Add the right header to obtain PERF_ALIGN()

FromArnaldo Carvalho de Melo <acme@kernel.org>
Date2017-04-24 22:00 +0200
Subject[PATCH 17/22] perf tools: Add the right header to obtain PERF_ALIGN()
Message-ID<tzSjo-2Lp-35@gated-at.bofh.it>
From: Arnaldo Carvalho de Melo <acme@redhat.com>

The util/event.h header needs PERF_ALIGN(), but wasn't including
linux/kernel.h, where it is defined, instead it was getting it by
luck by including map.h, which it doesn't need at all.

Fix it by including the right header.

Link: http://lkml.kernel.org/n/tip-nf3t9blzm5ncoxsczi8oy9mx@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
---
 tools/perf/util/event.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/perf/util/event.h b/tools/perf/util/event.h
index eb7a7b200737..db2de6413518 100644
--- a/tools/perf/util/event.h
+++ b/tools/perf/util/event.h
@@ -3,9 +3,9 @@
 
 #include <limits.h>
 #include <stdio.h>
+#include <linux/kernel.h>
 
 #include "../perf.h"
-#include "map.h"
 #include "build-id.h"
 #include "perf_regs.h"
 
-- 
2.9.3

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web