[PATCH] perf annotate: Fix build error

From: Borislav Petkov
Date: Mon Feb 07 2011 - 09:32:45 EST


On Mon, Feb 07, 2011 at 07:54:58AM +0000, tip-bot for Arnaldo Carvalho de Melo wrote:
> Commit-ID: 78f7defedbb4da73b9a07635c357c1afcaa55c8f
> Gitweb: http://git.kernel.org/tip/78f7defedbb4da73b9a07635c357c1afcaa55c8f
> Author: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
> AuthorDate: Fri, 4 Feb 2011 09:45:46 -0200
> Committer: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
> CommitDate: Sat, 5 Feb 2011 12:28:21 -0200
>
> perf annotate: Move annotate functions to util/

A small fix for when NO_NEWT_SUPPORT is defined.

--
From: Borislav Petkov <borislav.petkov@xxxxxxx>
Date: Mon, 7 Feb 2011 15:26:52 +0100
Subject: [PATCH] perf annotate: Fix build error

Add a missing "struct" to the function prototype.

Signed-off-by: Borislav Petkov <borislav.petkov@xxxxxxx>
---
tools/perf/util/annotate.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/perf/util/annotate.h b/tools/perf/util/annotate.h
index b1253aa..bc08b36 100644
--- a/tools/perf/util/annotate.h
+++ b/tools/perf/util/annotate.h
@@ -82,7 +82,7 @@ int symbol__tty_annotate(struct symbol *sym, struct map *map, int evidx,
int max_lines);

#ifdef NO_NEWT_SUPPORT
-static inline int symbol__tui_annotate(symbol *sym __used,
+static inline int symbol__tui_annotate(struct symbol *sym __used,
struct map *map __used, int evidx __used)
{
return 0;
--
1.7.4.rc1.7.g2cf08

--
Regards/Gruss,
Boris.

Advanced Micro Devices GmbH
Einsteinring 24, 85609 Dornach
General Managers: Alberto Bozzo, Andrew Bowd
Registration: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/