[lkml]   [2010]   [May]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    Subject[PATCH 2/4] perf hist: Fix missing getline declaration
    From: Frederic Weisbecker <>

    hist.c needs to include util.h so that it gets stdio.h
    inclusion with __GNU_SOURCE defined.

    util/hist.c: In function ‘hist_entry__parse_objdump_line’:
    util/hist.c:931: erreur: implicit declaration of function ‘getline’
    util/hist.c:931: erreur: nested extern declaration of ‘getline’

    Signed-off-by: Frederic Weisbecker <>
    Cc: Ingo Molnar <>
    Cc: Peter Zijlstra <>
    Cc: Arnaldo Carvalho de Melo <>
    Cc: Paul Mackerras <>
    LKML-Reference: <>
    Signed-off-by: Arnaldo Carvalho de Melo <>
    tools/perf/util/hist.c | 1 +
    1 files changed, 1 insertions(+), 0 deletions(-)

    diff --git a/tools/perf/util/hist.c b/tools/perf/util/hist.c
    index 451d2e4..5dc4f84 100644
    --- a/tools/perf/util/hist.c
    +++ b/tools/perf/util/hist.c
    @@ -1,3 +1,4 @@
    +#include "util.h"
    #include "hist.h"
    #include "session.h"
    #include "sort.h"
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2010-05-13 22:21    [W:0.023 / U:19.044 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site